Class TLcdGXYAreaShapeListPainter

All Implemented Interfaces:
ILcdCloneable, ILcdDeepCloneable, ILcdPropertyChangeSource, ILcdGXYEditor, ILcdGXYEditorProvider, ILcdGXYPainter, ILcdGXYPainterProvider, ILcdGXYPathPainter, Serializable, Cloneable

public class TLcdGXYAreaShapeListPainter extends TLcdGXYShapeListPainter
Deprecated.
This class extends TLcdGXYShapeListPainter for painting ILcdShapeListobjects which constituting ILcdShape objects can be casted to an ILcdPointList. All ILcdShape objects of an ILcdShapeList painted with this ILcdGXYPainter are painted as a polygon They are all painted in the same color. The constructor allows to set the default outline color, selection color and fill color. It has a property filled which determines whether or not to paint the polygons as filled. Its property displayName (see ALcdGXYPainter) is set to "Area".
See Also:
  • Constructor Details

    • TLcdGXYAreaShapeListPainter

      public TLcdGXYAreaShapeListPainter()
      Deprecated.
      Constructs a TLcdGXYPolylineShapeListPainter having as default painting color Color.gray, as selection color Color.red and filled set to false.
    • TLcdGXYAreaShapeListPainter

      public TLcdGXYAreaShapeListPainter(Color aDefaultColor)
      Deprecated.
      Constructs a TLcdGXYPolylineShapeListPainter having as default painting color aDefaultColor, as selection color Color.red and filled set to false.
      Parameters:
      aDefaultColor - the default color for painting.
    • TLcdGXYAreaShapeListPainter

      public TLcdGXYAreaShapeListPainter(Color aDefaultColor, Color aSelectionColor)
      Deprecated.
      Constructs a TLcdGXYPolylineShapeListPainter having as default painting color aDefaultColor, as selection color aSelectionColor and filled set to false.
      Parameters:
      aDefaultColor - the default color for painting.
      aSelectionColor - the color for painting in selection mode.
    • TLcdGXYAreaShapeListPainter

      public TLcdGXYAreaShapeListPainter(Color aDefaultColor, Color aSelectionColor, boolean aFilled)
      Deprecated.
      Constructs a TLcdGXYPolylineShapeListPainter having as default painting color aDefaultColor, as selection color aSelectionColor and filled set to aFilled.
      Parameters:
      aDefaultColor - the default color for painting.
      aSelectionColor - the color for painting in selection mode.
      aFilled - whether to paint the areas filled or not.
  • Method Details

    • retrieveShapePainter

      protected final ILcdGXYPainter retrieveShapePainter(ILcdShapeList aShapeList, int aShapeIndex)
      Deprecated.
      Description copied from class: TLcdGXYShapeListPainter
      Returns the painter for the shape at the given index in the ILcdShapeList object.
      Overrides:
      retrieveShapePainter in class TLcdGXYShapeListPainter
      Parameters:
      aShapeList - The shape list containing the shape.
      aShapeIndex - The index of the shape within the shape list.
      Returns:
      the painter for the shape at the given index in the ILcdShapeList object.
    • setShapeGXYPainterProvider

      public final void setShapeGXYPainterProvider(ILcdGXYPainterProvider aShapeGXYPainterProvider)
      Deprecated.
      This method should not be called. This class has an internal painter provider for polygon objects for which a number of properties can be changed.
      Overrides:
      setShapeGXYPainterProvider in class TLcdGXYShapeListPainter
      Parameters:
      aShapeGXYPainterProvider - the painter provider for the ILcdShape objects inside the ILcdShapeList object.
      Throws:
      IllegalArgumentException - This method cannot be used. Please use a TLcdGXYShapeListPainter instead.
      See Also:
    • getDefaultColor

      public Color getDefaultColor()
      Deprecated.
      The property defaultColor holds the color by which the objects will be painted. Returns the property defaultColor.
      Returns:
      the default color to paint the objects.
      See Also:
    • setDefaultColor

      public void setDefaultColor(Color aColor)
      Deprecated.
      The property defaultColor holds the color by which the objects will be painted. Sets the property defaultColor to aColor.
      Parameters:
      aColor - the color to paint objects.
      See Also:
    • getSelectionColor

      public Color getSelectionColor()
      Deprecated.
      The property selectionColor holds the color by which the objects will be painted when they are selected. Returns the property selectionColor.
      Returns:
      the color to paint objects in selected mode.
      See Also:
    • setSelectionColor

      public void setSelectionColor(Color aColor)
      Deprecated.
      The property selectionColor holds the color by which the objects will be painted when they are selected. Sets the property selectionColor to aColor.
      Parameters:
      aColor - the color paint objects in selected mode.
      See Also:
    • isPaintCache

      public boolean isPaintCache()
      Deprecated.
      Returns whether the painter used to paint the object uses a cache when painting objects.
      Returns:
      true if the painter that is returned by shapeGXYPainterProvider uses a cache when painting the objects. Else false is returned.
      See Also:
    • setPaintCache

      public void setPaintCache(boolean aPaintCache)
      Deprecated.
      This method sets whether the painter that is returned by shapeGXYPainterProvider uses a cache when painting the objects.
      Parameters:
      aPaintCache - whether the painter to paint the objects should use a cache to paint the objects.
      See Also:
    • setFilled

      public void setFilled(boolean aFilled)
      Deprecated.
      Sets whether the objects should be painted filled or not.
      Parameters:
      aFilled - true to paint the objects filled.
      See Also:
    • isFilled

      public boolean isFilled()
      Deprecated.
      Returns whether the objects should be painted filled.
      Returns:
      whether the objects should be painted filled.
      See Also:
    • clone

      public Object clone()
      Deprecated.
      Description copied from interface: ILcdCloneable

      Makes Object.clone() public.

      When for example extending from java.lang.Object, it can be implemented like this:
      
       public Object clone() {
         try {
           return super.clone();
         } catch ( CloneNotSupportedException e ) {
           // Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
           throw new RuntimeException( e );
         }
       }
       
      Specified by:
      clone in interface ILcdCloneable
      Specified by:
      clone in interface ILcdGXYEditorProvider
      Specified by:
      clone in interface ILcdGXYPainterProvider
      Overrides:
      clone in class TLcdGXYShapeListPainter
      Returns:
      a clone of this painter provider.
      See Also: