Class ToolGraphTransform

java.lang.Object
mgui.interfaces.tools.graphs.ToolGraph
mgui.interfaces.tools.graphs.ToolGraphTransform
All Implemented Interfaces:
java.lang.Cloneable, PopupMenuObject, Tool, ToolInputListener, IconObject

public class ToolGraphTransform
extends ToolGraph
Acts as a bridge between the mgui Tool interface and Jung's view control mouse plugins.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

  • Constructor Details

    • ToolGraphTransform

      public ToolGraphTransform()
  • 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
    • setTargetPanel

      public void setTargetPanel​(InterfacePanel panel)
      Specified by:
      setTargetPanel in interface Tool
      Overrides:
      setTargetPanel 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:
    • getPopupMenu

      public InterfacePopupMenu getPopupMenu()
      Description copied from interface: PopupMenuObject
      Produces and returns a popup menu for this object.
      Specified by:
      getPopupMenu in interface PopupMenuObject
      Overrides:
      getPopupMenu in class ToolGraph
      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.