Class StationModel

java.lang.Object
ucar.unidata.util.NamedList
ucar.unidata.ui.symbol.StationModel
All Implemented Interfaces:
NamedObject

public class StationModel extends NamedList
  • Constructor Details

    • StationModel

      public StationModel()
      default ctor
    • StationModel

      public StationModel(String name)
      ctor
      Parameters:
      name - The name of the station model
    • StationModel

      public StationModel(String name, List l)
      ctor
      Parameters:
      name - name
      l - List of MetSymbols in this station model
  • Method Details

    • getSymbols

      public List getSymbols()
      Get the list of symbols
      Returns:
      list of symbols
    • addSymbol

      public void addSymbol(MetSymbol s)
      Add the symbol
      Parameters:
      s - The symbol to add
    • removeSymbol

      public void removeSymbol(MetSymbol s)
      Remove the symbol
      Parameters:
      s - Symbol to remove
    • getBounds

      public Rectangle getBounds()
      Get the bounds. This is the union of the bounds of each symbol
      Returns:
      bounds
    • getDisplayName

      public String getDisplayName()
    • findSymbolByName

      public MetSymbol findSymbolByName(String name)
      Find the named symbol
      Parameters:
      name - Symbol name
      Returns:
      Named symbol or null
    • draw

      public void draw(Graphics2D g, Point2D loc)
      Draw the entire StationModel at the given location. Note that all MetSymbols expect to use "normalized device" coordinates.
      Parameters:
      g -
      loc -