public interface PaintSettingsListener extends java.beans.PropertyChangeListener
PaintSettings
.
Changes of the simple properties are indicated by calls of PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
.
Additionally two methods indicating modifications of PaintSettings.getTokenPainterList()
are defined.
Modifier and Type | Method and Description |
---|---|
void |
tokenPainterListChange(PaintSettingsEvent event)
Called if any change happens to the token painter list which is not a direct replacement of a token painter
as indicated by
tokenPainterReplaced(TokenPainterReplacedEvent) . |
void |
tokenPainterReplaced(TokenPainterReplacedEvent event)
Indicating that a token painter at a certain position in the token painter list was replaced.
|
void |
zoomChange(ZoomChangeEvent event)
Called if the
PaintSettings.getZoomX() or PaintSettings.getZoomY() or both changed. |
void zoomChange(ZoomChangeEvent event)
PaintSettings.getZoomX()
or PaintSettings.getZoomY()
or both changed.
Zoom changes are indicated by a separate event type instead of
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
, to avoid separate events (and e.g. multiple
repaint operations) if both zoom factors are changed in one operation.
event
- the object describing the eventvoid tokenPainterReplaced(TokenPainterReplacedEvent event)
Note that this event is only fired if a direct replace happened and not if a more complex list change (e.g. modifying the list length and adding new painters at the) took place.
event
- the object describing the eventvoid tokenPainterListChange(PaintSettingsEvent event)
tokenPainterReplaced(TokenPainterReplacedEvent)
. This event will happen if the alignment
model of the associated alignment area was changed (or a concatenated model was modified) and according changes
e.g. to the length of the token painter list were made.event
- the object describing the event