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 long
lastMove
Fields inherited from class org.graffiti.plugins.modes.defaults.MegaMoveTool
gridEnabled, gridMovement, gridResizeLargeNodes, gridResizeNormalNodes, gridResizeSmallNodes
Fields inherited from class org.graffiti.plugins.modes.defaults.MegaTools
MouseWheelZoomEnabled
-
Constructor Summary
Constructors Constructor Description IPK_MegaMoveTool()
-
Method Summary
Modifier and Type Method Description void
activate()
The method additionally registers a key used to delete graph elements.void
deactivate()
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 userString
getToolName()
void
mouseClicked(MouseEvent e)
Empty method.void
mouseMoved(MouseEvent e)
Temporarily marks the component under cursor.void
mousePressed(MouseEvent e)
Invoked when the mouse button has been pressed.void
mouseReleased(MouseEvent e)
Invoked when the mouse button has been released inside the editor panel and handles what has to happen.void
mouseWheelMoved(MouseWheelEvent e)
static void
processMouseWheelScrolling(MouseWheelEvent e)
Methods inherited from class org.graffiti.plugins.modes.defaults.MegaMoveTool
getGrid, getInstance, getLastMovementPosition, getPreferencesAlternativeName, hit, isSessionListener, mouseDragged, processBendCreation, reset, sessionChanged, updatePreferences
Methods inherited from class org.graffiti.plugins.modes.defaults.MegaTools
fireSelectionChanged, getFoundComponent, getLastMouseE, getLastMouseSrc, postProcessImageCreation, preProcessImageCreation, sessionDataChanged, setFoundComponent, unmarkAll, wasScrollPaneMovement
Methods inherited from class org.graffiti.plugin.tool.AbstractUndoableTool
isSelectionListener, setUndoSupport
Methods inherited from class org.graffiti.plugin.tool.AbstractTool
activateTool, deactivateAll, displayAsMarked, displayAsMarked, displayAsMarked, displayAsMarked, getActiveTool, highlight, isActive, isViewListener, selectionChanged, selectionListChanged, setGraph, setPrefs, unDisplayAsMarked, unDisplayAsMarked
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getDefaultParameters
in interfacePreferencesInterface
- Overrides:
getDefaultParameters
in classMegaMoveTool
-
mousePressed
Description copied from class:MegaMoveTool
Invoked when the mouse button has been pressed.- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMegaMoveTool
- Parameters:
e
- the mouse event
-
activate
public void activate()Description copied from class:MegaMoveTool
The method additionally registers a key used to delete graph elements.- Specified by:
activate
in interfaceTool
- Overrides:
activate
in classMegaMoveTool
- See Also:
AbstractTool.activate()
-
deactivate
public void deactivate()Description copied from class:MegaMoveTool
This method additionaly unregisters the key used for deleting graph elements.- Specified by:
deactivate
in interfaceTool
- Overrides:
deactivate
in classMegaMoveTool
- See Also:
AbstractTool.deactivate()
-
mouseReleased
Description copied from class:MegaMoveTool
Invoked when the mouse button has been released inside the editor panel and handles what has to happen.- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classMegaMoveTool
- Parameters:
e
- the mouse event
-
mouseWheelMoved
- Specified by:
mouseWheelMoved
in interfaceMouseWheelListener
- Overrides:
mouseWheelMoved
in classMouseAdapter
-
processMouseWheelScrolling
-
mouseMoved
Description copied from class:MegaTools
Temporarily marks the component under cursor.- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classMegaMoveTool
- Parameters:
e
- the mouse event
-
mouseClicked
Description copied from class:MegaMoveTool
Empty method. Invoked at mouse clicks. Does not do anything. All is done via mousePressed.- Specified by:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classMegaMoveTool
- Parameters:
e
- the mouse event
-
getToolName
- Specified by:
getToolName
in interfaceTool
- Overrides:
getToolName
in classMegaMoveTool
-