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 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.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
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
mouseEntered, mouseExited, mouseReleasedMethods inherited from interface java.awt.event.MouseMotionListener
mouseDragged
-
Constructor Details
-
LabelTool
public LabelTool()
-
-
Method Details
-
mousePressed
Invoked if user presses mouse button.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter- Parameters:
e- the mouse event
-
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()
-
reset
public void reset()DOCUMENT ME! -
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classMouseAdapter
-
getToolName
-