public static class MapDisplayControl.MapState extends MapData
ATTR_COLOR, ATTR_FASTRENDERING, ATTR_LINESTYLE, ATTR_LINEWIDTH, ATTR_VISIBLE, category, description, fastRendering, lineStyle, lineWidth, mapColor, myMap, source, spacing, visible| Constructor and Description |
|---|
MapState()
ctor for persistence
|
MapState(MapData that)
ctor for instantiating from a MapData
|
MapState(java.lang.String mapPath,
java.lang.String description,
java.awt.Color mapColor,
float lineWidth,
int lineStyle)
Construct this MapState.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyStateToMap()
Apply my map state to the map
|
protected void |
checkVisibility()
Take into account the visibility of the display control
|
boolean |
init(MapDisplayControl mapDisplayControl)
Initialize the map.
|
void |
setColor(java.awt.Color v)
Subclassed method to pickup changes
|
void |
setFastRendering(boolean v)
Subclassed method to pickup changes
|
void |
setLineStyle(int v)
Subclassed method to pickup changes
|
void |
setLineWidth(float v)
Subclassed method to pickup changes
|
void |
setVisible(boolean v)
Subclassed method to pickup changes
|
protected void |
stateChanged()
A method that allows derived classes to be told
when the state has changed.
|
equals, getCategory, getColor, getDescription, getFastRendering, getLineStyle, getLineWidth, getMap, getSource, getSpacing, getVisible, hashCode, setCategory, setDescription, setSource, setSpacing, toStringpublic MapState()
public MapState(MapData that)
that - The MapData to copy frompublic MapState(java.lang.String mapPath,
java.lang.String description,
java.awt.Color mapColor,
float lineWidth,
int lineStyle)
mapPath - File path, resource path or url of the map file.description - Map descriptionmapColor - The initial color to uselineWidth - The initial line width to uselineStyle - The initial line style to useprotected void checkVisibility()
public boolean init(MapDisplayControl mapDisplayControl)
mapDisplayControl - The display control we are part ofprotected void stateChanged()
stateChanged in class MapDataprotected void applyStateToMap()
public void setVisible(boolean v)
setVisible in class MapDatav - The valuepublic void setLineStyle(int v)
setLineStyle in class MapDatav - The valuepublic void setColor(java.awt.Color v)
public void setLineWidth(float v)
setLineWidth in class MapDatav - The valuepublic void setFastRendering(boolean v)
setFastRendering in class MapDatav - The value