Package com.luciad.view
Class TLcdLabelLocationEventSupport
java.lang.Object
com.luciad.view.TLcdLabelLocationEventSupport
Support class for generating events related to label locations. It is provided to facilitate the
implementation of
ALcdLabelLocations- Since:
- 7.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this support class, with the specifiedALcdLabelLocationsas source for the events it will fire. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified listener to the list of listeners that should be notified of changes to the label locations.voidaddLabelPaintedListener(ILcdLabelPaintedListener aListener) Adds the specified listener to the list of listeners that should be notified of changes to the label locations.voidfireCollectedChanges(ILcdView aView) Notifies the registered listeners of the collected changes.voidNotifies the registered listeners of the collected changes.voidlabelLocationChanged(Object aObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView, int aFireEventMode) Notify this support class of a change in the label locations.voidlabelPaintedChanged(Object aObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView, boolean aIsPainted, boolean aPreviousPainted, int aFireEventMode) Notify this support class of a change in the label locations painted status.voidRemoves the specified listener from the list of listeners.voidRemoves the specified listener from the list of listeners.
-
Constructor Details
-
TLcdLabelLocationEventSupport
Creates a new instance of this support class, with the specifiedALcdLabelLocationsas source for the events it will fire.- Parameters:
aSource- TheALcdLabelLocationsthat will be used as the source of the event this instance will fire. It must not benull.- See Also:
-
-
Method Details
-
labelLocationChanged
public void labelLocationChanged(Object aObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView, int aFireEventMode) Notify this support class of a change in the label locations.- Parameters:
aObject- The domainObjectfor which the label changed.aLabelIndex- The label that changed.aSubLabelIndex- The sublabel that changed.aView- The view on which the label was painted.aFireEventMode- Specifies if and when the registered listeners should be notified of the change. When this integer is equal toILcdFireEventMode#FIRE_NOW, the listeners will be notified right away, when it isILcdFireEventMode#FIRE_LATERthe listeners will be notified later (more specifically, whenfireCollectedChangesis called) and when it isILcdFireEventMode#NO_EVENTthe listeners will never be notified of the change.- See Also:
-
addLabelLocationListener
Adds the specified listener to the list of listeners that should be notified of changes to the label locations.- Parameters:
aListener- The listener that should be notified of any future changes in the label locations- See Also:
-
removeLabelLocationListener
Removes the specified listener from the list of listeners. This means it will no longer be notified of any future changes in the label locations.- Parameters:
aListener- The listener that should no longer be notified of the changes in the label locations- See Also:
-
fireCollectedChanges
Notifies the registered listeners of the collected changes. These changes are the ones that were collected using thelabelLocationChanged(Object, int, int, com.luciad.view.ILcdView, int)method.- Parameters:
aView- TheILcdViewfor which to fire the collected changes.- See Also:
-
addLabelPaintedListener
Adds the specified listener to the list of listeners that should be notified of changes to the label locations.- Parameters:
aListener- The listener that should be notified of any future changes in the label locations- See Also:
-
removeLabelPaintedListener
Removes the specified listener from the list of listeners. This means it will no longer be notified of any future changes in the label locations.- Parameters:
aListener- The listener that should no longer be notified of the changes in the label locations- See Also:
-
labelPaintedChanged
public void labelPaintedChanged(Object aObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView, boolean aIsPainted, boolean aPreviousPainted, int aFireEventMode) Notify this support class of a change in the label locations painted status. This label location changed will only throw an event when the painted status is effectively changed.- Parameters:
aObject- The domainObjectfor which the label changed.aLabelIndex- The label that changed.aSubLabelIndex- The sublabel that changed.aView- The view on which the label was painted.aIsPainted- True if the label is marked as painted, and false if it is unmarked.aPreviousPainted- True if the label was marked as painted before the change.aFireEventMode- Specifies if and when the registered listeners should be notified of the change. When this integer is equal toILcdFireEventMode#FIRE_NOW, the listeners will be notified right away, when it isILcdFireEventMode#FIRE_LATERthe listeners will be notified later (more specifically, whenfireCollectedLabelPaintedChangesis called) and when it isILcdFireEventMode#NO_EVENTthe listeners will never be notified of the change.- See Also:
-
fireCollectedLabelPaintedChanges
Notifies the registered listeners of the collected changes. These changes are the ones that were collected using thelabelPaintedChanged(Object, int, int, com.luciad.view.ILcdView, boolean, boolean, int)method.- Parameters:
aView- TheILcdViewfor which to fire the collected changes.- See Also:
-