Package hec.map.appInterface
Interface MapWorkspace
- All Superinterfaces:
FileOpener
,Workspace
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addMap
(MapIdentifier mapToAdd) Add the map specified by mapToAdd to the Workspacereturn the current coordinate system for the Workspacereturn the extents of this Workspaceboolean
get whether thehec.map.MapPanel
should grow to the extents of each map that is added to the MapPanelboolean
removeMap
(MapIdentifier mapToRemove) Remove the map specified by mapToRemoveboolean
setCoordSys
(CoordinateInfo coordSys) boolean
setExtents
(WorldRect extents) Sets the Extents of thehec.map.MapPanel
for this Workspaceboolean
setGrowToExtents
(boolean growToEx) set whether thehec.map.MapPanel
should grow to the extents of each map that is addedboolean
setMapOrder
(List orderedMapIds) Set the order that the maps are drawn as specified by thehec.map.MapIdentifiers
in the List orderedMapIdsMethods inherited from interface hec.appInterface.FileOpener
createFile, getDriveList, getFileList, lockFile, openFile, unlockFile
Methods 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.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
- 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.MapIdentifiers
in the List orderedMapIds- Parameters:
orderedMapIds
- the List of orderedhec.map.MapIdentifiers
-
getGrowToExtents
boolean getGrowToExtents()get whether thehec.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 thehec.map.MapPanel
should grow to the extents of each map that is added- Parameters:
growToEx
- true if thehec.map.MapPanel
show grow it's extents- Returns:
- true if the new value was set successfully.
-