Class MegaTools
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
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,MouseInputListener
,Tool
,SelectionListener
,SessionListener
,Undoable
- Direct Known Subclasses:
AdvancedLabelTool
,LabelTool
,MegaCreateTool
,MegaMoveTool
public abstract class MegaTools extends AbstractUndoableTool
DOCUMENT ME!
- Version:
- $Revision: 1.35.6.1 $
- Author:
- holleis
-
Field Summary
Fields Modifier and Type Field Description static boolean
MouseWheelZoomEnabled
-
Constructor Summary
Constructors Constructor Description MegaTools()
-
Method Summary
Modifier and Type Method Description void
fireSelectionChanged()
DOCUMENT ME!Component
getFoundComponent()
static MouseEvent
getLastMouseE()
static Component
getLastMouseSrc()
void
mouseMoved(MouseEvent e)
Temporarily marks the component under cursor.void
postProcessImageCreation()
void
preProcessImageCreation()
void
sessionChanged(Session s)
Called when the active session is changed.void
sessionDataChanged(Session s)
Called when the session data (not the session's graph data!) changed.void
setFoundComponent(Component foundComponent)
void
unmarkAll()
Clears the selection.static boolean
wasScrollPaneMovement()
Methods inherited from class org.graffiti.plugin.tool.AbstractUndoableTool
isSelectionListener, isSessionListener, setUndoSupport
Methods inherited from class org.graffiti.plugin.tool.AbstractTool
activate, 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, mousePressed, 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, mousePressed, mouseReleased
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged
Methods inherited from interface org.graffiti.plugin.tool.Tool
getToolName
-
Field Details
-
MouseWheelZoomEnabled
public static boolean MouseWheelZoomEnabled
-
-
Constructor Details
-
MegaTools
public MegaTools()
-
-
Method Details
-
fireSelectionChanged
public void fireSelectionChanged()DOCUMENT ME! -
getFoundComponent
-
setFoundComponent
-
mouseMoved
Temporarily marks the component under cursor.- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classMouseAdapter
- Parameters:
e
- the mouse event
-
sessionChanged
Called when the active session is changed.- Specified by:
sessionChanged
in interfaceSessionListener
- Overrides:
sessionChanged
in classAbstractUndoableTool
- Parameters:
s
- DOCUMENT ME!- See Also:
SessionListener.sessionChanged(Session)
-
sessionDataChanged
Called when the session data (not the session's graph data!) changed.- Specified by:
sessionDataChanged
in interfaceSessionListener
- Overrides:
sessionDataChanged
in classAbstractUndoableTool
- Parameters:
s
- DOCUMENT ME!- See Also:
SessionListener.sessionDataChanged(Session)
-
unmarkAll
public void unmarkAll()Clears the selection. Does not fire a selectionChanged event. -
getLastMouseE
-
wasScrollPaneMovement
public static boolean wasScrollPaneMovement() -
getLastMouseSrc
-
preProcessImageCreation
public void preProcessImageCreation() -
postProcessImageCreation
public void postProcessImageCreation()
-