public class MapInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_ALIGNMENT
Xml attribute for the alignment property
|
static java.lang.String |
ATTR_BASE
Xml attribute for the base property
|
static java.lang.String |
ATTR_CATEGORY
Xml attribute for the category property
|
static java.lang.String |
ATTR_COLOR
Xml attribute for the color property
|
static java.lang.String |
ATTR_DESCRIPTION
Xml attribute for the map description property
|
static java.lang.String |
ATTR_FASTRENDER
Xml attribute for the map description property
|
static java.lang.String |
ATTR_FONT
Xml attribute for the font property
|
static java.lang.String |
ATTR_LABELFORMAT
Xml attribute for the alignment property
|
static java.lang.String |
ATTR_LABELLINES
Xml attribute for the base property
|
static java.lang.String |
ATTR_LINESTYLE
Xml attribute for the linestyle property
|
static java.lang.String |
ATTR_LINEWIDTH
Xml attribute for the linewidth property
|
static java.lang.String |
ATTR_MAXVALUE
Xml attribute for the max value property
|
static java.lang.String |
ATTR_MINVALUE
Xml attribute for the min value property
|
static java.lang.String |
ATTR_POSITION
Xml attribute for the map vertical position property
|
static java.lang.String |
ATTR_SOURCE
Xml attribute for the map source property
|
static java.lang.String |
ATTR_SPACING
Xml attribute for the spacing property
|
static java.lang.String |
ATTR_SPHERE
Xml attribute for the sphere property
|
static java.lang.String |
ATTR_USE360
Xml attribute for the alignment property
|
static java.lang.String |
ATTR_VALID
Xml attribute for the property
|
static java.lang.String |
ATTR_VISIBLE
Xml attribute for the valid property - used to ignore certain map entries
|
static java.lang.String |
TAG_LATITUDE
Xml tag for the latitude entry
|
static java.lang.String |
TAG_LATITUDELABEL
Xml tag for the latitude label entry
|
static java.lang.String |
TAG_LONGITUDE
Xml tag for the longitude entry
|
static java.lang.String |
TAG_LONGITUDELABEL
Xml tag for the longitude entry
|
static java.lang.String |
TAG_MAP
Xml tag for the map entry
|
static java.lang.String |
TAG_MAPS
Xml tag for the maps entry
|
Constructor and Description |
---|
MapInfo()
Parameterless ctro for unpersistence
|
MapInfo(org.w3c.dom.Element root)
Create the MapInfo from the given xml
|
MapInfo(java.util.List mapDataList)
Create the MapInfo object with the given MapData list
|
MapInfo(java.util.List mapDataList,
LatLonData latData,
LatLonData lonData,
float mapPosition)
Create the MapInfo object with the given MapData list, LatLonData and map position
|
MapInfo(java.util.List mapDataList,
LatLonData latData,
LatLonData lonData,
LatLonLabelData latLabelData,
LatLonLabelData lonLabelData,
float mapPosition)
Create the MapInfo object with the given MapData list, LatLonData and map position
|
MapInfo(XmlResourceCollection mapResources,
boolean stopAfterFirst)
Create the MapInfo from the xml files pointed to by the resource collection
|
MapInfo(XmlResourceCollection mapResources,
boolean stopAfterFirst,
boolean stopAfterEditable)
Create the MapInfo from the xml files pointed to by the resource collection
|
Modifier and Type | Method and Description |
---|---|
static visad.SampledSet |
createMapData(java.lang.String source)
A utility to read in the map data at the given source.
|
boolean |
getJustLoadedLocalMaps()
Get the Flag for just loading local maps
|
LatLonData |
getLatData()
Find and return the LatLonData object that represents the lat state
|
LatLonLabelData |
getLatLabelData()
Find and return the LatLonData object that represents the lat state
|
java.util.List |
getLatLonData()
Get the LatLonData property.
|
java.util.List<LatLonLabelData> |
getLatLonLabelData()
Get the LatLonLabelData property.
|
LatLonData |
getLonData()
Find and return the LatLonData object that represents the lon state
|
LatLonLabelData |
getLonLabelData()
Find and return the LatLonData object that represents the lon state
|
java.util.List<MapData> |
getMapDataList()
Get the MapData property.
|
double |
getMapPosition()
Get the vertical map position value
|
java.lang.String |
getXml()
Return the current state (as an XML string) of this MapInfo
|
java.lang.String |
getXml(boolean useFullSourcePath)
Get the XML
|
void |
setJustLoadedLocalMaps(boolean v)
Set the Flag for just loading local maps
|
void |
setLatLonData(java.util.List value)
Set the LatLonData property.
|
void |
setLatLonLabelData(java.util.List<LatLonLabelData> value)
Set the LatLonLabelData property.
|
void |
setMapDataList(java.util.List value)
Set the MapData property.
|
void |
setMapPosition(double position)
Set the map position
|
public static final java.lang.String TAG_LATITUDE
public static final java.lang.String TAG_LONGITUDE
public static final java.lang.String TAG_LATITUDELABEL
public static final java.lang.String TAG_LONGITUDELABEL
public static final java.lang.String TAG_MAPS
public static final java.lang.String TAG_MAP
public static final java.lang.String ATTR_COLOR
public static final java.lang.String ATTR_FONT
public static final java.lang.String ATTR_CATEGORY
public static final java.lang.String ATTR_DESCRIPTION
public static final java.lang.String ATTR_FASTRENDER
public static final java.lang.String ATTR_LINEWIDTH
public static final java.lang.String ATTR_LINESTYLE
public static final java.lang.String ATTR_MINVALUE
public static final java.lang.String ATTR_MAXVALUE
public static final java.lang.String ATTR_POSITION
public static final java.lang.String ATTR_SOURCE
public static final java.lang.String ATTR_SPACING
public static final java.lang.String ATTR_BASE
public static final java.lang.String ATTR_LABELLINES
public static final java.lang.String ATTR_SPHERE
public static final java.lang.String ATTR_ALIGNMENT
public static final java.lang.String ATTR_LABELFORMAT
public static final java.lang.String ATTR_USE360
public static final java.lang.String ATTR_VALID
public static final java.lang.String ATTR_VISIBLE
public MapInfo()
public MapInfo(java.util.List mapDataList)
mapDataList
- List of MapDatapublic MapInfo(java.util.List mapDataList, LatLonData latData, LatLonData lonData, float mapPosition)
mapDataList
- List of MapDatalatData
- The lat datalonData
- The lon datamapPosition
- The map positionpublic MapInfo(java.util.List mapDataList, LatLonData latData, LatLonData lonData, LatLonLabelData latLabelData, LatLonLabelData lonLabelData, float mapPosition)
mapDataList
- List of MapDatalatData
- The lat datalonData
- The lon datalatLabelData
- The lat label datalonLabelData
- The lon label datamapPosition
- The map positionpublic MapInfo(org.w3c.dom.Element root)
root
- The xmlpublic MapInfo(XmlResourceCollection mapResources, boolean stopAfterFirst)
mapResources
- Xml resourcesstopAfterFirst
- Stop loading in maps after the firstpublic MapInfo(XmlResourceCollection mapResources, boolean stopAfterFirst, boolean stopAfterEditable)
mapResources
- Xml resourcesstopAfterFirst
- If true then stop after we have loaded an editable resourcestopAfterEditable
- If we encounter any local maps.xml file then load it in and quit the looppublic java.lang.String getXml()
public java.lang.String getXml(boolean useFullSourcePath)
useFullSourcePath
- true to use the full source pathpublic double getMapPosition()
public void setMapPosition(double position)
position
- The positionpublic static visad.SampledSet createMapData(java.lang.String source)
source
- The fil, url or java resource to a map file (mcidas or shp)public void setLatLonData(java.util.List value)
value
- The new value for LatLonDatapublic java.util.List getLatLonData()
public void setLatLonLabelData(java.util.List<LatLonLabelData> value)
value
- The new value for LatLonDatapublic java.util.List<LatLonLabelData> getLatLonLabelData()
public void setMapDataList(java.util.List value)
value
- The new value for MapDatapublic java.util.List<MapData> getMapDataList()
public LatLonData getLatData()
public LatLonData getLonData()
public LatLonLabelData getLatLabelData()
public LatLonLabelData getLonLabelData()
public boolean getJustLoadedLocalMaps()
public void setJustLoadedLocalMaps(boolean v)
v
- the flag