Class IPK_MegaMoveTool
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
org.graffiti.plugin.tool.AbstractTool
org.graffiti.plugin.tool.AbstractUndoableTool
org.graffiti.plugins.modes.defaults.MegaTools
org.graffiti.plugins.modes.defaults.MegaMoveTool
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.editing_tools.IPK_MegaMoveTool
- All Implemented Interfaces:
MouseListener,MouseMotionListener,MouseWheelListener,EventListener,MouseInputListener,PreferencesInterface,Tool,SelectionListener,SessionListener,Undoable
public class IPK_MegaMoveTool extends MegaMoveTool implements MouseWheelListener
A modified editing tool.
- Author:
- Christian Klukas
- Recent revisions:
- 2.6.5
-
Field Summary
Fields Modifier and Type Field Description longlastMoveFields inherited from class org.graffiti.plugins.modes.defaults.MegaMoveTool
gridEnabled, gridMovement, gridResizeLargeNodes, gridResizeNormalNodes, gridResizeSmallNodesFields inherited from class org.graffiti.plugins.modes.defaults.MegaTools
MouseWheelZoomEnabled -
Constructor Summary
Constructors Constructor Description IPK_MegaMoveTool() -
Method Summary
Modifier and Type Method Description voidactivate()The method additionally registers a key used to delete graph elements.voiddeactivate()This method additionaly unregisters the key used for deleting graph elements.List<Parameter>getDefaultParameters()override this method, which is already implemented in the superclass This must be done to clear the parameter list again, because this class would have the same parameters than the super class but they wouldn't do anything here and confuse the userStringgetToolName()voidmouseClicked(MouseEvent e)Empty method.voidmouseMoved(MouseEvent e)Temporarily marks the component under cursor.voidmousePressed(MouseEvent e)Invoked when the mouse button has been pressed.voidmouseReleased(MouseEvent e)Invoked when the mouse button has been released inside the editor panel and handles what has to happen.voidmouseWheelMoved(MouseWheelEvent e)static voidprocessMouseWheelScrolling(MouseWheelEvent e)Methods inherited from class org.graffiti.plugins.modes.defaults.MegaMoveTool
getGrid, getInstance, getLastMovementPosition, getPreferencesAlternativeName, hit, isSessionListener, mouseDragged, processBendCreation, reset, sessionChanged, updatePreferencesMethods inherited from class org.graffiti.plugins.modes.defaults.MegaTools
fireSelectionChanged, getFoundComponent, getLastMouseE, getLastMouseSrc, postProcessImageCreation, preProcessImageCreation, sessionDataChanged, setFoundComponent, unmarkAll, wasScrollPaneMovementMethods inherited from class org.graffiti.plugin.tool.AbstractUndoableTool
isSelectionListener, setUndoSupportMethods inherited from class org.graffiti.plugin.tool.AbstractTool
activateTool, deactivateAll, displayAsMarked, displayAsMarked, displayAsMarked, displayAsMarked, getActiveTool, highlight, isActive, isViewListener, selectionChanged, selectionListChanged, setGraph, setPrefs, unDisplayAsMarked, unDisplayAsMarkedMethods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExitedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited
-
Field Details
-
lastMove
public long lastMove
-
-
Constructor Details
-
IPK_MegaMoveTool
public IPK_MegaMoveTool()
-
-
Method Details
-
getDefaultParameters
override this method, which is already implemented in the superclass This must be done to clear the parameter list again, because this class would have the same parameters than the super class but they wouldn't do anything here and confuse the user- Specified by:
getDefaultParametersin interfacePreferencesInterface- Overrides:
getDefaultParametersin classMegaMoveTool
-
mousePressed
Description copied from class:MegaMoveToolInvoked when the mouse button has been pressed.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMegaMoveTool- Parameters:
e- the mouse event
-
activate
public void activate()Description copied from class:MegaMoveToolThe method additionally registers a key used to delete graph elements.- Specified by:
activatein interfaceTool- Overrides:
activatein classMegaMoveTool- See Also:
AbstractTool.activate()
-
deactivate
public void deactivate()Description copied from class:MegaMoveToolThis method additionaly unregisters the key used for deleting graph elements.- Specified by:
deactivatein interfaceTool- Overrides:
deactivatein classMegaMoveTool- See Also:
AbstractTool.deactivate()
-
mouseReleased
Description copied from class:MegaMoveToolInvoked when the mouse button has been released inside the editor panel and handles what has to happen.- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMegaMoveTool- Parameters:
e- the mouse event
-
mouseWheelMoved
- Specified by:
mouseWheelMovedin interfaceMouseWheelListener- Overrides:
mouseWheelMovedin classMouseAdapter
-
processMouseWheelScrolling
-
mouseMoved
Description copied from class:MegaToolsTemporarily marks the component under cursor.- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classMegaMoveTool- Parameters:
e- the mouse event
-
mouseClicked
Description copied from class:MegaMoveToolEmpty method. Invoked at mouse clicks. Does not do anything. All is done via mousePressed.- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classMegaMoveTool- Parameters:
e- the mouse event
-
getToolName
- Specified by:
getToolNamein interfaceTool- Overrides:
getToolNamein classMegaMoveTool
-