Class ShadingPattern

java.lang.Object
com.datalogics.PDFL.Pattern
com.datalogics.PDFL.ShadingPattern
Direct Known Subclasses:
AxialShadingPattern

public class ShadingPattern extends Pattern
A shading pattern consists of a smoothly varying gradient between two colors.
  • Method Details

    • delete

      public void delete()
      Overrides:
      delete in class Pattern
    • toString

      public String toString()
      Convert the shading pattern to a string.
      Overrides:
      toString in class Pattern
    • getColorSpace

      public ColorSpace getColorSpace()
      The color space of a shading pattern. This space is restricted to be any space except a Pattern space.
    • setColorSpace

      public void setColorSpace(ColorSpace colorSpace)
      The color space of a shading pattern. This space is restricted to be any space except a Pattern space.
    • getBackgroundColor

      public Color getBackgroundColor()
      The background color of the shading pattern. This color must be in the color space of the shading pattern. If present, it is used to fill the areas that are outside the bounds of the shading object. May be NULL.
    • setBackgroundColor

      public void setBackgroundColor(Color color)
      The background color of the shading pattern. This color must be in the color space of the shading pattern. If present, it is used to fill the areas that are outside the bounds of the shading object. May be NULL.
    • getBoundingBox

      public Rect getBoundingBox()
      The bounding box of the shading. The coordinates are interpreted in the target coordinate space. If present, provides an additional, temporary clipping boundary to the shading.
    • setBoundingBox

      public void setBoundingBox(Rect boundingBox)
      The bounding box of the shading. The coordinates are interpreted in the target coordinate space. If present, provides an additional, temporary clipping boundary to the shading.
    • getAntiAlias

      public boolean getAntiAlias()
      A flag indicating whether to filter the shading function to prevent aliasing artifacts.
    • setAntiAlias

      public void setAntiAlias(boolean antiAlias)
      A flag indicating whether to filter the shading function to prevent aliasing artifacts.