Interface ILcdGXYViewLabelPainter

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
TLcdContinuousDeclutteringLabelPainter, TLcdGXYAsynchronousViewLabelPainterWrapper, TLcdGXYViewLabelPainter

@Deprecated public interface ILcdGXYViewLabelPainter extends Serializable, Cloneable
Deprecated.
ILcdGXYViewLabelPlacer offers more powerful and flexible decluttering functionality
Paints all labels of an 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

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
    This constant signifies that all labels should be painted.
    static final int
    Deprecated.
    This constant signifies that only the labels for the selection should be painted.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Redefines Object.clone to make it public.
    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.
    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.
  • Field Details

  • Method Details

    • paintLabel

      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. 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.

      Parameters:
      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
      See Also:
    • paintLabel

      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. 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.

      Parameters:
      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
      See Also:
    • clone

      Object clone()
      Deprecated.
      Redefines Object.clone to make it public.