public class StationModel extends NamedList
Constructor and Description |
---|
StationModel()
default ctor
|
StationModel(java.lang.String name)
ctor
|
StationModel(java.lang.String name,
java.util.List l)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addSymbol(MetSymbol s)
Add the symbol
|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.Point2D loc)
Draw the entire StationModel at the given location.
|
MetSymbol |
findSymbolByName(java.lang.String name)
Find the named symbol
|
java.awt.Rectangle |
getBounds()
Get the bounds.
|
java.lang.String |
getDisplayName() |
java.util.List |
getSymbols()
Get the list of symbols
|
void |
removeSymbol(MetSymbol s)
Remove the symbol
|
public StationModel()
public StationModel(java.lang.String name)
name
- The name of the station modelpublic StationModel(java.lang.String name, java.util.List l)
name
- namel
- List of MetSymbols in this station modelpublic java.util.List getSymbols()
public void addSymbol(MetSymbol s)
s
- The symbol to addpublic void removeSymbol(MetSymbol s)
s
- Symbol to removepublic java.awt.Rectangle getBounds()
public java.lang.String getDisplayName()
public MetSymbol findSymbolByName(java.lang.String name)
name
- Symbol namepublic void draw(java.awt.Graphics2D g, java.awt.geom.Point2D loc)
g
- loc
-