Package hec.map
Class GlyphDataRecord
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.map.GlyphDataRecord
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
- Direct Known Subclasses:
AiShapeGlyphDataRecord
,DlgGlyphDataRecord
,ElevationGlyphDataRecord
,ImageGlyphDataRecord
,InundationGroupGlyphDataRecord
,TinGlyphDataRec
public abstract class GlyphDataRecord
extends NamedType
implements Cloneable, Serializable, AsciiSerializable
Keeps track of the glyph display information
- See Also:
-
Field Summary
FieldsFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a new object of the same class as this object.getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.boolean
void
read
(BufferedReader input) Reads in the common glyph characteristics then passes the reading to the concrete subclass.protected abstract void
read0
(String type, String param, BufferedReader input) The abstract read which the concrete subclass must define.boolean
readAsciiSerialized
(String mapFileFullPath, FileOpener fileOpener) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setMap
(Collection maps) void
setShowLegend
(boolean tf) boolean
void
write
(BufferedWriter output) Writes out the common glyph characteristics then passes the writing to the concrete subclass.protected abstract void
write0
(BufferedWriter output) The abstract write which the concrete subclass must define.Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
GDR_EXTENSION
- See Also:
-
-
Constructor Details
-
GlyphDataRecord
public GlyphDataRecord()The default constructor.
-
-
Method Details
-
setMap
-
getShowLegend
public boolean getShowLegend() -
setShowLegend
public void setShowLegend(boolean tf) -
clone
Description copied from class:NamedType
Creates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called. -
read
Reads in the common glyph characteristics then passes the reading to the concrete subclass.- Throws:
IOException
-
write
Writes out the common glyph characteristics then passes the writing to the concrete subclass.- Throws:
IOException
-
read0
The abstract read which the concrete subclass must define.- Throws:
IOException
-
write0
The abstract write which the concrete subclass must define.- Throws:
IOException
-
useAsciiSerialization
public boolean useAsciiSerialization() -
readAsciiSerialized
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Overrides:
getFieldObject
in classNamedType
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Overrides:
setFieldObject
in classNamedType
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-