Package ucar.unidata.ui.symbol
Class StationModel
java.lang.Object
ucar.unidata.util.NamedList
ucar.unidata.ui.symbol.StationModel
- All Implemented Interfaces:
NamedObject
-
Constructor Summary
ConstructorsConstructorDescriptiondefault ctorStationModel
(String name) ctorStationModel
(String name, List l) ctor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the symbolvoid
draw
(Graphics2D g, Point2D loc) Draw the entire StationModel at the given location.findSymbolByName
(String name) Find the named symbolGet the bounds.Get the list of symbolsvoid
Remove the symbol
-
Constructor Details
-
StationModel
public StationModel()default ctor -
StationModel
ctor- Parameters:
name
- The name of the station model
-
StationModel
ctor- Parameters:
name
- namel
- List of MetSymbols in this station model
-
-
Method Details
-
getSymbols
Get the list of symbols- Returns:
- list of symbols
-
addSymbol
Add the symbol- Parameters:
s
- The symbol to add
-
removeSymbol
Remove the symbol- Parameters:
s
- Symbol to remove
-
getBounds
Get the bounds. This is the union of the bounds of each symbol- Returns:
- bounds
-
getDisplayName
-
findSymbolByName
Find the named symbol- Parameters:
name
- Symbol name- Returns:
- Named symbol or null
-
draw
Draw the entire StationModel at the given location. Note that all MetSymbols expect to use "normalized device" coordinates.- Parameters:
g
-loc
-
-