Class AdvancedLabelTool
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.AdvancedLabelTool
- All Implemented Interfaces:
MouseListener,MouseMotionListener,MouseWheelListener,EventListener,MouseInputListener,Tool,SelectionListener,SessionListener,Undoable
- Direct Known Subclasses:
IPK_AdvancedLabelTool
public class AdvancedLabelTool extends MegaTools
A tool for creating and editing labels of graphelements.
- Version:
- $Revision: 1.29 $
- Author:
- Wirch
-
Field Summary
Fields inherited from class org.graffiti.plugins.modes.defaults.MegaTools
MouseWheelZoomEnabled -
Constructor Summary
Constructors Constructor Description AdvancedLabelTool() -
Method Summary
Modifier and Type Method Description voidactivate()Classes that overwrite this method should call super.active first.static DeleteActiongetEditDeleteAction()static GraphElementgetEditGraphElement()StringgetToolName()voidmousePressed(MouseEvent e)Invoked if user presses mouse button.static voidprocessLabelEdit(GraphElement ge)static voidprocessLabelEdit(GraphElementComponentInterface clickedComp)static voidsetEditCommand(Runnable r)static voidsetEditDeleteCommand(DeleteAction r)Methods inherited from class org.graffiti.plugins.modes.defaults.MegaTools
fireSelectionChanged, getFoundComponent, getLastMouseE, getLastMouseSrc, mouseMoved, 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, deactivate, deactivateAll, displayAsMarked, displayAsMarked, displayAsMarked, displayAsMarked, getActiveTool, highlight, isActive, isViewListener, selectionChanged, selectionListChanged, setGraph, setPrefs, unDisplayAsMarked, unDisplayAsMarkedMethods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseReleased, mouseWheelMovedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mouseReleasedMethods inherited from interface java.awt.event.MouseMotionListener
mouseDragged
-
Constructor Details
-
AdvancedLabelTool
public AdvancedLabelTool()
-
-
Method Details
-
mousePressed
Invoked if user presses mouse button.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter- Parameters:
e- the mouse event
-
setEditCommand
-
getEditGraphElement
-
setEditDeleteCommand
-
processLabelEdit
-
processLabelEdit
-
activate
public void activate()Description copied from class:AbstractToolClasses that overwrite this method should call super.active first.- Specified by:
activatein interfaceTool- Overrides:
activatein classAbstractTool- See Also:
Tool.activate()
-
getToolName
-
getEditDeleteAction
- Returns:
-