Class InsetBorder


  • public class InsetBorder
    extends Border3D
    Represents a Border3D with an inset effect being applied.
    • Constructor Detail

      • InsetBorder

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

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

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

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

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

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

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

      • 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