public class InsetBorder extends Border3D
Border.Side
_3D_GROOVE, _3D_INSET, _3D_OUTSET, _3D_RIDGE, DASHED, DOTTED, DOUBLE, NO_BORDER, ROUND_DOTS, SOLID, transparentColor, type, width
Constructor and Description |
---|
InsetBorder(DeviceCmyk color,
float width)
Creates an InsetBorder instance with the specified width and the
cmyk 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 the
gray 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 the
rgb color . |
InsetBorder(DeviceRgb color,
float width,
float opacity)
Creates an InsetBorder instance with the specified width, color and opacity.
|
InsetBorder(float width)
Creates an InsetBorder instance with the specified width.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Returns the type of the
border |
protected void |
setInnerHalfColor(PdfCanvas canvas,
Border.Side side)
Sets the fill color for the inner half of
3D Border |
protected void |
setOuterHalfColor(PdfCanvas canvas,
Border.Side side)
Sets the fill color for the outer half of
3D Border |
draw, drawCellBorder, getDarkerColor
draw, draw, drawDiscontinuousBorders, equals, getBorderSide, getColor, getDotsGap, getIntersectionPoint, getOpacity, getStartingPointsForBorderSide, getWidth, hashCode, setColor, setWidth
public InsetBorder(float width)
width
- width of the borderpublic InsetBorder(DeviceRgb color, float width)
rgb color
.width
- width of the bordercolor
- the rgb color
of the borderpublic InsetBorder(DeviceCmyk color, float width)
cmyk color
.width
- width of the bordercolor
- the cmyk color
of the borderpublic InsetBorder(DeviceGray color, float width)
gray color
.width
- width of the bordercolor
- the gray color
of the borderpublic InsetBorder(DeviceRgb color, float width, float opacity)
color
- color of the borderwidth
- width of the borderopacity
- opacity of the borderpublic InsetBorder(DeviceCmyk color, float width, float opacity)
color
- color of the borderwidth
- width of the borderopacity
- opacity of the borderpublic InsetBorder(DeviceGray color, float width, float opacity)
color
- color of the borderwidth
- width of the borderopacity
- opacity of the borderpublic int getType()
border
protected void setInnerHalfColor(PdfCanvas canvas, Border.Side side)
3D Border
setInnerHalfColor
in class Border3D
canvas
- PdfCanvas the color will be applied onside
- the side
the color will be applied onprotected void setOuterHalfColor(PdfCanvas canvas, Border.Side side)
3D Border
setOuterHalfColor
in class Border3D
canvas
- PdfCanvas the color will be applied onside
- the side
the color will be applied onCopyright © 1998–2019 iText Group NV. All rights reserved.