public abstract class Border3D extends Border
Border.Side_3D_GROOVE, _3D_INSET, _3D_OUTSET, _3D_RIDGE, color, DASHED, DOTTED, DOUBLE, NO_BORDER, ROUND_DOTS, SOLID, transparentColor, type, width| Modifier | Constructor and Description |
|---|---|
protected |
Border3D(DeviceCmyk color,
float width)
Creates a Border3D instance with the specified width and color.
|
protected |
Border3D(DeviceCmyk color,
float width,
float opacity)
Creates a Border3D instance with the specified width, color and opacity.
|
protected |
Border3D(DeviceGray color,
float width)
Creates a Border3D instance with the specified width and color.
|
protected |
Border3D(DeviceGray color,
float width,
float opacity)
Creates a Border3D instance with the specified width, color and opacity.
|
protected |
Border3D(DeviceRgb color,
float width)
Creates a Border3D instance with the specified width and color.
|
protected |
Border3D(DeviceRgb color,
float width,
float opacity)
Creates a Border3D instance with the specified width, color and opacity.
|
protected |
Border3D(float width)
Creates a Border3D instance with the specified width.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(PdfCanvas canvas,
float x1,
float y1,
float x2,
float y2,
float borderRadius,
Border.Side side,
float borderWidthBefore,
float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the
drawing direction.
|
void |
draw(PdfCanvas canvas,
float x1,
float y1,
float x2,
float y2,
float borderWidthBefore,
float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the
drawing direction.
|
void |
drawCellBorder(PdfCanvas canvas,
float x1,
float y1,
float x2,
float y2)
Draws the border of a cell.
|
protected Color |
getDarkerColor()
Makes the
Border.transparentColor color of the border darker and returns the result |
protected abstract void |
setInnerHalfColor(PdfCanvas canvas,
Border.Side side)
Sets the fill color for the inner half of
3D Border |
protected abstract void |
setOuterHalfColor(PdfCanvas canvas,
Border.Side side)
Sets the fill color for the outer half of
3D Border |
draw, equals, getBorderSide, getBorderSide, getColor, getIntersectionPoint, getOpacity, getType, getWidth, hashCode, setColor, setWidthprotected Border3D(float width)
width - with of the borderprotected Border3D(DeviceRgb color, float width)
color - color of the borderwidth - width of the borderprotected Border3D(DeviceCmyk color, float width)
color - color of the borderwidth - width of the borderprotected Border3D(DeviceGray color, float width)
color - color of the borderwidth - width of the borderprotected Border3D(DeviceRgb color, float width, float opacity)
color - color of the borderwidth - width of the borderopacity - opacity of the borderprotected Border3D(DeviceCmyk color, float width, float opacity)
color - color of the borderwidth - width of the borderopacity - opacity of the borderprotected Border3D(DeviceGray color, float width, float opacity)
color - color of the borderwidth - width of the borderopacity - opacity of the borderpublic void draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction. Borders are drawn in this order: top, right, bottom, left.
Given points specify the line which lies on the border of the content area, therefore the border itself should be drawn to the left from the drawing direction.
borderWidthBefore and borderWidthAfter parameters are used to
define the widths of the borders that are before and after the current border, e.g. for
the bottom border, borderWidthBefore specifies width of the right border and
borderWidthAfter - width of the left border. Those width are used to handle areas
of border joins.
draw in class Bordercanvas - PdfCanvas to be written tox1 - x coordinate of the beginning point of the element side, that should be borderedy1 - y coordinate of the beginning point of the element side, that should be borderedx2 - x coordinate of the ending point of the element side, that should be borderedy2 - y coordinate of the ending point of the element side, that should be borderedborderWidthBefore - defines width of the border that is before the current oneborderWidthAfter - defines width of the border that is after the current onepublic void draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float borderRadius, Border.Side side, float borderWidthBefore, float borderWidthAfter)
BorderAll borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction. Borders are drawn in this order: top, right, bottom, left.
Given points specify the line which lies on the border of the content area, therefore the border itself should be drawn to the left from the drawing direction.
borderWidthBefore and borderWidthAfter parameters are used to
define the widths of the borders that are before and after the current border, e.g. for
the bottom border, borderWidthBefore specifies width of the right border and
borderWidthAfter - width of the left border. Those width are used to handle areas
of border joins.
draw in class Bordercanvas - PdfCanvas to be written tox1 - x coordinate of the beginning point of the element side, that should be borderedy1 - y coordinate of the beginning point of the element side, that should be borderedx2 - x coordinate of the ending point of the element side, that should be borderedy2 - y coordinate of the ending point of the element side, that should be borderedborderRadius - border radiusside - the Border.Side, that represents element side, that should be borderedborderWidthBefore - defines width of the border that is before the current oneborderWidthAfter - defines width of the border that is after the current onepublic void drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2)
drawCellBorder in class Bordercanvas - PdfCanvas to be written tox1 - x coordinate of the beginning point of the element side, that should be borderedy1 - y coordinate of the beginning point of the element side, that should be borderedx2 - x coordinate of the ending point of the element side, that should be borderedy2 - y coordinate of the ending point of the element side, that should be borderedprotected Color getDarkerColor()
Border.transparentColor color of the border darker and returns the resultprotected abstract void setInnerHalfColor(PdfCanvas canvas, Border.Side side)
3D Bordercanvas - PdfCanvas the color will be applied onside - the side the color will be applied onprotected abstract void setOuterHalfColor(PdfCanvas canvas, Border.Side side)
3D Bordercanvas - PdfCanvas the color will be applied onside - the side the color will be applied onCopyright © 1998–2017 iText Group NV. All rights reserved.