public class TLspLabelLocationChangedEvent extends Object
This event object contains the information about which label locations have changed.
Use getChanges
to extract the individual changes out of this event.
Use addChange
to populate this event.
setLabelLocations
,
updateLabelLocations
,
ILspLabelLocationChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
TLspLabelLocationChangedEvent.Change
Describes a change in location and visibility of a
TLspLabelID . |
Constructor and Description |
---|
TLspLabelLocationChangedEvent(ALspLabelLocations aSource,
ILspView aView)
Creates a new TLspLabelLocationChangedEvent.
|
Modifier and Type | Method and Description |
---|---|
void |
addChange(TLspLabelID aLabel,
ALspLabelLocation aPreviousLocation,
ALspLabelLocation aLocation,
boolean aPreviousVisible,
boolean aVisible)
Adds a change in the state of a label to this event.
|
Iterable<TLspLabelLocationChangedEvent.Change> |
getChanges()
Retrieves the each individual
TLspLabelLocationChangedEvent.Change part of this event. |
ALspLabelLocations |
getLabelLocations()
Returns the
ALspLabelLocations where the information has changed. |
ILspView |
getView()
Returns the view in which these changes were made.
|
String |
toString() |
public TLspLabelLocationChangedEvent(ALspLabelLocations aSource, ILspView aView)
aSource
- the source of this event.aView
- the view in which the labels are painted.public ILspView getView()
public ALspLabelLocations getLabelLocations()
ALspLabelLocations
where the information has changed.ALspLabelLocations
where the information has changed. This can never
be null
.public Iterable<TLspLabelLocationChangedEvent.Change> getChanges()
TLspLabelLocationChangedEvent.Change
part of this event.public void addChange(TLspLabelID aLabel, ALspLabelLocation aPreviousLocation, ALspLabelLocation aLocation, boolean aPreviousVisible, boolean aVisible)
aLabel
- The label to which the change appliesaPreviousLocation
- Its previous location, possibly null
aLocation
- Its new location, possibly null
aPreviousVisible
- Whether is was previously visibleaVisible
- Whether is it now visible