public abstract class QuadCurve2D extends Object implements Shape, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
QuadCurve2D.Double |
static class |
QuadCurve2D.Float |
Modifier | Constructor and Description |
---|---|
protected |
QuadCurve2D() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
contains(double px, double py) |
boolean |
contains(double rx, double ry, double rw, double rh) |
boolean |
contains(Point2D p) |
boolean |
contains(Rectangle2D r) |
Rectangle |
getBounds() |
abstract Point2D |
getCtrlPt() |
abstract double |
getCtrlX() |
abstract double |
getCtrlY() |
double |
getFlatness() |
static double |
getFlatness(double[] coords, int offset) |
static double |
getFlatness(double x1, double y1, double ctrlx, double ctrly, double x2, double y2) |
double |
getFlatnessSq() |
static double |
getFlatnessSq(double[] coords, int offset) |
static double |
getFlatnessSq(double x1, double y1, double ctrlx, double ctrly, double x2, double y2) |
abstract Point2D |
getP1() |
abstract Point2D |
getP2() |
PathIterator |
getPathIterator(AffineTransform t) |
PathIterator |
getPathIterator(AffineTransform t, double flatness) |
abstract double |
getX1() |
abstract double |
getX2() |
abstract double |
getY1() |
abstract double |
getY2() |
boolean |
intersects(double rx, double ry, double rw, double rh) |
boolean |
intersects(Rectangle2D r) |
void |
setCurve(double[] coords, int offset) |
abstract void |
setCurve(double x1, double y1, double ctrlx, double ctrly, double x2, double y2) |
void |
setCurve(Point2D[] points, int offset) |
void |
setCurve(Point2D p1, Point2D cp, Point2D p2) |
void |
setCurve(QuadCurve2D curve) |
static int |
solveQuadratic(double[] eqn) |
static int |
solveQuadratic(double[] eqn, double[] res) |
static void |
subdivide(double[] src, int srcoff, double[] left, int leftOff, double[] right, int rightOff) |
void |
subdivide(QuadCurve2D left, QuadCurve2D right) |
static void |
subdivide(QuadCurve2D src, QuadCurve2D left, QuadCurve2D right) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBounds2D
public abstract double getX1()
public abstract double getY1()
public abstract Point2D getP1()
public abstract double getCtrlX()
public abstract double getCtrlY()
public abstract Point2D getCtrlPt()
public abstract double getX2()
public abstract double getY2()
public abstract Point2D getP2()
public abstract void setCurve(double x1, double y1, double ctrlx, double ctrly, double x2, double y2)
public void setCurve(double[] coords, int offset)
public void setCurve(Point2D[] points, int offset)
public void setCurve(QuadCurve2D curve)
public double getFlatnessSq()
public static double getFlatnessSq(double x1, double y1, double ctrlx, double ctrly, double x2, double y2)
public static double getFlatnessSq(double[] coords, int offset)
public double getFlatness()
public static double getFlatness(double x1, double y1, double ctrlx, double ctrly, double x2, double y2)
public static double getFlatness(double[] coords, int offset)
public void subdivide(QuadCurve2D left, QuadCurve2D right)
public static void subdivide(QuadCurve2D src, QuadCurve2D left, QuadCurve2D right)
public static void subdivide(double[] src, int srcoff, double[] left, int leftOff, double[] right, int rightOff)
public static int solveQuadratic(double[] eqn)
public static int solveQuadratic(double[] eqn, double[] res)
public boolean contains(double rx, double ry, double rw, double rh)
public boolean intersects(double rx, double ry, double rw, double rh)
intersects
in interface Shape
public boolean intersects(Rectangle2D r)
intersects
in interface Shape
public boolean contains(Rectangle2D r)
public PathIterator getPathIterator(AffineTransform t)
getPathIterator
in interface Shape
public PathIterator getPathIterator(AffineTransform t, double flatness)
getPathIterator
in interface Shape
Copyright © 1998–2022. All rights reserved.