public abstract class AbstractConstrainer extends AbstractBean implements Constrainer
Constrainer
.Modifier and Type | Field and Description |
---|---|
protected javax.swing.event.ChangeEvent |
changeEvent
Only one
ChangeEvent is needed per model instance since the
event's only (read-only) state is the source property. |
protected javax.swing.event.EventListenerList |
listenerList
The listeners waiting for model changes.
|
propertySupport
Constructor and Description |
---|
AbstractConstrainer()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Adds a
ChangeListener . |
AbstractConstrainer |
clone() |
protected void |
fireStateChanged()
Runs each
ChangeListener 's stateChanged method. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removes a
ChangeListener . |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
constrainAngle, constrainPoint, constrainRectangle, draw, rotateAngle, translatePoint, translateRectangle
protected javax.swing.event.EventListenerList listenerList
protected transient javax.swing.event.ChangeEvent changeEvent
ChangeEvent
is needed per model instance since the
event's only (read-only) state is the source property. The source
of events generated here is always "this".public void addChangeListener(javax.swing.event.ChangeListener l)
ChangeListener
.addChangeListener
in interface Constrainer
public void removeChangeListener(javax.swing.event.ChangeListener l)
ChangeListener
.removeChangeListener
in interface Constrainer
protected void fireStateChanged()
ChangeListener
's stateChanged
method.EventListenerList
public AbstractConstrainer clone()
clone
in class AbstractBean