Class InsetBorder
java.lang.Object
com.itextpdf.layout.borders.Border
com.itextpdf.layout.borders.Border3D
com.itextpdf.layout.borders.InsetBorder
-
Nested Class Summary
Nested classes/interfaces inherited from class Border
Border.Side -
Field Summary
Fields inherited from class Border
_3D_GROOVE, _3D_INSET, _3D_OUTSET, _3D_RIDGE, DASHED, DASHED_FIXED, DOTTED, DOUBLE, NO_BORDER, ROUND_DOTS, SOLID, transparentColor, type, width -
Constructor Summary
ConstructorsConstructorDescriptionInsetBorder(float width) Creates an InsetBorder instance with the specified width.InsetBorder(DeviceCmyk color, float width) Creates an InsetBorder instance with the specified width and thecmyk color.InsetBorder(DeviceCmyk color, float width, float opacity) Creates an InsetBorder instance with the specified width, color and opacity.InsetBorder(DeviceGray color, float width) Creates an InsetBorder instance with the specified width and thegray color.InsetBorder(DeviceGray color, float width, float opacity) Creates an InsetBorder instance with the specified width, color and opacity.InsetBorder(DeviceRgb color, float width) Creates an InsetBorder instance with the specified width and thergb color.InsetBorder(DeviceRgb color, float width, float opacity) Creates an InsetBorder instance with the specified width, color and opacity. -
Method Summary
Modifier and TypeMethodDescriptionintgetType()Returns the type of theborderprotected voidsetInnerHalfColor(PdfCanvas canvas, Border.Side side) Sets the fill color for the inner half of3D Borderprotected voidsetOuterHalfColor(PdfCanvas canvas, Border.Side side) Sets the fill color for the outer half of3D BorderMethods inherited from class Border3D
draw, drawCellBorder, getDarkerColorMethods inherited from class Border
draw, draw, draw, drawDiscontinuousBorders, equals, getBorderSide, getColor, getDotsGap, getIntersectionPoint, getOpacity, getStartingPointsForBorderSide, getWidth, hashCode, setColor, setWidth
-
Constructor Details
-
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
-
InsetBorder
Creates an InsetBorder instance with the specified width and thecmyk color.- Parameters:
color- thecmyk colorof the borderwidth- width of the border
-
InsetBorder
Creates an InsetBorder instance with the specified width and thegray color.- Parameters:
color- thegray colorof the borderwidth- width of the border
-
InsetBorder
Creates an InsetBorder instance with the specified width, color and opacity.- Parameters:
color- color of the borderwidth- width of the borderopacity- opacity of the border
-
InsetBorder
Creates an InsetBorder instance with the specified width, color and opacity.- Parameters:
color- color of the borderwidth- width of the borderopacity- opacity of the border
-
InsetBorder
Creates an InsetBorder instance with the specified width, color and opacity.- Parameters:
color- color of the borderwidth- width of the borderopacity- opacity of the border
-
-
Method Details
-
getType
-
setInnerHalfColor
Sets the fill color for the inner half of3D Border- Specified by:
setInnerHalfColorin classBorder3D- Parameters:
canvas- PdfCanvas the color will be applied onside- thesidethe color will be applied on
-
setOuterHalfColor
Sets the fill color for the outer half of3D Border- Specified by:
setOuterHalfColorin classBorder3D- Parameters:
canvas- PdfCanvas the color will be applied onside- thesidethe color will be applied on
-