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
ConstructorDescriptionCreates a new instance of this support class, with the specifiedALcdLabelLocations
as source for the events it will fire. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified listener to the list of listeners that should be notified of changes to the label locations.void
addLabelPaintedListener
(ILcdLabelPaintedListener aListener) Adds the specified listener to the list of listeners that should be notified of changes to the label locations.void
fireCollectedChanges
(ILcdView aView) Notifies the registered listeners of the collected changes.void
Notifies the registered listeners of the collected changes.void
labelLocationChanged
(Object aObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView, int aFireEventMode) Notify this support class of a change in the label locations.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.void
Removes the specified listener from the list of listeners.void
Removes the specified listener from the list of listeners.
-
Constructor Details
-
TLcdLabelLocationEventSupport
Creates a new instance of this support class, with the specifiedALcdLabelLocations
as source for the events it will fire.- Parameters:
aSource
- TheALcdLabelLocations
that 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 domainObject
for 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_LATER
the listeners will be notified later (more specifically, whenfireCollectedChanges
is called) and when it isILcdFireEventMode#NO_EVENT
the 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
- TheILcdView
for 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 domainObject
for 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_LATER
the listeners will be notified later (more specifically, whenfireCollectedLabelPaintedChanges
is called) and when it isILcdFireEventMode#NO_EVENT
the 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
- TheILcdView
for which to fire the collected changes.- See Also:
-