Package com.luciad.view
Class TLcdLabelLocationEvent
java.lang.Object
java.util.EventObject
com.luciad.view.TLcdLabelLocationEvent
- All Implemented Interfaces:
Serializable
This event object contains the information about which labels have changed. One can
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFunction to apply over label locations. -
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTLcdLabelLocationEvent(ALcdLabelLocations aSource, Object[] aObjects, int[] aLabelIndices, int[] aSubLabelIndices, ILcdView aView) -
Method Summary
Modifier and TypeMethodDescriptionReturns theALcdLabelLocationswhere the information has changed.booleanisLabelChanged(Object aDomainObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView) Returns whether or not the specified label was changed according to this event.voidprocessChangedLabels(TLcdLabelLocationEvent.LabelFunction aLabelFunction) Applies the specified label function to all the changed labels present in this event.toString()Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
TLcdLabelLocationEvent
public TLcdLabelLocationEvent(ALcdLabelLocations aSource, Object[] aObjects, int[] aLabelIndices, int[] aSubLabelIndices, ILcdView aView)
-
-
Method Details
-
toString
- Overrides:
toStringin classEventObject
-
getLabelLocations
Returns theALcdLabelLocationswhere the information has changed.- Returns:
- The
ALcdLabelLocationswhere the information has changed. This can never benull.
-
isLabelChanged
public boolean isLabelChanged(Object aDomainObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView) Returns whether or not the specified label was changed according to this event.- Parameters:
aDomainObject- The domain object of the label for which you want to know if it has changed.aLabelIndex- The label index of the label for which you want to know if it has changed.aSubLabelIndex- The sublabel index of the label for which you want to know if it has changed.aView- The view on which the label for which you want to know if it has changed was painted.- Returns:
- Whether or not the specified label was changed according to this event.
-
processChangedLabels
Applies the specified label function to all the changed labels present in this event. A label is specified by its domain object, label index and sublabel index.- Parameters:
aLabelFunction- The LabelFunction to apply to the changed labels. ItsapplyOnLabelwill be called for all changed labels.
-