Class StatusBarItem

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
JCoordsStatusBarItem, JCRSStatusBarItem, JExtentStatusBarItem, JMenuStatusBarItem, JRendererStatusBarItem

public abstract class StatusBarItem extends JPanel
Base class for items in JMapStatusBar.
Since:
8.0
Author:
Michael Bedward
See Also:
  • Constructor Details

    • StatusBarItem

      public StatusBarItem(String name)
      Creates a new item with the given name. A border will be drawn for the item.
      Parameters:
      name - item name; or null for a default name
    • StatusBarItem

      public StatusBarItem(String name, boolean border)
      Creates a new item with the given name.
      Parameters:
      name - item name; or null for a default name
      border - whether to draw a border around this item
  • Method Details

    • getID

      public int getID()
      Gets the unique integer ID assigned to this item.
      Returns:
      the item ID
    • getMinimumHeight

      public int getMinimumHeight()
      Gets the minimum height of this item.
      Returns:
      minimum height
    • setNumDecimals

      public void setNumDecimals(int numDecimals)
      For items that display numeric values, sets the number of digits to show to the right of the decimal place. This base implementation does nothing.
      Parameters:
      numDecimals - number of digits after decimal place