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.CornerAngles
angles
The start and end angles of the corner ellipseprivate int
centerX
The offset in the x direction of the center of the ellipse relative to the starting pointprivate int
centerY
The offset in the y direction of the center of the ellipse relative to the starting pointprivate int
incrementX
The value in the x direction that the corner extends relative to the starting pointprivate int
incrementY
The value in the y direction that the corner extends relative to the starting pointprivate int
radiusX
The radius of the elliptic corner in the x directionprivate int
radiusY
The radius of the elliptic corner in the y directionprivate static BorderPainter.Corner
SQUARE
-
Constructor Summary
Constructors Modifier Constructor Description private
Corner(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.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 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)
-
-