public static class BezierPath.Node
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
A vertex consists of three control points: C0, C1 and C2.
Modifier and Type | Field and Description |
---|---|
boolean |
keepColinear
This is a hint for editing tools.
|
int |
mask
This mask is used to describe which control points in addition to
C0 are in effect.
|
double[] |
x
Control point x coordinates.
|
double[] |
y
Control point y coordinates.
|
Constructor and Description |
---|
Node() |
Node(BezierPath.Node that) |
Node(double x0,
double y0) |
Node(int mask,
double x0,
double y0,
double x1,
double y1,
double x2,
double y2) |
Node(int mask,
java.awt.geom.Point2D.Double c0,
java.awt.geom.Point2D.Double c1,
java.awt.geom.Point2D.Double c2) |
Node(java.awt.geom.Point2D.Double c0) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.awt.geom.Point2D.Double |
getControlPoint(int index) |
int |
getMask() |
int |
hashCode() |
void |
moveBy(double dx,
double dy) |
void |
moveTo(double x,
double y) |
void |
moveTo(java.awt.geom.Point2D.Double p) |
void |
setControlPoint(int index,
java.awt.geom.Point2D.Double p) |
void |
setMask(int newValue) |
void |
setTo(BezierPath.Node that) |
java.lang.String |
toString() |
public int mask
public double[] x
public double[] y
public boolean keepColinear
public Node()
public Node(BezierPath.Node that)
public Node(java.awt.geom.Point2D.Double c0)
public Node(int mask, java.awt.geom.Point2D.Double c0, java.awt.geom.Point2D.Double c1, java.awt.geom.Point2D.Double c2)
public Node(double x0, double y0)
public Node(int mask, double x0, double y0, double x1, double y1, double x2, double y2)
public void setTo(BezierPath.Node that)
public int getMask()
public void setMask(int newValue)
public void setControlPoint(int index, java.awt.geom.Point2D.Double p)
public java.awt.geom.Point2D.Double getControlPoint(int index)
public void moveTo(java.awt.geom.Point2D.Double p)
public void moveTo(double x, double y)
public void moveBy(double dx, double dy)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object