@Deprecated public interface ILcdGXYViewLabelPainter extends Serializable, Cloneable
ILcdGXYView
, allowing to implement inter-layer decluttering.
It is recommended to use an implementation of
ILcdGXYViewLabelPlacer
instead,
because it offers better decluttering behavior, more algorithm choices, support for
asynchronous
label placement, and easier customization.
Implementation notes: The implementations of this class should inform the
ALcdLabelLocations
for which objects it has drawn the labels if the layer for which the
labels should be painted is an ILcdGXYEditableLabelsLayer
Modifier and Type | Field and Description |
---|---|
static int |
ALL
Deprecated.
This constant signifies that all labels should be painted.
|
static int |
SELECTION
Deprecated.
This constant signifies that only the labels for the selection should be painted.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Redefines
Object.clone to make it public. |
void |
paintLabel(Graphics aGraphics,
Enumeration aGXYLayerEnumeration,
ILcdGXYView aGXYView,
int aGXYViewLabelPainterMode)
Deprecated.
The implementation of this method shall define how to paint the labels of all the objects in
the various
ILcdGXYLayer of the given Enumeration, on the given
ILcdGXYView , in the given mode. |
void |
paintLabel(Graphics aGraphics,
ILcdGXYView aGXYView,
int aGXYViewLabelPainterMode)
Deprecated.
The implementation of this method shall define how to paint the labels of all the objects in
the various
ILcdGXYLayer of the given ILcdGXYView , in the given mode. |
static final int ALL
static final int SELECTION
void paintLabel(Graphics aGraphics, ILcdGXYView aGXYView, int aGXYViewLabelPainterMode)
ILcdGXYLayer
of the given ILcdGXYView
, in the given mode.
Here one can implement various smart algorithms to check whether or not to paint a label at a
certain location.
If any layer for which labels are painted is an ILcdGXYEditableLabelsLayer
,
this method should inform the ALcdLabelLocations
associated with that layer which
labels have been drawn and which haven't been.
aGraphics
- The Graphics
instance on which to paint the
labels.aGXYView
- The view for which to paint the labels. If labels are drawn for
a layer that is an instance of ILcdGXYEditableLabelsLayer
,
its ALcdLabelLocations instance should be informed of which
labels have been drawn and which haven't been.aGXYViewLabelPainterMode
- Determines which labels should be drawn. Should be one of
ILcdGXYViewLabelPainter.ALL
or
ILcdGXYViewLabelPainter.SELECTION
ILcdGXYEditableLabelsLayer
,
ALcdLabelLocations.setPainted(java.lang.Object, int, int, com.luciad.view.ILcdView, boolean, int)
void paintLabel(Graphics aGraphics, Enumeration aGXYLayerEnumeration, ILcdGXYView aGXYView, int aGXYViewLabelPainterMode)
ILcdGXYLayer
of the given Enumeration, on the given
ILcdGXYView
, in the given mode. Here one can implement various smart algorithms to
check whether or not to paint a label at a certain location.
If any layer for which labels are painted is an ILcdGXYEditableLabelsLayer
,
this method should inform the ALcdLabelLocations
associated with that layer which
labels have been drawn and which haven't been.
aGraphics
- The Graphics
instance on which to paint the
labels.aGXYLayerEnumeration
- Only the labels for the layers contained in this
Enumeration
will be drawn.aGXYView
- The ILcdGXYView instance for which to paint the layers.aGXYViewLabelPainterMode
- Determines which labels should be drawn. Should be one of
ILcdGXYViewLabelPainter.ALL
or
ILcdGXYViewLabelPainter.SELECTION
ILcdGXYEditableLabelsLayer
,
ALcdLabelLocations.setPainted(java.lang.Object, int, int, com.luciad.view.ILcdView, boolean, int)
Object clone()
Object.clone
to make it public.