|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscenic.path.LineSegment
public class LineSegment
This class defines a straight line segment. This class does not define the start point of the line. The start point is the end point of the previous segment.
| Constructor Summary | |
|---|---|
LineSegment(double x,
double y)
Creates a straight line segment with the given parameters. |
|
| Method Summary | |
|---|---|
void |
getBounds(java.awt.geom.AffineTransform transform,
java.awt.Rectangle r,
java.awt.geom.Point2D.Double position)
Gets the bounds of this segment using the given transform. |
double |
getX()
Gets the x coordinate of the end point. |
double |
getY()
Gets the y coordinate of the end point. |
void |
walk(PathWalker walker,
java.awt.geom.Point2D.Double position,
java.awt.geom.AffineTransform error)
Walks the given walker through this segment. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineSegment(double x,
double y)
x - the x coordinate of the end point.y - the y coordinate of the end point.| Method Detail |
|---|
public double getX()
public double getY()
public void walk(PathWalker walker,
java.awt.geom.Point2D.Double position,
java.awt.geom.AffineTransform error)
Segment
walk in interface Segmentwalker - the walker.position - the start position.error - the error matrix.
public void getBounds(java.awt.geom.AffineTransform transform,
java.awt.Rectangle r,
java.awt.geom.Point2D.Double position)
Segment
getBounds in interface Segmenttransform - the transformr - the bounds.position - the start position.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||