Class OutsetBorder


public class OutsetBorder extends Border3D
Represents a Border3D with an outset effect being applied.
  • Constructor Details

    • OutsetBorder

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

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

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

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

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

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

      public OutsetBorder (DeviceGray color, float width, float opacity)
      Creates an OutsetBorder 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