Package hec.model
Class WatershedLocation
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.WatershedLocation
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
- Direct Known Subclasses:
Shortcut
- See Also:
-
Field Summary
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionWatershedLocation(String name, String dir) WatershedLocation(String name, String dir, String color, boolean isDirectory) -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object of the same class as this object.booleanequals(WatershedLocation that) booleangetColor()Gets the Color attribute of the Shortcut objectGets the ColorString attribute of the Shortcut objectinthashCode()booleanvoidSets the Color attribute of the Shortcut objectvoidsetDirectory(String dir) toString()Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
WatershedLocation
public WatershedLocation() -
WatershedLocation
-
WatershedLocation
-
-
Method Details
-
setDirectory
-
getDirectory
-
isDirectory
public boolean isDirectory() -
getColor
Gets the Color attribute of the Shortcut object- Returns:
- The Color value
-
setColor
Sets the Color attribute of the Shortcut object- Parameters:
color- The new Color value
-
getColorString
Gets the ColorString attribute of the Shortcut object- Returns:
- The ColorString valu_e
-
toString
-
equals
-
equals
-
hashCode
public int hashCode() -
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.
-