|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscenic.path.SubPath
public class SubPath
A subpath defines a continuous path which consists of different kinds of segments. If a subpath is closed its end point is connected to the start point with a straight line.
| Constructor Summary | |
|---|---|
SubPath(double startX,
double startY,
Segment[] segments,
boolean closed)
Creates a new subpath with the given start point and segments. |
|
| Method Summary | |
|---|---|
void |
getBounds(java.awt.geom.AffineTransform transform,
java.awt.Rectangle r)
Gets the bounds of this subpath using the given transform. |
Segment[] |
getSegments()
Gets the segments. |
double |
getStartX()
Gets the x coordinate of the start point. |
double |
getStartY()
Gets the y coordinate of the start point. |
boolean |
isClosed()
Gets is the subpath closed. |
void |
walk(PathWalker walker,
java.awt.geom.AffineTransform error)
Walks the given walker through this subpath. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubPath(double startX,
double startY,
Segment[] segments,
boolean closed)
startX - x coordinate of the start point.startY - y coordinate of the start point.segments - the segments.closed - defines is the subpath closed.| Method Detail |
|---|
public double getStartX()
public double getStartY()
public boolean isClosed()
public Segment[] getSegments()
public void walk(PathWalker walker,
java.awt.geom.AffineTransform error)
walker - the walker.error - the error matrix.
public void getBounds(java.awt.geom.AffineTransform transform,
java.awt.Rectangle r)
transform - the transformr - the bounds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||