Class ALcdGXYAreaPainter

java.lang.Object
com.luciad.view.gxy.ALcdGXYPainter
com.luciad.view.gxy.painter.ALcdGXYAreaPainter
All Implemented Interfaces:
ILcdCloneable, ILcdPropertyChangeSource, ILcdGXYPainter, ILcdGXYPainterProvider, Serializable, Cloneable
Direct Known Subclasses:
TLcdGXYArcBandPainter, TLcdGXYBoundsPainter, TLcdGXYBufferPainter, TLcdGXYCircleBy3PointsPainter, TLcdGXYCirclePainter, TLcdGXYCompositeRingPainter, TLcdGXYEllipsePainter, TLcdGXYGeoBufferPainter, TLcdGXYLonLatHeightBufferPainter, TLcdGXYPointListPainter, TLcdGXYSurfacePainter

public abstract class ALcdGXYAreaPainter extends ALcdGXYPainter
Provides OUTLINED, FILLED and OUTLINED_FILLED modes to paint objects which cover an area. The modes are provided for painting object in default mode, as a selected object, or when editing the object.

The interface also adds methods to set the line and fill style that should be used while painting the object.

Since:
7.2
See Also:
  • Field Details

    • OUTLINED

      public static final int OUTLINED
      Draw the outline of the object.
      See Also:
    • FILLED

      public static final int FILLED
      Draw the area defined by the object filled.
      See Also:
    • OUTLINED_FILLED

      public static final int OUTLINED_FILLED
      Draw the outline of the object and the area defined by the object filled.
      See Also:
  • Constructor Details

    • ALcdGXYAreaPainter

      public ALcdGXYAreaPainter()
  • Method Details

    • setMode

      public void setMode(int aMode)
      Sets the mode to decide how to paint an object: the outline (OUTLINED), as a filled area (FILLED), or as a filled and outlined area (OUTLINED_FILLED).
      Parameters:
      aMode - The mode deciding how to paint an object.
      See Also:
    • getMode

      public int getMode()
      Returns the paint mode attribute of this painter.
      Returns:
      the paint mode attribute of this painter.
      See Also:
    • setSelectionMode

      public void setSelectionMode(int aSelectionMode)
      Sets the selection mode to decide how to paint a selected object: the outline (OUTLINED), as a filled area (FILLED), or as a filled and outlined area (OUTLINED_FILLED).
      Parameters:
      aSelectionMode - The mode deciding how to paint a selected object.
      See Also:
    • getSelectionMode

      public int getSelectionMode()
      Returns the selection mode attribute of this painter.
      Returns:
      the selection mode attribute of this painter.
      See Also:
    • setEditMode

      public void setEditMode(int aEditMode)
      Sets the edit mode to decide how to paint an object that is being edited: the outline (OUTLINED), as a filled area (FILLED), or as a filled and outlined area (OUTLINED_FILLED).
      Parameters:
      aEditMode - The mode deciding how to paint an object that is being edited.
      See Also:
    • getEditMode

      public int getEditMode()
      Returns the edit mode attribute of this painter.
      Returns:
      the edit mode attribute of this painter.
      See Also:
    • setLineStyle

      public void setLineStyle(ILcdGXYPainterStyle aLineStyle)
      Sets the line style to use when painting the outline of the object. Note that this property can be set to null.
      Parameters:
      aLineStyle - the line style to use when painting the outline of the object.
      See Also:
    • getLineStyle

      public ILcdGXYPainterStyle getLineStyle()
      Returns the line style used for painting the outline of the object. Note that this method can return null.
      Returns:
      the line style used for painting the outline of the object.
      See Also:
    • setFillStyle

      public void setFillStyle(ILcdGXYPainterStyle aFillStyle)
      Sets the fill style to use when painting the area defined by the object. Note that this property can be set to null.
      Parameters:
      aFillStyle - the fill style to use when painting the area defined by the object.
      See Also:
    • getFillStyle

      public ILcdGXYPainterStyle getFillStyle()
      Returns the fill style used for painting the area defined by the object. Note that this method can return null.
      Returns:
      the fill style used for painting the area defined by the object.
      See Also:
    • clone

      public Object clone()
      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 ILcdGXYPainterProvider
      Overrides:
      clone in class ALcdGXYPainter
      Returns:
      a clone of this painter provider.
      See Also: