public interface AttributeEditor<T>
Figure
s in a DrawingView
.
The AttributeEditor
can be attached to a single DrawingView
or to the whole DrawingEditor
by means of an
AttributeFieldHandler
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_VALUE_PROPERTY |
static java.lang.String |
MULTIPLE_VALUES_PROPERTY |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener.
|
T |
getAttributeValue()
Gets the attribute value.
|
javax.swing.JComponent |
getComponent()
Returns the JComponent of the attribute field.
|
boolean |
getValueIsAdjusting()
Returns true if the field is currently adjusting the value.
|
boolean |
isMultipleValues()
This method returns the value of the multipleValues property.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener.
|
void |
setAttributeValue(T newValue)
Sets the attribute value.
|
void |
setMultipleValues(boolean newValue)
This method is called, if the figures of the attribute field have
multiple values.
|
static final java.lang.String ATTRIBUTE_VALUE_PROPERTY
static final java.lang.String MULTIPLE_VALUES_PROPERTY
javax.swing.JComponent getComponent()
void setAttributeValue(T newValue)
newValue
- T getAttributeValue()
void setMultipleValues(boolean newValue)
newValue
- boolean isMultipleValues()
boolean getValueIsAdjusting()
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
-