Interface MapWorkspace

All Superinterfaces:
FileOpener, Workspace

public interface MapWorkspace extends Workspace
  • Method Details

    • removeMap

      boolean removeMap(MapIdentifier mapToRemove)
      Remove the map specified by mapToRemove
      Parameters:
      mapToRemove - the map to remove
      Returns:
      true if the map was successfully removed from the Workspace
    • addMap

      boolean addMap(MapIdentifier mapToAdd)
      Add the map specified by mapToAdd to the Workspace
      Parameters:
      mapToAdd - the map to add to the Workspace.
      Returns:
      true if the map was added to the Workspace successfully
    • setExtents

      boolean setExtents(WorldRect extents)
      Sets the Extents of the hec.map.MapPanel for this Workspace
      Parameters:
      extents - the new extends of the map.
      Returns:
      true if the extents were updated.
    • getExtents

      WorldRect getExtents()
      return the extents of this Workspace
      Returns:
      the workspace extents
    • getCoordSys

      CoordinateInfo getCoordSys()
      return the current coordinate system for the Workspace
      Returns:
      the Workspace's coordinate system
    • setCoordSys

      boolean setCoordSys(CoordinateInfo coordSys)
      Parameters:
      coordSys - the new CoordinateSystem
      Returns:
      true if the CoordinateSystem was set
    • setMapOrder

      boolean setMapOrder(List orderedMapIds)
      Set the order that the maps are drawn as specified by the hec.map.MapIdentifiers in the List orderedMapIds
      Parameters:
      orderedMapIds - the List of ordered hec.map.MapIdentifiers
    • getGrowToExtents

      boolean getGrowToExtents()
      get whether the hec.map.MapPanel should grow to the extents of each map that is added to the MapPanel
      Returns:
      true if the hec.map.MapPanel should grow it's extents to the extents of each map
    • setGrowToExtents

      boolean setGrowToExtents(boolean growToEx)
      set whether the hec.map.MapPanel should grow to the extents of each map that is added
      Parameters:
      growToEx - true if the hec.map.MapPanel show grow it's extents
      Returns:
      true if the new value was set successfully.