Class IPK_MegaCreateTool
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.MegaCreateTool
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.editing_tools.IPK_MegaCreateTool
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,MouseInputListener
,Tool
,SelectionListener
,SessionListener
,Undoable
public class IPK_MegaCreateTool extends MegaCreateTool implements MouseWheelListener
A modified editing tool
- Author:
- Christian Klukas
-
Field Summary
Fields Modifier and Type Field Description long
lastMove
Fields inherited from class org.graffiti.plugins.modes.defaults.MegaTools
MouseWheelZoomEnabled
-
Constructor Summary
Constructors Constructor Description IPK_MegaCreateTool()
-
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.String
getToolName()
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)
Methods inherited from class org.graffiti.plugins.modes.defaults.MegaCreateTool
getEdgeCursor, getNodeCursor, getNormCursor, isCreatingEdge, isTemporaryNode, mouseClicked, mouseDragged, mouseMoved, mousePressed, reset
Methods inherited from class org.graffiti.plugins.modes.defaults.MegaTools
fireSelectionChanged, getFoundComponent, getLastMouseE, getLastMouseSrc, postProcessImageCreation, preProcessImageCreation, sessionChanged, sessionDataChanged, setFoundComponent, unmarkAll, wasScrollPaneMovement
Methods inherited from class org.graffiti.plugin.tool.AbstractUndoableTool
isSelectionListener, isSessionListener, 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_MegaCreateTool
public IPK_MegaCreateTool()
-
-
Method Details
-
activate
public void activate()Description copied from class:MegaCreateTool
The method additionally registers a key used to delete graph elements.- Specified by:
activate
in interfaceTool
- Overrides:
activate
in classMegaCreateTool
- See Also:
AbstractTool.activate()
-
deactivate
public void deactivate()Description copied from class:MegaCreateTool
This method additionaly unregisters the key used for deleting graph elements.- Specified by:
deactivate
in interfaceTool
- Overrides:
deactivate
in classMegaCreateTool
- See Also:
AbstractTool.deactivate()
-
mouseWheelMoved
- Specified by:
mouseWheelMoved
in interfaceMouseWheelListener
- Overrides:
mouseWheelMoved
in classMouseAdapter
-
mouseReleased
Description copied from class:MegaCreateTool
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 classMegaCreateTool
- Parameters:
e
- the mouse event
-
getToolName
- Specified by:
getToolName
in interfaceTool
- Overrides:
getToolName
in classMegaCreateTool
-