Package hec.map

Class 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 Details

  • Constructor Details

    • GlyphDataRecord

      public GlyphDataRecord()
      The default constructor.
  • Method Details

    • setMap

      public void setMap(Collection maps)
    • getShowLegend

      public boolean getShowLegend()
    • setShowLegend

      public void setShowLegend(boolean tf)
    • clone

      public Object 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.
      Overrides:
      clone in class NamedType
    • read

      public void read(BufferedReader input) throws IOException
      Reads in the common glyph characteristics then passes the reading to the concrete subclass.
      Throws:
      IOException
    • write

      public void write(BufferedWriter output) throws IOException
      Writes out the common glyph characteristics then passes the writing to the concrete subclass.
      Throws:
      IOException
    • read0

      protected abstract void read0(String type, String param, BufferedReader input) throws IOException
      The abstract read which the concrete subclass must define.
      Throws:
      IOException
    • write0

      protected abstract void write0(BufferedWriter output) throws IOException
      The abstract write which the concrete subclass must define.
      Throws:
      IOException
    • useAsciiSerialization

      public boolean useAsciiSerialization()
    • readAsciiSerialized

      public boolean readAsciiSerialized(String mapFileFullPath, FileOpener fileOpener)
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Overrides:
      getFieldObject in class NamedType
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Overrides:
      setFieldObject in class NamedType
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful