Package hec.model

Class WatershedLocation

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable, Comparable, Observer, Modifiable
Direct Known Subclasses:
Shortcut

public class WatershedLocation extends NamedType implements Serializable, Cloneable
See Also:
  • Constructor Details

    • WatershedLocation

      public WatershedLocation()
    • WatershedLocation

      public WatershedLocation(String name, String dir)
    • WatershedLocation

      public WatershedLocation(String name, String dir, String color, boolean isDirectory)
  • Method Details

    • setDirectory

      public void setDirectory(String dir)
    • getDirectory

      public String getDirectory()
    • isDirectory

      public boolean isDirectory()
    • getColor

      public Color getColor()
      Gets the Color attribute of the Shortcut object
      Returns:
      The Color value
    • setColor

      public void setColor(String color)
      Sets the Color attribute of the Shortcut object
      Parameters:
      color - The new Color value
    • getColorString

      public String getColorString()
      Gets the ColorString attribute of the Shortcut object
      Returns:
      The ColorString valu_e
    • toString

      public String toString()
      Overrides:
      toString in class NamedType
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(WatershedLocation that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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