Package mgui.interfaces.tools.graphs
Class ToolGraphImage
java.lang.Object
mgui.interfaces.tools.graphs.ToolGraph
mgui.interfaces.tools.graphs.ToolGraphImage
- All Implemented Interfaces:
java.lang.Cloneable
,PopupMenuObject
,Tool
,ToolInputListener
,IconObject
public class ToolGraphImage extends ToolGraph
Tool which inserts or appends an image to a graph window.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ToolGraphImage.Type
-
Field Summary
Fields inherited from class mgui.interfaces.tools.graphs.ToolGraph
icon, isImmediate, listeners, name, plugins, target_panel
-
Constructor Summary
Constructors Constructor Description ToolGraphImage()
ToolGraphImage(ToolGraphImage.Type type)
-
Method Summary
Modifier and Type Method Description void
activate()
Should be called once a tool is activated within a particular InterfaceDisplayPanel.java.lang.Object
clone()
void
deactivate()
Should be called once a tool is deactivated; instances of Tool should perform clean-up activities here.void
handlePopupEvent(java.awt.event.ActionEvent e)
Handles an event on this object's popup menu.void
handleToolEvent(ToolInputEvent e)
Handle this tool eventboolean
isExclusive()
Specifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.void
showPopupMenu(java.awt.event.MouseEvent e)
Shows a popup menu at the point of the givenMouseEvent
.Methods inherited from class mgui.interfaces.tools.graphs.ToolGraph
addListener, getName, getObjectIcon, getPlugins, getPopupMenu, getPopupMenu, getPreviousTool, isImmediate, removeListener, setIcon, setTargetPanel
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ToolGraphImage
public ToolGraphImage() -
ToolGraphImage
-
-
Method Details
-
handleToolEvent
Description copied from interface:ToolInputListener
Handle this tool event- Specified by:
handleToolEvent
in interfaceToolInputListener
- Overrides:
handleToolEvent
in classToolGraph
-
clone
public java.lang.Object clone() -
activate
public void activate()Description copied from interface:Tool
Should be called once a tool is activated within a particular InterfaceDisplayPanel. -
deactivate
public void deactivate()Description copied from interface:Tool
Should be called once a tool is deactivated; instances of Tool should perform clean-up activities here. -
isExclusive
public boolean isExclusive()Description copied from interface:Tool
Specifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.- Returns:
-
handlePopupEvent
public void handlePopupEvent(java.awt.event.ActionEvent e)Description copied from interface:PopupMenuObject
Handles an event on this object's popup menu. -
showPopupMenu
public void showPopupMenu(java.awt.event.MouseEvent e)Description copied from interface:PopupMenuObject
Shows a popup menu at the point of the givenMouseEvent
.
-