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 void
activate()
Classes that overwrite this method should call super.active first.static DeleteAction
getEditDeleteAction()
static GraphElement
getEditGraphElement()
String
getToolName()
void
mousePressed(MouseEvent e)
Invoked if user presses mouse button.static void
processLabelEdit(GraphElement ge)
static void
processLabelEdit(GraphElementComponentInterface clickedComp)
static void
setEditCommand(Runnable r)
static void
setEditDeleteCommand(DeleteAction r)
Methods inherited from class org.graffiti.plugins.modes.defaults.MegaTools
fireSelectionChanged, getFoundComponent, getLastMouseE, getLastMouseSrc, mouseMoved, 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, deactivate, deactivateAll, displayAsMarked, displayAsMarked, displayAsMarked, displayAsMarked, getActiveTool, highlight, isActive, isViewListener, selectionChanged, selectionListChanged, setGraph, setPrefs, unDisplayAsMarked, unDisplayAsMarked
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseReleased, mouseWheelMoved
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mouseReleased
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged
-
Constructor Details
-
AdvancedLabelTool
public AdvancedLabelTool()
-
-
Method Details
-
mousePressed
Invoked if user presses mouse button.- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
- Parameters:
e
- the mouse event
-
setEditCommand
-
getEditGraphElement
-
setEditDeleteCommand
-
processLabelEdit
-
processLabelEdit
-
activate
public void activate()Description copied from class:AbstractTool
Classes that overwrite this method should call super.active first.- Specified by:
activate
in interfaceTool
- Overrides:
activate
in classAbstractTool
- See Also:
Tool.activate()
-
getToolName
-
getEditDeleteAction
- Returns:
-