Class TLspLabelLocationChangedEvent
java.lang.Object
com.luciad.view.lightspeed.label.location.TLspLabelLocationChangedEvent
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.
- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Describes a change in location and visibility of aTLspLabelID
. -
Constructor Summary
ConstructorDescriptionTLspLabelLocationChangedEvent
(ALspLabelLocations aSource, ILspView aView) Creates a new TLspLabelLocationChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChange
(TLspLabelID aLabel, ALspLabelLocation aPreviousLocation, ALspLabelLocation aLocation, boolean aPreviousVisible, boolean aVisible) Adds a change in the state of a label to this event.Retrieves the each individualTLspLabelLocationChangedEvent.Change
part of this event.Returns theALspLabelLocations
where the information has changed.getView()
Returns the view in which these changes were made.toString()
-
Constructor Details
-
TLspLabelLocationChangedEvent
Creates a new TLspLabelLocationChangedEvent.- Parameters:
aSource
- the source of this event.aView
- the view in which the labels are painted.
-
-
Method Details
-
toString
-
getView
Returns the view in which these changes were made.- Returns:
- the view in which these changes were made.
-
getLabelLocations
Returns theALspLabelLocations
where the information has changed.- Returns:
- The
ALspLabelLocations
where the information has changed. This can never benull
.
-
getChanges
Retrieves the each individualTLspLabelLocationChangedEvent.Change
part of this event.- Returns:
- The changes part of this event.
-
addChange
public void addChange(TLspLabelID aLabel, ALspLabelLocation aPreviousLocation, ALspLabelLocation aLocation, boolean aPreviousVisible, boolean aVisible) Adds a change in the state of a label to this event.- Parameters:
aLabel
- The label to which the change appliesaPreviousLocation
- Its previous location, possiblynull
aLocation
- Its new location, possiblynull
aPreviousVisible
- Whether is was previously visibleaVisible
- Whether is it now visible
-