public class PortalTool extends MouseInputAdapter implements ExtrasPainter
| Constructor and Description |
|---|
PortalTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(EditorScenePanel panel,
int centerx,
int centery) |
void |
mouseDragged(MouseEvent event)
When the mouse is dragged we update the current portal.
|
void |
mouseReleased(MouseEvent event)
If button1 is released, we store the new portal, if button3: we
cancel.
|
void |
paintExtras(Graphics2D gfx)
Paint what the clusters would look like if we were to add them to
the scene.
|
mouseClicked, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseWheelMovedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmouseClicked, mouseEntered, mouseExited, mousePressedmouseMovedpublic void init(EditorScenePanel panel, int centerx, int centery)
public void mouseDragged(MouseEvent event)
mouseDragged in interface MouseMotionListenermouseDragged in class MouseAdapterpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenermouseReleased in class MouseAdapterpublic void paintExtras(Graphics2D gfx)
paintExtras in interface ExtrasPainterCopyright © 2015. All rights reserved.