public class CurvePath
extends java.awt.geom.Path2D.Float
Modifier and Type | Field and Description |
---|---|
static double |
ARC_SLANT_SPAN
Slant span
|
private static int |
ARC_TEXT_MARGIN
Text margin
|
private static boolean |
chunkReverse1 |
private static boolean |
chunkReverse2 |
static double |
REVERSE_ARC_CONTROL_X
Control point distance for "UFO catchers"
|
private static long |
serialVersionUID |
static boolean |
SMOOTH_ARC_CURVES
Whether to smoothe arc curves
|
static boolean |
SMOOTH_ARC_CURVES_USE_STEEPNESS
Whether to use steepness in smoothe arc curves
|
static double |
SMOOTH_ARC_STEEPNESS
Steepness of smooth curves (control point)
|
private double |
xControlLeft
Left control point
|
private double |
xControlRight
Right control point
|
private double |
xCornerLeft
Left corner
|
private double |
xCornerRight
Right corner
|
private double |
yBase
Curve y base
|
Constructor and Description |
---|
CurvePath(int xArcFrom,
int xArcTo,
int xTextFrom,
int xTextTo,
int yArcFrom,
int yArcTo,
int yText,
boolean flat1,
boolean flat2)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getXControlLeft()
Get left control x
|
double |
getXControlRight()
Get right control x
|
double |
getXCornerLeft()
Get left corner x
|
double |
getXCornerRight()
Get right corner x
|
double |
getYBase()
Get Y base
|
append, clone, curveTo, curveTo, getBounds2D, getPathIterator, lineTo, lineTo, moveTo, moveTo, quadTo, quadTo, transform
append, closePath, contains, contains, contains, contains, contains, contains, contains, contains, createTransformedShape, getBounds, getCurrentPoint, getPathIterator, getWindingRule, intersects, intersects, intersects, intersects, reset, setWindingRule
private static final long serialVersionUID
public static final boolean SMOOTH_ARC_CURVES
public static final boolean SMOOTH_ARC_CURVES_USE_STEEPNESS
public static final double SMOOTH_ARC_STEEPNESS
public static final double REVERSE_ARC_CONTROL_X
public static final double ARC_SLANT_SPAN
private static final int ARC_TEXT_MARGIN
private double xCornerLeft
private double xCornerRight
private double xControlLeft
private double xControlRight
private final double yBase
private static final boolean chunkReverse1
private static final boolean chunkReverse2
public CurvePath(int xArcFrom, int xArcTo, int xTextFrom, int xTextTo, int yArcFrom, int yArcTo, int yText, boolean flat1, boolean flat2)
xArcFrom
- arc x fromxArcTo
- arc x toxTextFrom
- label startxTextTo
- label endyArcFrom
- left origin anchor yyArcTo
- right destination anchor yyText
- arc baseflat1
- true if rowIndex == leftRowflat2
- true if rowIndex == rightRowpublic double getYBase()
public double getXCornerLeft()
public double getXCornerRight()
public double getXControlLeft()
public double getXControlRight()