Package com.itextpdf.layout.borders
Class GrooveBorder
java.lang.Object
com.itextpdf.layout.borders.Border
com.itextpdf.layout.borders.Border3D
com.itextpdf.layout.borders.GrooveBorder
Represents a
Border3D
with a groove effect being applied.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.itextpdf.layout.borders.Border
Border.Side
-
Field Summary
Fields inherited from class com.itextpdf.layout.borders.Border
_3D_GROOVE, _3D_INSET, _3D_OUTSET, _3D_RIDGE, DASHED, DASHED_FIXED, DOTTED, DOUBLE, NO_BORDER, ROUND_DOTS, SOLID, transparentColor, type, width
-
Constructor Summary
ConstructorDescriptionGrooveBorder
(float width) Creates a GrooveBorder instance with the specified width.GrooveBorder
(DeviceCmyk color, float width) Creates a GrooveBorder instance with the specified width and thecmyk color
.GrooveBorder
(DeviceCmyk color, float width, float opacity) Creates a GrooveBorder instance with the specified width, color and opacity.GrooveBorder
(DeviceGray color, float width) Creates a GrooveBorder instance with the specified width and thegray color
.GrooveBorder
(DeviceGray color, float width, float opacity) Creates a GrooveBorder instance with the specified width, color and opacity.GrooveBorder
(DeviceRgb color, float width) Creates a GrooveBorder instance with the specified width and thergb color
.GrooveBorder
(DeviceRgb color, float width, float opacity) Creates a GrooveBorder instance with the specified width, color and opacity. -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
Returns the type of theborder
protected void
setInnerHalfColor
(PdfCanvas canvas, Border.Side side) Sets the fill color for the inner half of3D Border
protected void
setOuterHalfColor
(PdfCanvas canvas, Border.Side side) Sets the fill color for the outer half of3D Border
Methods inherited from class com.itextpdf.layout.borders.Border3D
draw, drawCellBorder, getDarkerColor
Methods inherited from class com.itextpdf.layout.borders.Border
draw, draw, draw, drawDiscontinuousBorders, equals, getBorderSide, getColor, getDotsGap, getIntersectionPoint, getOpacity, getStartingPointsForBorderSide, getWidth, hashCode, setColor, setWidth
-
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
Creates a GrooveBorder instance with the specified width and thergb color
.- Parameters:
-
width
- width of the border -
color
- thergb color
of the border
-
GrooveBorder
Creates a GrooveBorder instance with the specified width and thecmyk color
.- Parameters:
-
width
- width of the border -
color
- thecmyk color
of the border
-
GrooveBorder
Creates a GrooveBorder instance with the specified width and thegray color
.- Parameters:
-
width
- width of the border -
color
- thegray color
of the border
-
GrooveBorder
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
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
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 theborder
-
setInnerHalfColor
Sets the fill color for the inner half of3D Border
- Specified by:
-
setInnerHalfColor
in classBorder3D
- Parameters:
-
canvas
- PdfCanvas the color will be applied on -
side
- theside
the color will be applied on
-
setOuterHalfColor
Sets the fill color for the outer half of3D Border
- Specified by:
-
setOuterHalfColor
in classBorder3D
- Parameters:
-
canvas
- PdfCanvas the color will be applied on -
side
- theside
the color will be applied on
-