| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | appendPath(Path2D path, float xOffset, float yOffset, float radiusVert, float radiusHoriz, float startAngle, float distance, float topWidth, float sideWidth, float scaleOffset, boolean left, float widthScale)
|
| public static Path2D | Returns: A Path that is all sides of the round rectangleDimmensions of the rect bounds, BorderPropertySet The border specs border, boolean true if you want the inner bounds of borders inside)Generates a full round rectangle that is made of bounds and border |
| public static Path2D | Returns: a path for the side chosen!bounds of the container bounds, int what side you want side, BorderPropertySet border props border, boolean if you want it to be 2d or not, if false it will be just a line drawInterior)Generates one side of a border |
| public static Path2D | Returns: a path for the side chosen!bounds of the container bounds, int what side you want side, BorderPropertySet border props border, boolean if you want it to be 2d or not, if false it will be just a line drawInterior, float insets the border by multipling border widths by this variable, best use would be 1 or .5, cant see it for much other than that scaledOffset)Generates one side of a border |
| public static Path2D | Returns: a path for the side chosen!bounds of the container bounds, int what side you want side, BorderPropertySet border props border, boolean if you want it to be 2d or not, if false it will be just a line drawInterior, float insets the border by multipling border widths by this variable, best use would be 1 or .5, cant see it for much other than that scaledOffset, float scales the border widths by this factor, useful for drawing half borders for border types like groove or double widthScale)Generates one side of a border |
| private static Shape | generateSimpleBorderShape(Rectangle bounds, int currentSide, BorderPropertySet border)
Generate a simple rectangle without beveling for a solid border side. |
| public static void | paint(Rectangle bounds, int sides, BorderPropertySet border, RenderingContext ctx, int
for determining starting point for patterns xOffset, boolean bevel)
|
| private static void | paintBorderSide(OutputDevice outputDevice, final BorderPropertySet border, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset, boolean bevel)
|
| private static void | paintBorderSideShape(OutputDevice outputDevice, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet high, final BorderPropertySet low, final float offset, final float scale, final int sides, int currentSide, boolean bevel)
|
| private static void | paintDoubleBorder(OutputDevice outputDevice, BorderPropertySet border, Rectangle bounds, int sides, int currentSide, boolean bevel)
|
| private static void | paintPatternedRect(OutputDevice outputDevice, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int
for inline borders, to determine dash_phase of top and bottom xOffset)
|
| private static void | paintSolid(OutputDevice outputDevice, final Rectangle bounds, final BorderPropertySet border, final float offset, final float scale, final int sides, int currentSide, boolean bevel)
|
| ALL | back to summary |
|---|---|
| public static final int ALL | |
| BOTTOM | back to summary |
|---|---|
| public static final int BOTTOM | |
| LEFT | back to summary |
|---|---|
| public static final int LEFT | |
| RIGHT | back to summary |
|---|---|
| public static final int RIGHT | |
| TOP | back to summary |
|---|---|
| public static final int TOP | |
| BorderPainter | back to summary |
|---|---|
| public BorderPainter() | |
| appendPath | back to summary |
|---|---|
| private static void appendPath(Path2D path, float xOffset, float yOffset, float radiusVert, float radiusHoriz, float startAngle, float distance, float topWidth, float sideWidth, float scaleOffset, boolean left, float widthScale) | |
| generateBorderBounds | back to summary |
|---|---|
| public static Path2D generateBorderBounds(Rectangle bounds, BorderPropertySet border, boolean inside) Generates a full round rectangle that is made of bounds and border
| |
| generateBorderShape | back to summary |
|---|---|
| public static Path2D generateBorderShape(Rectangle bounds, int side, BorderPropertySet border, boolean drawInterior) Generates one side of a border
| |
| generateBorderShape | back to summary |
|---|---|
| public static Path2D generateBorderShape(Rectangle bounds, int side, BorderPropertySet border, boolean drawInterior, float scaledOffset) Generates one side of a border
| |
| generateBorderShape | back to summary |
|---|---|
| public static Path2D generateBorderShape(Rectangle bounds, int side, BorderPropertySet border, boolean drawInterior, float scaledOffset, float widthScale) Generates one side of a border
| |
| generateSimpleBorderShape | back to summary |
|---|---|
| private static Shape generateSimpleBorderShape(Rectangle bounds, int currentSide, BorderPropertySet border) Generate a simple rectangle without beveling for a solid border side. Turning off beveling should disable anti-aliasing and work better with table cell borders. See https://github.com/danfickle/openhtmltopdf/issues/752 | |
| paint | back to summary |
|---|---|
public static void paint(Rectangle bounds, int sides, BorderPropertySet border, RenderingContext ctx, int xOffset, boolean bevel)
| |
| paintBorderSide | back to summary |
|---|---|
| private static void paintBorderSide(OutputDevice outputDevice, final BorderPropertySet border, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset, boolean bevel) | |
| paintBorderSideShape | back to summary |
|---|---|
| private static void paintBorderSideShape(OutputDevice outputDevice, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet high, final BorderPropertySet low, final float offset, final float scale, final int sides, int currentSide, boolean bevel) | |
| paintDoubleBorder | back to summary |
|---|---|
| private static void paintDoubleBorder(OutputDevice outputDevice, BorderPropertySet border, Rectangle bounds, int sides, int currentSide, boolean bevel) | |
| paintPatternedRect | back to summary |
|---|---|
private static void paintPatternedRect(OutputDevice outputDevice, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset)
| |
| paintSolid | back to summary |
|---|---|
| private static void paintSolid(OutputDevice outputDevice, final Rectangle bounds, final BorderPropertySet border, final float offset, final float scale, final int sides, int currentSide, boolean bevel) | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final float | |
| private final BorderRadiusCorner | |
| private final float | |
| private final BorderRadiusCorner | |
| private final double | |
| private final float |
| Access | Constructor and Description |
|---|---|
| public | RelativeBorderProperties(Rectangle bounds, BorderPropertySet props, float borderScaleOffset, int side, float scaledOffset, float widthScale)
|
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public BorderRadiusCorner | |
| public float | |
| public BorderRadiusCorner | |
| private double | |
| public float | |
| private boolean |
| _dimmensionsSwapped | back to summary |
|---|---|
| private final boolean _dimmensionsSwapped | |
| _left | back to summary |
|---|---|
| private final float _left | |
| _leftCorner | back to summary |
|---|---|
| private final BorderRadiusCorner _leftCorner | |
| _right | back to summary |
|---|---|
| private final float _right | |
| _rightCorner | back to summary |
|---|---|
| private final BorderRadiusCorner _rightCorner | |
| _rotation | back to summary |
|---|---|
| private final double _rotation | |
| _top | back to summary |
|---|---|
| private final float _top | |
| RelativeBorderProperties | back to summary |
|---|---|
| public RelativeBorderProperties(Rectangle bounds, BorderPropertySet props, float borderScaleOffset, int side, float scaledOffset, float widthScale) | |
| getLeft | back to summary |
|---|---|
| public float getLeft() | |
| getLeftCorner | back to summary |
|---|---|
| public BorderRadiusCorner getLeftCorner() | |
| getRight | back to summary |
|---|---|
| public float getRight() | |
| getRightCorner | back to summary |
|---|---|
| public BorderRadiusCorner getRightCorner() | |
| getRotation | back to summary |
|---|---|
| private double getRotation() | |
| getTop | back to summary |
|---|---|
| public float getTop() | |
| isDimmensionsSwapped | back to summary |
|---|---|
| private boolean isDimmensionsSwapped() | |