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 longlastMoveFields inherited from class org.graffiti.plugins.modes.defaults.MegaTools
MouseWheelZoomEnabled -
Constructor Summary
Constructors Constructor Description IPK_MegaCreateTool() -
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.StringgetToolName()voidmouseReleased(MouseEvent e)Invoked when the mouse button has been released inside the editor panel and handles what has to happen.voidmouseWheelMoved(MouseWheelEvent e)Methods inherited from class org.graffiti.plugins.modes.defaults.MegaCreateTool
getEdgeCursor, getNodeCursor, getNormCursor, isCreatingEdge, isTemporaryNode, mouseClicked, mouseDragged, mouseMoved, mousePressed, resetMethods inherited from class org.graffiti.plugins.modes.defaults.MegaTools
fireSelectionChanged, getFoundComponent, getLastMouseE, getLastMouseSrc, postProcessImageCreation, preProcessImageCreation, sessionChanged, sessionDataChanged, setFoundComponent, unmarkAll, wasScrollPaneMovementMethods inherited from class org.graffiti.plugin.tool.AbstractUndoableTool
isSelectionListener, isSessionListener, 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_MegaCreateTool
public IPK_MegaCreateTool()
-
-
Method Details
-
activate
public void activate()Description copied from class:MegaCreateToolThe method additionally registers a key used to delete graph elements.- Specified by:
activatein interfaceTool- Overrides:
activatein classMegaCreateTool- See Also:
AbstractTool.activate()
-
deactivate
public void deactivate()Description copied from class:MegaCreateToolThis method additionaly unregisters the key used for deleting graph elements.- Specified by:
deactivatein interfaceTool- Overrides:
deactivatein classMegaCreateTool- See Also:
AbstractTool.deactivate()
-
mouseWheelMoved
- Specified by:
mouseWheelMovedin interfaceMouseWheelListener- Overrides:
mouseWheelMovedin classMouseAdapter
-
mouseReleased
Description copied from class:MegaCreateToolInvoked when the mouse button has been released inside the editor panel and handles what has to happen.- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMegaCreateTool- Parameters:
e- the mouse event
-
getToolName
- Specified by:
getToolNamein interfaceTool- Overrides:
getToolNamein classMegaCreateTool
-