public class Station extends java.lang.Object implements Basic
Constructor and Description |
---|
Station(Model model,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
Grafic |
createGrafic(java.lang.String viewId,
int x,
int y)
create stationGrafic
|
Grafic |
getGrafic()
get stationGrafic created before
|
java.lang.String |
getId() |
Model |
getModel() |
java.lang.String |
getName()
get name of station, can be null
|
void |
setName(java.lang.String name) |
public Station(Model model, java.lang.String id)
model
- used animation.model.Modelid
- must be uniquepublic java.lang.String getId()
getId
in interface ClassBasic
public java.lang.String getName()
public void setName(java.lang.String name)
public Grafic createGrafic(java.lang.String viewId, int x, int y)
x
- middlepoint x-coordinatey
- middlepoint y-coordinate