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
Nested ClassesModifier and TypeClassDescriptionstatic classDescribes a change in location and visibility of aTLspLabelID. -
Constructor Summary
ConstructorsConstructorDescriptionTLspLabelLocationChangedEvent(ALspLabelLocations aSource, ILspView aView) Creates a new TLspLabelLocationChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChange(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.Changepart of this event.Returns theALspLabelLocationswhere 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 theALspLabelLocationswhere the information has changed.- Returns:
- The
ALspLabelLocationswhere the information has changed. This can never benull.
-
getChanges
Retrieves the each individualTLspLabelLocationChangedEvent.Changepart 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, possiblynullaLocation- Its new location, possiblynullaPreviousVisible- Whether is was previously visibleaVisible- Whether is it now visible
-