Package hec.gfx2d

Class G2dIdentifier

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable, Comparable, Observer, Modifiable

public class G2dIdentifier extends Identifier implements Serializable
Provides a description of a Map and its characteristics.
See Also:
  • Field Details

    • _isShown

      protected boolean _isShown
      The if the map is shown
    • _glyphDataRec

      protected G2dGlyphDataRecord _glyphDataRec
      The Display Characteristics for the Map
    • _stringClass

      protected String _stringClass
      The class of the Map
  • Constructor Details

    • G2dIdentifier

      public G2dIdentifier()
      The default constructor.
    • G2dIdentifier

      public G2dIdentifier(String path, HecFile file)
      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

      public G2dIdentifier(String path)
      Create a new MapIdentifier using the default constructor. Set the MapIdentifier's path String to the path String argument.
    • G2dIdentifier

      public G2dIdentifier(Identifier id)
      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

      public void setIdentifier(Identifier id)
      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

      public G2dGlyphDataRecord getGlyphDataRecord()
      Get the Glyph characteritics object.
    • setGlyphDataRecord

      public void setGlyphDataRecord(G2dGlyphDataRecord rec)
      Set the Glyph characteritics object.
    • setClassName

      public void setClassName(String str)
      Set the class name of the Map.
      Overrides:
      setClassName in class Identifier
    • getClassName

      public String getClassName()
      Get the class name of the Map.
      Overrides:
      getClassName in class Identifier