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 classToolGraphImage.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 voidactivate()Should be called once a tool is activated within a particular InterfaceDisplayPanel.java.lang.Objectclone()voiddeactivate()Should be called once a tool is deactivated; instances of Tool should perform clean-up activities here.voidhandlePopupEvent(java.awt.event.ActionEvent e)Handles an event on this object's popup menu.voidhandleToolEvent(ToolInputEvent e)Handle this tool eventbooleanisExclusive()Specifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.voidshowPopupMenu(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, setTargetPanelMethods 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:ToolInputListenerHandle this tool event- Specified by:
handleToolEventin interfaceToolInputListener- Overrides:
handleToolEventin classToolGraph
-
clone
public java.lang.Object clone() -
activate
public void activate()Description copied from interface:ToolShould be called once a tool is activated within a particular InterfaceDisplayPanel. -
deactivate
public void deactivate()Description copied from interface:ToolShould be called once a tool is deactivated; instances of Tool should perform clean-up activities here. -
isExclusive
public boolean isExclusive()Description copied from interface:ToolSpecifies 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:PopupMenuObjectHandles an event on this object's popup menu. -
showPopupMenu
public void showPopupMenu(java.awt.event.MouseEvent e)Description copied from interface:PopupMenuObjectShows a popup menu at the point of the givenMouseEvent.
-