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 SummaryFields inherited from class org.graffiti.plugins.modes.defaults.MegaToolsMouseWheelZoomEnabled
- 
Constructor SummaryConstructors Constructor Description LabelTool()
- 
Method SummaryModifier and Type Method Description voidactivate()Classes that overwrite this method should call super.active first.StringgetToolName()voidmouseClicked(MouseEvent e)voidmousePressed(MouseEvent e)Invoked if user presses mouse button.voidreset()DOCUMENT ME!Methods inherited from class org.graffiti.plugins.modes.defaults.MegaToolsfireSelectionChanged, getFoundComponent, getLastMouseE, getLastMouseSrc, mouseMoved, postProcessImageCreation, preProcessImageCreation, sessionChanged, sessionDataChanged, setFoundComponent, unmarkAll, wasScrollPaneMovementMethods inherited from class org.graffiti.plugin.tool.AbstractUndoableToolisSelectionListener, isSessionListener, setUndoSupportMethods inherited from class org.graffiti.plugin.tool.AbstractToolactivateTool, deactivate, deactivateAll, displayAsMarked, displayAsMarked, displayAsMarked, displayAsMarked, getActiveTool, highlight, isActive, isViewListener, selectionChanged, selectionListChanged, setGraph, setPrefs, unDisplayAsMarked, unDisplayAsMarkedMethods inherited from class java.awt.event.MouseAdaptermouseDragged, mouseEntered, mouseExited, mouseReleased, mouseWheelMovedMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.MouseListenermouseEntered, mouseExited, mouseReleasedMethods inherited from interface java.awt.event.MouseMotionListenermouseDragged
- 
Constructor Details- 
LabelToolpublic LabelTool()
 
- 
- 
Method Details- 
mousePressedInvoked if user presses mouse button.- Specified by:
- mousePressedin interface- MouseListener
- Overrides:
- mousePressedin class- MouseAdapter
- Parameters:
- e- the mouse event
 
- 
activatepublic void activate()Description copied from class:AbstractToolClasses that overwrite this method should call super.active first.- Specified by:
- activatein interface- Tool
- Overrides:
- activatein class- AbstractTool
- See Also:
- Tool.activate()
 
- 
resetpublic void reset()DOCUMENT ME!
- 
mouseClicked- Specified by:
- mouseClickedin interface- MouseListener
- Overrides:
- mouseClickedin class- MouseAdapter
 
- 
getToolName
 
-