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() |
String |
getName() |
AbstractShape |
getShape() |
Object |
getValue(String key)
Returns the value for a specified key.
|
boolean |
isEditing() |
boolean |
isSelected() |
void |
setEditing(boolean editing) |
void |
setName(String name) |
void |
setSelected(boolean selected) |
Object |
setValue(String key,
Object value)
Adds a key/value pair to the list.
|
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 String getName()
public AbstractShape getShape()
public Object getValue(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(String name)
public void setSelected(boolean selected)
public Object setValue(String key, 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.protected void updateAttributes()