Package com.luciad.view
Class TLcdLabelPaintedEvent
java.lang.Object
java.util.EventObject
com.luciad.view.TLcdLabelPaintedEvent
- All Implemented Interfaces:
Serializable
This event object contains the information on which labels have changed their painted
status.
- Since:
- 10.1
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Function to apply over label locations. -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcdLabelPaintedEvent
(ALcdLabelLocations aSource, Object[] aObjects, int[] aLabelIndices, int[] aSubLabelIndices, boolean[] aPainted, ILcdView aView) -
Method Summary
Modifier and TypeMethodDescriptionReturns theALcdLabelLocations
where the information has changed.boolean
isLabelChanged
(Object aDomainObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView) Returns whether or not the specified label was changed according to this event.void
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
-
TLcdLabelPaintedEvent
public TLcdLabelPaintedEvent(ALcdLabelLocations aSource, Object[] aObjects, int[] aLabelIndices, int[] aSubLabelIndices, boolean[] aPainted, ILcdView aView)
-
-
Method Details
-
toString
- Overrides:
toString
in classEventObject
-
getLabelLocations
Returns theALcdLabelLocations
where the information has changed.- Returns:
- The
ALcdLabelLocations
where 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.
-
processChangedPaintedLabels
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:
aFunction
- The LabelPaintedFunction to apply to the changed labels. ItsapplyOnLabel
will be called for all changed labels.
-