Class BorderPainter.Corner
- java.lang.Object
-
- org.apache.fop.render.intermediate.BorderPainter.Corner
-
- Enclosing class:
- BorderPainter
private static final class BorderPainter.Corner extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private BorderPainter.CornerAnglesanglesThe start and end angles of the corner ellipseprivate intcenterXThe offset in the x direction of the center of the ellipse relative to the starting pointprivate intcenterYThe offset in the y direction of the center of the ellipse relative to the starting pointprivate intincrementXThe value in the x direction that the corner extends relative to the starting pointprivate intincrementYThe value in the y direction that the corner extends relative to the starting pointprivate intradiusXThe radius of the elliptic corner in the x directionprivate intradiusYThe radius of the elliptic corner in the y directionprivate static BorderPainter.CornerSQUARE
-
Constructor Summary
Constructors Modifier Constructor Description privateCorner(int radiusX, int radiusY, BorderPainter.CornerAngles angles, int ellipseOffsetX, int ellipseOffsetY, int incrementX, int incrementY)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BorderPainter.CornercreateAfterStartCorner(BorderPainter.BorderSegment after, BorderPainter.BorderSegment start, double correctionFactor)static BorderPainter.CornercreateBeforeEndCorner(BorderPainter.BorderSegment before, BorderPainter.BorderSegment end, double correctionFactor)static BorderPainter.CornercreateEndAfterCorner(BorderPainter.BorderSegment end, BorderPainter.BorderSegment after, double correctionFactor)static BorderPainter.CornercreateStartBeforeCorner(BorderPainter.BorderSegment start, BorderPainter.BorderSegment before, double correctionFactor)private static intextentFromRadius(int radius, BorderPainter.BorderSegment border, double correctionFactor)private static intextentFromRadiusEnd(BorderPainter.BorderSegment border, double correctionFactor)private static intextentFromRadiusStart(BorderPainter.BorderSegment border, double correctionFactor)
-
-
-
Field Detail
-
SQUARE
private static final BorderPainter.Corner SQUARE
-
radiusX
private final int radiusX
The radius of the elliptic corner in the x direction
-
radiusY
private final int radiusY
The radius of the elliptic corner in the y direction
-
angles
private final BorderPainter.CornerAngles angles
The start and end angles of the corner ellipse
-
centerX
private final int centerX
The offset in the x direction of the center of the ellipse relative to the starting point
-
centerY
private final int centerY
The offset in the y direction of the center of the ellipse relative to the starting point
-
incrementX
private final int incrementX
The value in the x direction that the corner extends relative to the starting point
-
incrementY
private final int incrementY
The value in the y direction that the corner extends relative to the starting point
-
-
Constructor Detail
-
Corner
private Corner(int radiusX, int radiusY, BorderPainter.CornerAngles angles, int ellipseOffsetX, int ellipseOffsetY, int incrementX, int incrementY)
-
-
Method Detail
-
extentFromRadiusStart
private static int extentFromRadiusStart(BorderPainter.BorderSegment border, double correctionFactor)
-
extentFromRadiusEnd
private static int extentFromRadiusEnd(BorderPainter.BorderSegment border, double correctionFactor)
-
extentFromRadius
private static int extentFromRadius(int radius, BorderPainter.BorderSegment border, double correctionFactor)
-
createBeforeEndCorner
public static BorderPainter.Corner createBeforeEndCorner(BorderPainter.BorderSegment before, BorderPainter.BorderSegment end, double correctionFactor)
-
createEndAfterCorner
public static BorderPainter.Corner createEndAfterCorner(BorderPainter.BorderSegment end, BorderPainter.BorderSegment after, double correctionFactor)
-
createAfterStartCorner
public static BorderPainter.Corner createAfterStartCorner(BorderPainter.BorderSegment after, BorderPainter.BorderSegment start, double correctionFactor)
-
createStartBeforeCorner
public static BorderPainter.Corner createStartBeforeCorner(BorderPainter.BorderSegment start, BorderPainter.BorderSegment before, double correctionFactor)
-
-