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
  • Constructor Details

    • ToolGraphImage

      public ToolGraphImage()
    • ToolGraphImage

      public ToolGraphImage​(ToolGraphImage.Type type)
  • Method Details

    • handleToolEvent

      public void handleToolEvent​(ToolInputEvent e)
      Description copied from interface: ToolInputListener
      Handle this tool event
      Specified by:
      handleToolEvent in interface ToolInputListener
      Overrides:
      handleToolEvent in class ToolGraph
    • clone

      public java.lang.Object clone()
      Specified by:
      clone in interface Tool
      Specified by:
      clone in class ToolGraph
    • 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 given MouseEvent.