|
JHotDraw 7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.geom.BezierPath.Node
public static class BezierPath.Node
Defines a vertex (node) of the bezier path.
A vertex consists of three control points: C0, C1 and C2.
Field Summary | |
---|---|
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 Summary | |
---|---|
BezierPath.Node()
|
|
BezierPath.Node(BezierPath.Node that)
|
|
BezierPath.Node(double x0,
double y0)
|
|
BezierPath.Node(int mask,
double x0,
double y0,
double x1,
double y1,
double x2,
double y2)
|
|
BezierPath.Node(int mask,
java.awt.geom.Point2D.Double c0,
java.awt.geom.Point2D.Double c1,
java.awt.geom.Point2D.Double c2)
|
|
BezierPath.Node(java.awt.geom.Point2D.Double c0)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int mask
public double[] x
public double[] y
public boolean keepColinear
Constructor Detail |
---|
public BezierPath.Node()
public BezierPath.Node(BezierPath.Node that)
public BezierPath.Node(java.awt.geom.Point2D.Double c0)
public BezierPath.Node(int mask, java.awt.geom.Point2D.Double c0, java.awt.geom.Point2D.Double c1, java.awt.geom.Point2D.Double c2)
public BezierPath.Node(double x0, double y0)
public BezierPath.Node(int mask, double x0, double y0, double x1, double y1, double x2, double y2)
Method Detail |
---|
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
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |