public class TLcdLabelPaintedEvent extends EventObject
Modifier and Type | Class and Description |
---|---|
static class |
TLcdLabelPaintedEvent.LabelPaintedFunction
Function to apply over label locations.
|
source
Constructor and Description |
---|
TLcdLabelPaintedEvent(ALcdLabelLocations aSource,
Object[] aObjects,
int[] aLabelIndices,
int[] aSubLabelIndices,
boolean[] aPainted,
ILcdView aView) |
Modifier and Type | Method and Description |
---|---|
ALcdLabelLocations |
getLabelLocations()
Returns the
ALcdLabelLocations 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 |
processChangedPaintedLabels(TLcdLabelPaintedEvent.LabelPaintedFunction aFunction)
Applies the specified label function to all the changed labels present in this event.
|
String |
toString() |
getSource
public TLcdLabelPaintedEvent(ALcdLabelLocations aSource, Object[] aObjects, int[] aLabelIndices, int[] aSubLabelIndices, boolean[] aPainted, ILcdView aView)
public String toString()
toString
in class EventObject
public ALcdLabelLocations getLabelLocations()
ALcdLabelLocations
where the information has changed.ALcdLabelLocations
where the information has changed. This can never
be null
.public boolean isLabelChanged(Object aDomainObject, int aLabelIndex, int aSubLabelIndex, ILcdView aView)
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.public void processChangedPaintedLabels(TLcdLabelPaintedEvent.LabelPaintedFunction aFunction)
aFunction
- The LabelPaintedFunction to apply to the changed labels. Its applyOnLabel
will be called for all changed labels.