Class MapInfo

java.lang.Object
ucar.unidata.gis.maps.MapInfo

public class MapInfo extends Object
  • Field Details

  • Constructor Details

    • MapInfo

      public MapInfo()
      Parameterless ctro for unpersistence
    • MapInfo

      public MapInfo(List mapDataList)
      Create the MapInfo object with the given MapData list
      Parameters:
      mapDataList - List of MapData
    • MapInfo

      public MapInfo(List mapDataList, LatLonData latData, LatLonData lonData, float mapPosition)
      Create the MapInfo object with the given MapData list, LatLonData and map position
      Parameters:
      mapDataList - List of MapData
      latData - The lat data
      lonData - The lon data
      mapPosition - The map position
    • MapInfo

      public MapInfo(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
      Parameters:
      mapDataList - List of MapData
      latData - The lat data
      lonData - The lon data
      latLabelData - The lat label data
      lonLabelData - The lon label data
      mapPosition - The map position
    • MapInfo

      public MapInfo(Element root)
      Create the MapInfo from the given xml
      Parameters:
      root - The xml
    • MapInfo

      public MapInfo(XmlResourceCollection mapResources, boolean stopAfterFirst)
      Create the MapInfo from the xml files pointed to by the resource collection
      Parameters:
      mapResources - Xml resources
      stopAfterFirst - Stop loading in maps after the first
    • MapInfo

      public MapInfo(XmlResourceCollection mapResources, boolean stopAfterFirst, boolean stopAfterEditable)
      Create the MapInfo from the xml files pointed to by the resource collection
      Parameters:
      mapResources - Xml resources
      stopAfterFirst - If true then stop after we have loaded an editable resource
      stopAfterEditable - If we encounter any local maps.xml file then load it in and quit the loop
  • Method Details

    • getXml

      public String getXml()
      Return the current state (as an XML string) of this MapInfo
      Returns:
      The xml representation of the current state
    • getXml

      public String getXml(boolean useFullSourcePath)
      Get the XML
      Parameters:
      useFullSourcePath - true to use the full source path
      Returns:
      the Xml
    • getMapPosition

      public double getMapPosition()
      Get the vertical map position value
      Returns:
      map position value
    • setMapPosition

      public void setMapPosition(double position)
      Set the map position
      Parameters:
      position - The position
    • createMapData

      public static SampledSet createMapData(String source)
      A utility to read in the map data at the given source.
      Parameters:
      source - The fil, url or java resource to a map file (mcidas or shp)
      Returns:
      The data or null if this fails.
    • setLatLonData

      public void setLatLonData(List value)
      Set the LatLonData property.
      Parameters:
      value - The new value for LatLonData
    • getLatLonData

      public List getLatLonData()
      Get the LatLonData property.
      Returns:
      The LatLonData
    • setLatLonLabelData

      public void setLatLonLabelData(List<LatLonLabelData> value)
      Set the LatLonLabelData property.
      Parameters:
      value - The new value for LatLonData
    • getLatLonLabelData

      public List<LatLonLabelData> getLatLonLabelData()
      Get the LatLonLabelData property.
      Returns:
      The LatLonLabelData
    • setMapDataList

      public void setMapDataList(List value)
      Set the MapData property.
      Parameters:
      value - The new value for MapData
    • getMapDataList

      public List<MapData> getMapDataList()
      Get the MapData property.
      Returns:
      The MapData
    • getLatData

      public LatLonData getLatData()
      Find and return the LatLonData object that represents the lat state
      Returns:
      The lat state
    • getLonData

      public LatLonData getLonData()
      Find and return the LatLonData object that represents the lon state
      Returns:
      The lon state
    • getLatLabelData

      public LatLonLabelData getLatLabelData()
      Find and return the LatLonData object that represents the lat state
      Returns:
      The lat state
    • getLonLabelData

      public LatLonLabelData getLonLabelData()
      Find and return the LatLonData object that represents the lon state
      Returns:
      The lon state
    • getJustLoadedLocalMaps

      public boolean getJustLoadedLocalMaps()
      Get the Flag for just loading local maps
      Returns:
      the flag
    • setJustLoadedLocalMaps

      public void setJustLoadedLocalMaps(boolean v)
      Set the Flag for just loading local maps
      Parameters:
      v - the flag