Package com.itextpdf.layout.borders
Class RidgeBorder
- java.lang.Object
-
- com.itextpdf.layout.borders.Border
-
- com.itextpdf.layout.borders.Border3D
-
- com.itextpdf.layout.borders.RidgeBorder
-
-
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
Constructors Constructor Description RidgeBorder(float width)Creates a RidgeBorder instance with the specified width.RidgeBorder(DeviceCmyk color, float width)Creates a RidgeBorder instance with the specified width and thecmyk color.RidgeBorder(DeviceCmyk color, float width, float opacity)Creates a RidgeBorder instance with the specified width, color and opacity.RidgeBorder(DeviceGray color, float width)Creates a RidgeBorder instance with the specified width and thegray color.RidgeBorder(DeviceGray color, float width, float opacity)Creates a RidgeBorder instance with the specified width, color and opacity.RidgeBorder(DeviceRgb color, float width)Creates a RidgeBorder instance with the specified width and thergb color.RidgeBorder(DeviceRgb color, float width, float opacity)Creates a RidgeBorder instance with the specified width, color and opacity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()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 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 Detail
-
RidgeBorder
public RidgeBorder(float width)
Creates a RidgeBorder instance with the specified width. The color is set to the predefined gray.- Parameters:
width- width of the border
-
RidgeBorder
public RidgeBorder(DeviceRgb color, float width)
Creates a RidgeBorder instance with the specified width and thergb color.- Parameters:
width- width of the bordercolor- thergb colorof the border
-
RidgeBorder
public RidgeBorder(DeviceCmyk color, float width)
Creates a RidgeBorder instance with the specified width and thecmyk color.- Parameters:
width- width of the bordercolor- thecmyk colorof the border
-
RidgeBorder
public RidgeBorder(DeviceGray color, float width)
Creates a RidgeBorder instance with the specified width and thegray color.- Parameters:
width- width of the bordercolor- thegray colorof the border
-
RidgeBorder
public RidgeBorder(DeviceRgb color, float width, float opacity)
Creates a RidgeBorder instance with the specified width, color and opacity.- Parameters:
color- color of the borderwidth- width of the borderopacity- opacity of the border
-
RidgeBorder
public RidgeBorder(DeviceCmyk color, float width, float opacity)
Creates a RidgeBorder instance with the specified width, color and opacity.- Parameters:
color- color of the borderwidth- width of the borderopacity- opacity of the border
-
RidgeBorder
public RidgeBorder(DeviceGray color, float width, float opacity)
Creates a RidgeBorder instance with the specified width, color and opacity.- Parameters:
color- color of the borderwidth- width of the borderopacity- opacity of the border
-
-
Method Detail
-
getType
public int getType()
Returns the type of theborder
-
setInnerHalfColor
protected void setInnerHalfColor(PdfCanvas canvas, Border.Side side)
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
protected void setOuterHalfColor(PdfCanvas canvas, Border.Side side)
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
-
-