|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.gis.maps.MapData
ucar.unidata.idv.control.MapDisplayControl.MapState
public static class MapDisplayControl.MapState
This class holds the state associated with a given map
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.gis.maps.MapData |
|---|
ATTR_COLOR, ATTR_FASTRENDERING, ATTR_LINESTYLE, ATTR_LINEWIDTH, ATTR_VISIBLE, category, description, fastRendering, lineStyle, lineWidth, mapColor, myMap, source, spacing, visible |
| Constructor Summary | |
|---|---|
MapDisplayControl.MapState()
ctor for persistence |
|
MapDisplayControl.MapState(MapData that)
ctor for instantiating from a MapData |
|
MapDisplayControl.MapState(String mapPath,
String description,
Color mapColor,
float lineWidth,
int lineStyle)
Construct this MapState. |
|
| Method Summary | |
|---|---|
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(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. |
| Methods inherited from class ucar.unidata.gis.maps.MapData |
|---|
equals, getCategory, getColor, getDescription, getFastRendering, getLineStyle, getLineWidth, getMap, getSource, getSpacing, getVisible, hashCode, setCategory, setDescription, setSource, setSpacing, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapDisplayControl.MapState()
public MapDisplayControl.MapState(MapData that)
that - The MapData to copy from
public MapDisplayControl.MapState(String mapPath,
String description,
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 use| Method Detail |
|---|
protected void checkVisibility()
public boolean init(MapDisplayControl mapDisplayControl)
mapDisplayControl - The display control we are part of
protected 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(Color v)
setColor in class MapDatav - The valuepublic void setLineWidth(float v)
setLineWidth in class MapDatav - The valuepublic void setFastRendering(boolean v)
setFastRendering in class MapDatav - The value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||