protected static class RigidShapeBuilder.AbstractShapeEntry extends WWObjectImpl
Modifier and Type | Field and Description |
---|---|
protected ShapeAttributes |
attributes |
protected boolean |
editing |
protected AbstractShapeEditor |
editor |
protected boolean |
selected |
protected AbstractShape |
shape |
Constructor and Description |
---|
AbstractShapeEntry(AbstractShape shape,
AbstractShapeEditor editor) |
Modifier and Type | Method and Description |
---|---|
ShapeAttributes |
getAttributes() |
AbstractShapeEditor |
getEditor() |
java.lang.String |
getName() |
AbstractShape |
getShape() |
java.lang.Object |
getValue(java.lang.String key)
Returns the value for a specified key.
|
boolean |
isEditing() |
boolean |
isSelected() |
void |
setEditing(boolean editing) |
void |
setName(java.lang.String name) |
void |
setSelected(boolean selected) |
java.lang.Object |
setValue(java.lang.String key,
java.lang.Object value)
Adds a key/value pair to the list.
|
java.lang.String |
toString() |
protected void |
updateAttributes() |
onMessage, propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
protected ShapeAttributes attributes
protected boolean editing
protected AbstractShapeEditor editor
protected boolean selected
protected AbstractShape shape
public AbstractShapeEntry(AbstractShape shape, AbstractShapeEditor editor)
public ShapeAttributes getAttributes()
public AbstractShapeEditor getEditor()
public java.lang.String getName()
public AbstractShape getShape()
public java.lang.Object getValue(java.lang.String key)
AVList
getValue
in interface AVList
getValue
in class AVListImpl
key
- the attribute name. May not be null
.null
.public boolean isEditing()
public boolean isSelected()
public void setEditing(boolean editing)
public void setName(java.lang.String name)
public void setSelected(boolean selected)
public java.lang.Object setValue(java.lang.String key, java.lang.Object value)
AVList
setValue
in interface AVList
setValue
in class AVListImpl
key
- the attribute name. May not be null
.value
- the attribute value. May be null
, in which case any existing value for the key is
removed from the collection.public java.lang.String toString()
toString
in class java.lang.Object
protected void updateAttributes()