Class BorderPainter.Corner
java.lang.Object
org.apache.fop.render.intermediate.BorderPainter.Corner
- Enclosing class:
BorderPainter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BorderPainter.CornerAngles
The start and end angles of the corner ellipseprivate final int
The offset in the x direction of the center of the ellipse relative to the starting pointprivate final int
The offset in the y direction of the center of the ellipse relative to the starting pointprivate final int
The value in the x direction that the corner extends relative to the starting pointprivate final int
The value in the y direction that the corner extends relative to the starting pointprivate final int
The radius of the elliptic corner in the x directionprivate final int
The radius of the elliptic corner in the y directionprivate static final BorderPainter.Corner
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Corner
(int radiusX, int radiusY, BorderPainter.CornerAngles angles, int ellipseOffsetX, int ellipseOffsetY, int incrementX, int incrementY) -
Method Summary
Modifier and TypeMethodDescriptionstatic BorderPainter.Corner
createAfterStartCorner
(BorderPainter.BorderSegment after, BorderPainter.BorderSegment start, double correctionFactor) static BorderPainter.Corner
createBeforeEndCorner
(BorderPainter.BorderSegment before, BorderPainter.BorderSegment end, double correctionFactor) static BorderPainter.Corner
createEndAfterCorner
(BorderPainter.BorderSegment end, BorderPainter.BorderSegment after, double correctionFactor) static BorderPainter.Corner
createStartBeforeCorner
(BorderPainter.BorderSegment start, BorderPainter.BorderSegment before, double correctionFactor) private static int
extentFromRadius
(int radius, BorderPainter.BorderSegment border, double correctionFactor) private static int
extentFromRadiusEnd
(BorderPainter.BorderSegment border, double correctionFactor) private static int
extentFromRadiusStart
(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)
-