|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.gis.maps.MapData
public class MapData
Holds basic map information
| Field Summary | |
|---|---|
protected String |
category
|
protected String |
description
The description of the map |
protected boolean |
fastRendering
fast rendering flag |
protected int |
lineStyle
The line style |
protected float |
lineWidth
The line width |
protected Color |
mapColor
The color |
protected MapLines |
myMap
The MapLines displayable |
protected String |
source
The file, url or java resource of the map |
protected float |
spacing
spacing |
protected boolean |
visible
Is the map visible |
| Constructor Summary | |
|---|---|
MapData()
ctor for bundles |
|
MapData(Element mapNode,
String source)
Create this MapData from the state in the given xml element |
|
MapData(MapData that)
A copy constructor |
|
MapData(String source,
MapLines map)
Create this object with the given soruce and state held in the map lines |
|
MapData(String mapPath,
String description,
Color mapColor,
float lineWidth,
int lineStyle)
Construct this MapData. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Use the source as the .equals |
String |
getCategory()
Get the Category property. |
Color |
getColor()
Get the Color |
String |
getDescription()
Get the description |
boolean |
getFastRendering()
Get the FastRendering property. |
int |
getLineStyle()
Get the line style |
float |
getLineWidth()
Get the line width |
MapLines |
getMap()
Get the MapLines |
String |
getSource()
Get the source of this map |
float |
getSpacing()
Get the spacing |
boolean |
getVisible()
Is this map visible |
int |
hashCode()
Use the source as the hashcode |
void |
setCategory(String value)
Set the Category property. |
void |
setColor(Color v)
Set the color |
void |
setDescription(String v)
Set the description |
void |
setFastRendering(boolean value)
Set the FastRendering property. |
void |
setLineStyle(int v)
Set the line style |
void |
setLineWidth(float v)
Set the line width |
void |
setSource(String v)
Set the map source |
void |
setSpacing(float v)
Set the spacing |
void |
setVisible(boolean v)
Set the visibility |
protected void |
stateChanged()
A method that allows derived classes to be told when the state has changed. |
String |
toString()
Overwrite toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String source
protected String category
protected String description
protected Color mapColor
protected boolean visible
protected float lineWidth
protected int lineStyle
protected float spacing
protected MapLines myMap
protected boolean fastRendering
| Constructor Detail |
|---|
public MapData()
public MapData(Element mapNode,
String source)
mapNode - The xml elementsource - default sourcepublic MapData(MapData that)
that - The MapData to initialize from
public MapData(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
public MapData(String source,
MapLines map)
source - The sourcemap - The map lines| Method Detail |
|---|
protected void stateChanged()
public MapLines getMap()
public Color getColor()
public void setColor(Color v)
v - the new colorpublic boolean getVisible()
public void setVisible(boolean v)
v - The new visibilitypublic String getSource()
public void setSource(String v)
v - The new map sourcepublic String getDescription()
public void setDescription(String v)
v - The new descriptionpublic float getLineWidth()
public void setLineWidth(float v)
v - The new line widthpublic int getLineStyle()
public void setLineStyle(int v)
v - The new line stylepublic float getSpacing()
public void setSpacing(float v)
v - The new value for the spacingpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objecto - The other object
public String toString()
toString in class Objectpublic void setFastRendering(boolean value)
value - The new value for FastRenderingpublic boolean getFastRendering()
public void setCategory(String value)
value - The new value for Categorypublic String getCategory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||