public class LazyMoveInputHandler extends AbstractMoveInputHandler
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Rectangle2D.Double |
movingBounds |
protected java.awt.Rectangle |
sourceBounds |
currentKeyEvent, host, mouseDragPoint, mousePressedPoint, network, parent
Constructor and Description |
---|
LazyMoveInputHandler(TNetwork network) |
Modifier and Type | Method and Description |
---|---|
protected void |
dragProcess(java.awt.event.MouseEvent e,
double xOffset,
double yOffset)
mouse drag process
|
protected java.awt.Rectangle |
getSelectionBounds()
Gets current select bounds.
|
protected boolean |
isDraggable(int distance) |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
mark(java.awt.Graphics2D g)
Developers can implements this method to given additional code
to paint more information on the network canvas.
|
protected void |
releaseProcess(java.awt.event.MouseEvent e,
double xf,
double yf)
mouse release process
|
fireBatchMoveEvent, getElementBounds, getNetwork, hasDraggableSelectedElement, hostProcess, isHosting, isParenting, keyReleased, mouseDragged, mousePressed, mouseReleased, parentProcess
cleanup, init, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved
protected java.awt.Rectangle sourceBounds
protected java.awt.geom.Rectangle2D.Double movingBounds
public LazyMoveInputHandler(TNetwork network)
protected void dragProcess(java.awt.event.MouseEvent e, double xOffset, double yOffset)
AbstractMoveInputHandler
dragProcess
in class AbstractMoveInputHandler
xOffset
- the x offset of the mouse relative to last mouse position.yOffset
- the y offset of the mouse relative to last mouse position.protected void releaseProcess(java.awt.event.MouseEvent e, double xf, double yf)
AbstractMoveInputHandler
releaseProcess
in class AbstractMoveInputHandler
xf
- the x offset of the mouse relative to last mouse position.yf
- the y offset of the mouse relative to last mouse position.public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class AbstractMoveInputHandler
protected java.awt.Rectangle getSelectionBounds()
getSelectionBounds
in class AbstractMoveInputHandler
public void mark(java.awt.Graphics2D g)
CanvasMarker
mark
in interface CanvasMarker
mark
in class AbstractMoveInputHandler
g
- the graphics object.protected boolean isDraggable(int distance)
isDraggable
in class AbstractMoveInputHandler
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.