Package hec.map
Class GlyphDataRecord
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.map.GlyphDataRecord
- All Implemented Interfaces:
hec.io.AsciiSerializable,Serializable,Cloneable,Comparable,Observer,Modifiable
- Direct Known Subclasses:
AiShapeGlyphDataRecord,DlgGlyphDataRecord,ElevationGlyphDataRecord,ImageGlyphDataRecord,InundationGroupGlyphDataRecord,TinGlyphDataRec
public abstract class GlyphDataRecord
extends NamedType
implements Cloneable, Serializable, hec.io.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) booleanvoidread(BufferedReader input) Reads in the common glyph characteristics then passes the reading to the concrete subclass.protected abstract voidread0(String type, String param, BufferedReader input) The abstract read which the concrete subclass must define.booleanreadAsciiSerialized(String mapFileFullPath, FileOpener fileOpener) booleansetFieldObject(Field fld, Object fobj) voidsetMap(Collection maps) voidsetShowLegend(boolean tf) booleanvoidwrite(BufferedWriter output) Writes out the common glyph characteristics then passes the writing to the concrete subclass.protected abstract voidwrite0(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, useRecursiveModifiedTestMethods 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:NamedTypeCreates 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
- Specified by:
getFieldObjectin interfacehec.io.AsciiSerializable- Overrides:
getFieldObjectin classNamedType
-
setFieldObject
- Specified by:
setFieldObjectin interfacehec.io.AsciiSerializable- Overrides:
setFieldObjectin classNamedType
-