Package hec.map.appInterface
Interface MapWorkspace
- All Superinterfaces:
FileOpener,Workspace
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMap(MapIdentifier mapToAdd) Add the map specified by mapToAdd to the Workspacereturn the current coordinate system for the Workspacereturn the extents of this Workspacebooleanget whether thehec.map.MapPanelshould grow to the extents of each map that is added to the MapPanelbooleanremoveMap(MapIdentifier mapToRemove) Remove the map specified by mapToRemovebooleansetCoordSys(CoordinateInfo coordSys) booleansetExtents(WorldRect extents) Sets the Extents of thehec.map.MapPanelfor this WorkspacebooleansetGrowToExtents(boolean growToEx) set whether thehec.map.MapPanelshould grow to the extents of each map that is addedbooleansetMapOrder(List orderedMapIds) Set the order that the maps are drawn as specified by thehec.map.MapIdentifiersin the List orderedMapIdsMethods inherited from interface hec.appInterface.FileOpener
createFile, getDriveList, getFileList, lockFile, openFile, unlockFileMethods inherited from interface hec.appInterface.Workspace
getRelativePath, getTitleName, getWorkspacePath, isModified, setManagerOrder, setModified
-
Method Details
-
removeMap
Remove the map specified by mapToRemove- Parameters:
mapToRemove- the map to remove- Returns:
- true if the map was successfully removed from the Workspace
-
addMap
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
Sets the Extents of thehec.map.MapPanelfor 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
- Parameters:
coordSys- the new CoordinateSystem- Returns:
- true if the CoordinateSystem was set
-
setMapOrder
Set the order that the maps are drawn as specified by thehec.map.MapIdentifiersin the List orderedMapIds- Parameters:
orderedMapIds- the List of orderedhec.map.MapIdentifiers
-
getGrowToExtents
boolean getGrowToExtents()get whether thehec.map.MapPanelshould grow to the extents of each map that is added to the MapPanel- Returns:
- true if the
hec.map.MapPanelshould grow it's extents to the extents of each map
-
setGrowToExtents
boolean setGrowToExtents(boolean growToEx) set whether thehec.map.MapPanelshould grow to the extents of each map that is added- Parameters:
growToEx- true if thehec.map.MapPanelshow grow it's extents- Returns:
- true if the new value was set successfully.
-