|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Line2D
prefuse.util.ui.PolarLine2D
public class PolarLine2D
A line defined by polar coordinates (a start position, a radius and an angle).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Line2D |
---|
java.awt.geom.Line2D.Double, java.awt.geom.Line2D.Float |
Constructor Summary | |
---|---|
PolarLine2D(double x,
double y,
double r,
double theta)
Construct a new line. |
|
PolarLine2D(java.awt.geom.Line2D line)
Construct a new line from an existing line. |
|
PolarLine2D(java.awt.geom.Point2D start,
java.awt.geom.Point2D end)
Construct a new line. |
Method Summary | |
---|---|
java.awt.geom.Rectangle2D |
getBounds2D()
|
java.awt.geom.Point2D |
getP1()
|
java.awt.geom.Point2D |
getP2()
|
double |
getRadius()
|
double |
getTheta()
|
double |
getX1()
|
double |
getX2()
|
double |
getY1()
|
double |
getY2()
|
void |
setLine(double x1,
double y1,
double x2,
double y2)
|
void |
setRadius(double radius)
Set the radius (length) of the line. |
void |
setTheta(double theta)
Set the angle of the line |
void |
setX1(double x1)
|
void |
setY1(double y1)
|
Methods inherited from class java.awt.geom.Line2D |
---|
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolarLine2D(java.awt.geom.Point2D start, java.awt.geom.Point2D end)
start
- the start coordinate of the lineend
- the end coordinate of the linepublic PolarLine2D(java.awt.geom.Line2D line)
line
- the line to get the coordinates from.public PolarLine2D(double x, double y, double r, double theta)
x
- the starting X coordinatey
- the starting Y coordinater
- the radius (length) of the linetheta
- the angle of the lineMethod Detail |
---|
public double getRadius()
public void setRadius(double radius)
radius
- the radius (length) of the linepublic double getTheta()
public void setTheta(double theta)
theta
- the angle of the line, in radianspublic void setX1(double x1)
public double getX1()
getX1
in class java.awt.geom.Line2D
public void setY1(double y1)
public double getY1()
getY1
in class java.awt.geom.Line2D
public java.awt.geom.Point2D getP1()
getP1
in class java.awt.geom.Line2D
public double getX2()
getX2
in class java.awt.geom.Line2D
public double getY2()
getY2
in class java.awt.geom.Line2D
public java.awt.geom.Point2D getP2()
getP2
in class java.awt.geom.Line2D
public void setLine(double x1, double y1, double x2, double y2)
setLine
in class java.awt.geom.Line2D
public java.awt.geom.Rectangle2D getBounds2D()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |