Class BorderPainter.Corner
java.lang.Object
org.apache.fop.render.intermediate.BorderPainter.Corner
- Enclosing class:
BorderPainter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BorderPainter.CornerAnglesThe start and end angles of the corner ellipseprivate final intThe offset in the x direction of the center of the ellipse relative to the starting pointprivate final intThe offset in the y direction of the center of the ellipse relative to the starting pointprivate final intThe value in the x direction that the corner extends relative to the starting pointprivate final intThe value in the y direction that the corner extends relative to the starting pointprivate final intThe radius of the elliptic corner in the x directionprivate final intThe radius of the elliptic corner in the y directionprivate static final BorderPainter.Corner -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCorner(int radiusX, int radiusY, BorderPainter.CornerAngles angles, int ellipseOffsetX, int ellipseOffsetY, int incrementX, int incrementY) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
SQUARE
-
radiusX
private final int radiusXThe radius of the elliptic corner in the x direction -
radiusY
private final int radiusYThe radius of the elliptic corner in the y direction -
angles
The start and end angles of the corner ellipse -
centerX
private final int centerXThe offset in the x direction of the center of the ellipse relative to the starting point -
centerY
private final int centerYThe offset in the y direction of the center of the ellipse relative to the starting point -
incrementX
private final int incrementXThe value in the x direction that the corner extends relative to the starting point -
incrementY
private final int incrementYThe value in the y direction that the corner extends relative to the starting point
-
-
Constructor Details
-
Corner
private Corner(int radiusX, int radiusY, BorderPainter.CornerAngles angles, int ellipseOffsetX, int ellipseOffsetY, int incrementX, int incrementY)
-
-
Method Details
-
extentFromRadiusStart
private static int extentFromRadiusStart(BorderPainter.BorderSegment border, double correctionFactor) -
extentFromRadiusEnd
-
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)
-