|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsun.awt.geom.Curve
public abstract class Curve
Field Summary | |
---|---|
static int |
DECREASING
|
static int |
INCREASING
|
static int |
RECT_INTERSECTS
The rectangle intersection test counts the number of times that the path crosses through the shadow that the rectangle projects to the right towards (x => +INFINITY). |
static double |
TMIN
|
Constructor Summary | |
---|---|
Curve(int direction)
|
Method Summary | |
---|---|
boolean |
accumulateCrossings(sun.awt.geom.Crossings c)
|
int |
compareTo(Curve that,
double[] yrange)
|
java.lang.String |
controlPointString()
|
int |
crossingsFor(double x,
double y)
|
static long |
diffbits(double y1,
double y2)
|
abstract double |
dXforT(double t,
int deriv)
|
abstract double |
dYforT(double t,
int deriv)
|
abstract void |
enlarge(java.awt.geom.Rectangle2D r)
|
boolean |
fairlyClose(double v1,
double v2)
|
boolean |
findIntersect(Curve that,
double[] yrange,
double ymin,
int slevel,
int tlevel,
double s0,
double xs0,
double ys0,
double s1,
double xs1,
double ys1,
double t0,
double xt0,
double yt0,
double t1,
double xt1,
double yt1)
|
int |
getDirection()
|
abstract int |
getOrder()
|
abstract Curve |
getReversedCurve()
|
abstract int |
getSegment(double[] coords)
|
Curve |
getSubCurve(double ystart,
double yend)
|
abstract Curve |
getSubCurve(double ystart,
double yend,
int dir)
|
Curve |
getWithDirection(int direction)
|
abstract double |
getX0()
|
abstract double |
getX1()
|
abstract double |
getXBot()
|
abstract double |
getXMax()
|
abstract double |
getXMin()
|
abstract double |
getXTop()
|
abstract double |
getY0()
|
abstract double |
getY1()
|
abstract double |
getYBot()
|
abstract double |
getYTop()
|
static void |
insertCubic(java.util.Vector curves,
double x0,
double y0,
double[] coords)
|
static void |
insertLine(java.util.Vector curves,
double x0,
double y0,
double x1,
double y1)
|
static void |
insertMove(java.util.Vector curves,
double x,
double y)
|
static void |
insertQuad(java.util.Vector curves,
double x0,
double y0,
double[] coords)
|
static double |
next(double v)
|
abstract double |
nextVertical(double t0,
double t1)
|
static int |
orderof(double x1,
double x2)
|
static int |
pointCrossingsForCubic(double px,
double py,
double x0,
double y0,
double xc0,
double yc0,
double xc1,
double yc1,
double x1,
double y1,
int level)
Calculates the number of times the cubic from (x0,y0) to (x1,y1) crosses the ray extending to the right from (px,py). |
static int |
pointCrossingsForLine(double px,
double py,
double x0,
double y0,
double x1,
double y1)
Calculates the number of times the line from (x0,y0) to (x1,y1) crosses the ray extending to the right from (px,py). |
static int |
pointCrossingsForPath(java.awt.geom.PathIterator pi,
double px,
double py)
Calculates the number of times the given path crosses the ray extending to the right from (px,py). |
static int |
pointCrossingsForQuad(double px,
double py,
double x0,
double y0,
double xc,
double yc,
double x1,
double y1,
int level)
Calculates the number of times the quad from (x0,y0) to (x1,y1) crosses the ray extending to the right from (px,py). |
static double |
prev(double v)
|
static int |
rectCrossingsForCubic(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double xc0,
double yc0,
double xc1,
double yc1,
double x1,
double y1,
int level)
Accumulate the number of times the cubic crosses the shadow extending to the right of the rectangle. |
static int |
rectCrossingsForLine(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double x1,
double y1)
Accumulate the number of times the line crosses the shadow extending to the right of the rectangle. |
static int |
rectCrossingsForPath(java.awt.geom.PathIterator pi,
double rxmin,
double rymin,
double rxmax,
double rymax)
Accumulate the number of times the path crosses the shadow extending to the right of the rectangle. |
static int |
rectCrossingsForQuad(int crossings,
double rxmin,
double rymin,
double rxmax,
double rymax,
double x0,
double y0,
double xc,
double yc,
double x1,
double y1,
int level)
Accumulate the number of times the quad crosses the shadow extending to the right of the rectangle. |
double |
refineTforY(double t0,
double yt0,
double y0)
|
static double |
round(double v)
|
static long |
signeddiffbits(double y1,
double y2)
|
abstract double |
TforY(double y)
|
java.lang.String |
toString()
|
abstract double |
XforT(double t)
|
abstract double |
XforY(double y)
|
abstract double |
YforT(double t)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INCREASING
public static final int DECREASING
public static final int RECT_INTERSECTS
public static final double TMIN
Constructor Detail |
---|
public Curve(int direction)
Method Detail |
---|
public static void insertMove(java.util.Vector curves, double x, double y)
public static void insertLine(java.util.Vector curves, double x0, double y0, double x1, double y1)
public static void insertQuad(java.util.Vector curves, double x0, double y0, double[] coords)
public static void insertCubic(java.util.Vector curves, double x0, double y0, double[] coords)
public static int pointCrossingsForPath(java.awt.geom.PathIterator pi, double px, double py)
public static int pointCrossingsForLine(double px, double py, double x0, double y0, double x1, double y1)
public static int pointCrossingsForQuad(double px, double py, double x0, double y0, double xc, double yc, double x1, double y1, int level)
public static int pointCrossingsForCubic(double px, double py, double x0, double y0, double xc0, double yc0, double xc1, double yc1, double x1, double y1, int level)
public static int rectCrossingsForPath(java.awt.geom.PathIterator pi, double rxmin, double rymin, double rxmax, double rymax)
public static int rectCrossingsForLine(int crossings, double rxmin, double rymin, double rxmax, double rymax, double x0, double y0, double x1, double y1)
public static int rectCrossingsForQuad(int crossings, double rxmin, double rymin, double rxmax, double rymax, double x0, double y0, double xc, double yc, double x1, double y1, int level)
public static int rectCrossingsForCubic(int crossings, double rxmin, double rymin, double rxmax, double rymax, double x0, double y0, double xc0, double yc0, double xc1, double yc1, double x1, double y1, int level)
public final int getDirection()
public final Curve getWithDirection(int direction)
public static double round(double v)
public static int orderof(double x1, double x2)
public static long signeddiffbits(double y1, double y2)
public static long diffbits(double y1, double y2)
public static double prev(double v)
public static double next(double v)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String controlPointString()
public abstract int getOrder()
public abstract double getXTop()
public abstract double getYTop()
public abstract double getXBot()
public abstract double getYBot()
public abstract double getXMin()
public abstract double getXMax()
public abstract double getX0()
public abstract double getY0()
public abstract double getX1()
public abstract double getY1()
public abstract double XforY(double y)
public abstract double TforY(double y)
public abstract double XforT(double t)
public abstract double YforT(double t)
public abstract double dXforT(double t, int deriv)
public abstract double dYforT(double t, int deriv)
public abstract double nextVertical(double t0, double t1)
public int crossingsFor(double x, double y)
public boolean accumulateCrossings(sun.awt.geom.Crossings c)
public abstract void enlarge(java.awt.geom.Rectangle2D r)
public Curve getSubCurve(double ystart, double yend)
public abstract Curve getReversedCurve()
public abstract Curve getSubCurve(double ystart, double yend, int dir)
public int compareTo(Curve that, double[] yrange)
public boolean findIntersect(Curve that, double[] yrange, double ymin, int slevel, int tlevel, double s0, double xs0, double ys0, double s1, double xs1, double ys1, double t0, double xt0, double yt0, double t1, double xt1, double yt1)
public double refineTforY(double t0, double yt0, double y0)
public boolean fairlyClose(double v1, double v2)
public abstract int getSegment(double[] coords)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |