Package mars.tools

Class IntroToTools

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Memory.Listener, MarsTool

public class IntroToTools extends AbstractMarsTool
The "hello world" of MarsTools!
See Also:
  • Constructor Details

    • IntroToTools

      public IntroToTools()
      Construct an instance of this tool. This will be used by the ToolManager.
  • Method Details

    • getName

      public String getName()
      Required method to return Tool name.
      Specified by:
      getName in interface MarsTool
      Specified by:
      getName in class AbstractMarsTool
      Returns:
      Tool name. MARS will display this in menu item.
    • getToolMenuOrder

      public int getToolMenuOrder()
      When making a custom tool, it is recommended that you remove this method. This only exists so the "Introduction to MARS Tools" tool shows up at the top of the tool list.
    • buildMainDisplayArea

      protected JComponent buildMainDisplayArea()
      Implementation of the inherited abstract method to build the main display area of the GUI. It will be placed in the CENTER area of a BorderLayout. The title is in the NORTH area, and the controls are in the SOUTH area.
      Specified by:
      buildMainDisplayArea in class AbstractMarsTool