Class PolygonStyle2D

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DynamicPolygonStyle2D, MarkStyle2D

public class PolygonStyle2D extends LineStyle2D
A style that contains the specification to renderer both the contour and the interior of a shape
Author:
Andrea Aime
  • Field Details

    • fill

      protected Paint fill
    • graphicFill

      protected Style2D graphicFill
    • fillComposite

      protected Composite fillComposite
  • Constructor Details

    • PolygonStyle2D

      public PolygonStyle2D()
  • Method Details

    • getGraphicFill

      public Style2D getGraphicFill()
      Returns a Style2D used for filling the polygon to be rendered, or null if none.
      Returns:
      the current fill or null if none
    • setGraphicFill

      public void setGraphicFill(Style2D graphicFill)
      Sets a Style2D for filling the polygon to be rendered. Set it to null if no Style2D filling is to be performed.
    • getFill

      public Paint getFill()
      Returns the filling color for the polygon to be rendered, or null if none.
      Returns:
      the current fill or null if none
    • setFill

      public void setFill(Paint fill)
      Sets filling color for the polygon to be rendered. Set it to null if no filling is to be performed.
    • getFillComposite

      public Composite getFillComposite()
      Returns the fill Composite for the polyline to be rendered, or null if the contour is to be opaque
      Returns:
      the current fill composite or null if none
    • setFillComposite

      public void setFillComposite(Composite fillComposite)
      Sets the fill Composite for the polyline to be rendered. Set it to null if the contour is to be opaque
    • toString

      public String toString()
      Returns a string representation of this style.
      Overrides:
      toString in class LineStyle2D