Class LabelTool
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.LabelTool
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,MouseInputListener
,Tool
,SelectionListener
,SessionListener
,Undoable
public class LabelTool extends MegaTools
A tool for creating and editing labels of graphelements.
- Version:
- $Revision: 1.10 $
- Author:
- Holleis
-
Field Summary
Fields inherited from class org.graffiti.plugins.modes.defaults.MegaTools
MouseWheelZoomEnabled
-
Constructor Summary
Constructors Constructor Description LabelTool()
-
Method Summary
Modifier and Type Method Description void
activate()
Classes that overwrite this method should call super.active first.String
getToolName()
void
mouseClicked(MouseEvent e)
void
mousePressed(MouseEvent e)
Invoked if user presses mouse button.void
reset()
DOCUMENT ME!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
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
mouseEntered, mouseExited, mouseReleased
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged
-
Constructor Details
-
LabelTool
public LabelTool()
-
-
Method Details
-
mousePressed
Invoked if user presses mouse button.- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
- Parameters:
e
- the mouse event
-
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()
-
reset
public void reset()DOCUMENT ME! -
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classMouseAdapter
-
getToolName
-