Package hec.map
Class ModelDrawingAttributeSet
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.map.ModelDrawingAttributeSet
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
- Direct Known Subclasses:
StreamAlignmentAttributeSet
Class Description
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classClass Description -
Field Summary
FieldsModifier and TypeFieldDescriptionDescriptionstatic final Stringthe name attributestatic final Stringthe isShown attributeFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the ModelDrawingAttributeSet objectConstructor for the ModelDrawingAttributeSet object -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a feature to the AttributeAddRemoveListener attribute of the ModelDrawingAttributeSet objectvoidAdds a feature to the AttributeChangedListener attribute of the ModelDrawingAttributeSet objectclone()Creates a new object of the same class as this object.voidMethod Descriptioncreate the Attributes table.voiddisplayDrawPropDialogClass(Frame frame, boolean modal) Method Descriptionprotected voidfireAttributeAdded(Object attribute) Method Descriptionprotected voidfireAttributeChanged(String attrName, boolean shown) Method Descriptionprotected voidfireAttributeRemoved(Object attribute) Method DescriptiongetAttributeInfo(String attrName) return the list of attribute info object for the attribute name.Gets the AttributeNames attribute of the ModelDrawingAttributeSet objectGets the Attributes attribute of the ModelDrawingAttributeSet objectgetAttributeValue(String attrName) Gets the DrawPropDialogClassname attribute of the ModelDrawingAttributeSet objectGets the Icon attribute of the ModelDrawingAttributeSet objectreturn the name stored in the attributes tablebooleanreturn whether this attribute set has fixed attributes.booleanisAttributeShown(String att) Gets the AttributeShown attribute of the ModelDrawingAttributeSet objectbooleanisShown()Gets the Shown attribute of the ModelDrawingAttributeSet objectbooleanisValidAttribute(String attrName) Gets the ValidAttribute attribute of the ModelDrawingAttributeSet objectvoidputAttribute(String att, boolean shown) voidremoveAttribute(String attrName) Method DescriptionvoidMethod DescriptionvoidMethod DescriptionvoidsetAttribute(String att, boolean shown) Sets the Attribute attribute of the ModelDrawingAttributeSet objectvoidsetShown(boolean b) Sets the Shown attribute of the ModelDrawingAttributeSet objectvoidMethod DescriptionvoidMethod DescriptionMethods 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, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
SHOWN
the isShown attribute- See Also:
-
NAME
the name attribute- See Also:
-
_attributes
Description
-
-
Constructor Details
-
ModelDrawingAttributeSet
public ModelDrawingAttributeSet()Constructor for the ModelDrawingAttributeSet object -
ModelDrawingAttributeSet
Constructor for the ModelDrawingAttributeSet object- Parameters:
name- Description
-
-
Method Details
-
createAttributesTable
create the Attributes table. subclasses can override to implement the table using a different class if need by.- Returns:
-
getAttributes
Gets the Attributes attribute of the ModelDrawingAttributeSet object- Returns:
- The Attributes value
-
setAttribute
Sets the Attribute attribute of the ModelDrawingAttributeSet object- Parameters:
att- The new Attribute valueshown- The new Attribute value
-
putAttribute
-
hasFixedAttributes
public boolean hasFixedAttributes()return whether this attribute set has fixed attributes. default is true;- Returns:
- Description
-
removeAttribute
Method Description- Parameters:
attrName- Description
-
getAttributeNames
Gets the AttributeNames attribute of the ModelDrawingAttributeSet object- Returns:
- The AttributeNames value
-
isAttributeShown
Gets the AttributeShown attribute of the ModelDrawingAttributeSet object- Parameters:
att- Description- Returns:
- The AttributeShown value
-
setShown
public void setShown(boolean b) Sets the Shown attribute of the ModelDrawingAttributeSet object- Parameters:
b- The new Shown value
-
isShown
public boolean isShown()Gets the Shown attribute of the ModelDrawingAttributeSet object- Returns:
- The Shown value
-
fireAttributeChanged
Method Description- Parameters:
attrName- Descriptionshown- Description
-
fireAttributeAdded
Method Description- Parameters:
attribute- Description
-
fireAttributeRemoved
Method Description- Parameters:
attribute- Description
-
addAttributeChangedListener
Adds a feature to the AttributeChangedListener attribute of the ModelDrawingAttributeSet object- Parameters:
acl- The feature to be added to the AttributeChangedListener attribute
-
removeAttributeChangeListener
Method Description- Parameters:
acl- Description
-
addAttributeAddRemoveListener
Adds a feature to the AttributeAddRemoveListener attribute of the ModelDrawingAttributeSet object- Parameters:
aarl- The feature to be added to the AttributeAddRemoveListener attribute
-
removeAttributeAddRemoveListener
Method Description- Parameters:
aarl- Description
-
getDrawPropDialogClassname
Gets the DrawPropDialogClassname attribute of the ModelDrawingAttributeSet object- Returns:
- The DrawPropDialogClassname value
-
getDrawPropDlg
-
isValidAttribute
Gets the ValidAttribute attribute of the ModelDrawingAttributeSet object- Parameters:
attrName- Description- Returns:
- The ValidAttribute value
-
displayDrawPropDialogClass
Method Description- Parameters:
frame- Descriptionmodal- Description
-
closeDrawPropDialog
public void closeDrawPropDialog()Method Description -
getIcon
Gets the Icon attribute of the ModelDrawingAttributeSet object- Parameters:
attrName- Description- Returns:
- The Icon value
-
workspaceOpening
public void workspaceOpening()Method Description -
workspaceClosing
public void workspaceClosing()Method Description -
getNameAttribute
return the name stored in the attributes table- Returns:
- the name
-
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. -
getAttributeValue
- Parameters:
attrName-- Returns:
-
getAttributeInfo
return the list of attribute info object for the attribute name. This method returns null and is left for subclasses to override when they want to provide more than just a single icon for an attribute.- Parameters:
attrName- attribute name- Returns:
- null here, override it to provide more info
-