Package hec.gfx2d
Class G2dIdentifier
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.io.Identifier
hec.gfx2d.G2dIdentifier
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
Provides a description of a Map and its characteristics.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected G2dGlyphDataRecord
The Display Characteristics for the Mapprotected boolean
The if the map is shownprotected String
The class of the MapFields inherited from class hec.io.Identifier
_directory, _file, _hidden, _lastModified, _length, _path, _readOnly, _type, DEFAULT_RMI_FILE, RMI_FILE_MAP
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.Create a new MapIdentifier using the default constructor.G2dIdentifier
(String path) Create a new MapIdentifier using the default constructor.G2dIdentifier
(String path, HecFile file) Create a new MapIdentifier using the default constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the class name of the Map.Get the Glyph characteritics object.boolean
isShown()
Get whether or not the map is shown.void
setClassName
(String str) Set the class name of the Map.void
Set the Glyph characteritics object.void
Change the Identifier characteristics of the MapIdentifier.void
setShown
(boolean tf) Set whether or not the map is shown.Methods inherited from class hec.io.Identifier
compareTo, copy, equals, getFile, getPath, getType, hashCode, initToFile, instantiateRmiFile, isDirectory, isHidden, isReadOnly, lastModified, length, paramString, setFile, setHidden, setIsDirectory, setLastModified, setLength, setPath, setReadOnly, setType, toString
Methods inherited from class hec.lang.NamedType
addModifiableListener, clone, fireModifiedStateChanged, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
_isShown
protected boolean _isShownThe if the map is shown -
_glyphDataRec
The Display Characteristics for the Map -
_stringClass
The class of the Map
-
-
Constructor Details
-
G2dIdentifier
public G2dIdentifier()The default constructor. -
G2dIdentifier
Create a new MapIdentifier using the default constructor. Set the MapIdentifier's path String to the path String argument. Set the MapIdentifier's HecFile to the HecFile argument. -
G2dIdentifier
Create a new MapIdentifier using the default constructor. Set the MapIdentifier's path String to the path String argument. -
G2dIdentifier
Create a new MapIdentifier using the default constructor. Set the MapIdentifier's superclass data members to the argument Identifier's values using super(Identifier).
-
-
Method Details
-
setIdentifier
Change the Identifier characteristics of the MapIdentifier. This is used for where the MapIdentifier is identifying a map, but the underlying file for the map is being changed. Example, a DLGMap starts off as "map.dlg". Once it is loaded once, the binary version is created as "map.dlgbin". From then on the binary version should be loaded for speed. Therefore the MapIdentifiers underlying File attributes are changed using setIdentifer().
setIdentifier() set's the String path, Class, directory flag, and HecFile of the MapIdentifier. It keeps the name, description, and all MapIdentifier data members. -
setShown
public void setShown(boolean tf) Set whether or not the map is shown. -
isShown
public boolean isShown()Get whether or not the map is shown. -
getGlyphDataRecord
Get the Glyph characteritics object. -
setGlyphDataRecord
Set the Glyph characteritics object. -
setClassName
Set the class name of the Map.- Overrides:
setClassName
in classIdentifier
-
getClassName
Get the class name of the Map.- Overrides:
getClassName
in classIdentifier
-