Class GrooveBorder


public class GrooveBorder extends Border3D
Represents a Border3D with a groove effect being applied.
  • Constructor Details

    • GrooveBorder

      public GrooveBorder (float width)
      Creates a GrooveBorder instance with the specified width. The color is set to the predefined gray.
      Parameters:
      width - width of the border
    • GrooveBorder

      public GrooveBorder (DeviceRgb color, float width)
      Creates a GrooveBorder instance with the specified width and the rgb color.
      Parameters:
      width - width of the border
      color - the rgb color of the border
    • GrooveBorder

      public GrooveBorder (DeviceCmyk color, float width)
      Creates a GrooveBorder instance with the specified width and the cmyk color.
      Parameters:
      width - width of the border
      color - the cmyk color of the border
    • GrooveBorder

      public GrooveBorder (DeviceGray color, float width)
      Creates a GrooveBorder instance with the specified width and the gray color.
      Parameters:
      width - width of the border
      color - the gray color of the border
    • GrooveBorder

      public GrooveBorder (DeviceRgb color, float width, float opacity)
      Creates a GrooveBorder instance with the specified width, color and opacity.
      Parameters:
      color - color of the border
      width - width of the border
      opacity - opacity of the border
    • GrooveBorder

      public GrooveBorder (DeviceCmyk color, float width, float opacity)
      Creates a GrooveBorder instance with the specified width, color and opacity.
      Parameters:
      color - color of the border
      width - width of the border
      opacity - opacity of the border
    • GrooveBorder

      public GrooveBorder (DeviceGray color, float width, float opacity)
      Creates a GrooveBorder instance with the specified width, color and opacity.
      Parameters:
      color - color of the border
      width - width of the border
      opacity - opacity of the border
  • Method Details

    • getType

      public int getType()
      Returns the type of the border
      Specified by:
      getType in class Border
      Returns:
      the type of border.
    • setInnerHalfColor

      protected void setInnerHalfColor (PdfCanvas canvas, Border.Side side)
      Sets the fill color for the inner half of 3D Border
      Specified by:
      setInnerHalfColor in class Border3D
      Parameters:
      canvas - PdfCanvas the color will be applied on
      side - the side the color will be applied on
    • setOuterHalfColor

      protected void setOuterHalfColor (PdfCanvas canvas, Border.Side side)
      Sets the fill color for the outer half of 3D Border
      Specified by:
      setOuterHalfColor in class Border3D
      Parameters:
      canvas - PdfCanvas the color will be applied on
      side - the side the color will be applied on