Package hec.map
Class MapObject
java.lang.Object
hec.map.MapObject
- All Implemented Interfaces:
MapObjectInterface,Serializable
- Direct Known Subclasses:
AiDemBaseMap,AiShapeMap,AnnotationMapObject,DemMap,DlgMap,DxfMap,Flo2dDepthMap,Flo2dElevMap,ImageMap,InundationGroup,NetTinMap,RasterMap,TinMap,TmsMap,VrtMapObject
Abstract base class for map objects for Map objects.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected WorldRectprotected FileOpenerprotected booleanprotected MapIdentifierprotected CoordinateReferenceSystem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Returns the coordinate reference system that describes the location of this map.Gets the Extent attribute of the MapObjectInterface objectreturn the list of File names that the MapObject has.Gets the MapIdentifier attribute of the MapObjectInterface objectgetName()Gets the Name attribute of the MapObjectInterface objectabstract voidload()Method to tell the Map Object to load its data into memorybooleanmapIdentifierEquals(MapIdentifier mapid) check to see if the Map specified by the MapIdentifier mapid is the same map as this oneprotected IdentifiernewFile(Identifier pathId) protected IdentifiernewThenOpenFile(Identifier pathId) openFile(Identifier pathId) booleanreadProjection(Identifier prjId) Reads a projection from the file specified by the identifier.voidSets the Extent attribute of the MapObjectInterface objectvoidsetFileOpener(FileOpener fileOpener) voidSets the MapIdentifier attribute of the MapObjectInterface objecttoString()abstract voidunload()Method to tell the Map Object to unload, because the map is done
-
Field Details
-
_mapId
-
_extent
-
_loaded
protected boolean _loaded -
_debug
protected boolean _debug -
_fileOpener
-
mCoordinateReferencySystem
-
-
Constructor Details
-
MapObject
-
MapObject
-
MapObject
public MapObject()
-
-
Method Details
-
equals
-
setFileOpener
-
getFileOpener
-
newFile
-
openFile
-
newThenOpenFile
-
setMapIdentifier
Description copied from interface:MapObjectInterfaceSets the MapIdentifier attribute of the MapObjectInterface object- Specified by:
setMapIdentifierin interfaceMapObjectInterface- Parameters:
id- The new MapIdentifier value
-
getMapIdentifier
Description copied from interface:MapObjectInterfaceGets the MapIdentifier attribute of the MapObjectInterface object- Specified by:
getMapIdentifierin interfaceMapObjectInterface- Returns:
- The MapIdentifier value
-
getName
Description copied from interface:MapObjectInterfaceGets the Name attribute of the MapObjectInterface object- Specified by:
getNamein interfaceMapObjectInterface- Returns:
- The Name value
-
getCoordinateReferenceSystem
Returns the coordinate reference system that describes the location of this map. Users can return NULL if they don't have CoordinateReferenceSystem.- Specified by:
getCoordinateReferenceSystemin interfaceMapObjectInterface- Returns:
-
getCoordinateInfo
Deprecated. -
setExtent
Description copied from interface:MapObjectInterfaceSets the Extent attribute of the MapObjectInterface object- Specified by:
setExtentin interfaceMapObjectInterface- Parameters:
rc- The new Extent value
-
getExtent
Description copied from interface:MapObjectInterfaceGets the Extent attribute of the MapObjectInterface object- Specified by:
getExtentin interfaceMapObjectInterface- Returns:
- The Extent value
-
load
Description copied from interface:MapObjectInterfaceMethod to tell the Map Object to load its data into memory- Specified by:
loadin interfaceMapObjectInterface- Throws:
IOException- Description of Exception
-
unload
public abstract void unload()Description copied from interface:MapObjectInterfaceMethod to tell the Map Object to unload, because the map is done- Specified by:
unloadin interfaceMapObjectInterface
-
getFilenames
return the list of File names that the MapObject has. The first filename in the list must be the main file (ie for shape files it should be the .shp file, usually_mapId.getPath()). Subclasses should override this method if they have more than 1 file.- Returns:
- the list of Map File names
-
toString
-
mapIdentifierEquals
check to see if the Map specified by the MapIdentifier mapid is the same map as this one- Parameters:
mapid-- Returns:
- true if the mapid references the same map file as this map.
-
readProjection
Reads a projection from the file specified by the identifier.- Parameters:
prjId-- Returns:
-