public class Path
extends java.lang.Object
getPoints()
.
This class is for internal use only.Modifier and Type | Field and Description |
---|---|
java.lang.Object |
data
An arbitrary data field which can be used to map a Path back to some
client object.
|
boolean |
isDirty
this field is for internal use only.
|
Constructor and Description |
---|
Path()
Constructs a new path.
|
Path(java.lang.Object data)
Constructs a new path with the given data.
|
Path(Point start,
Point end)
Constructs a new path with the given data, start and end point.
|
Modifier and Type | Method and Description |
---|---|
PointList |
getBendPoints()
Returns the list of constrained points through which this path must pass
or
null . |
Point |
getEndPoint()
Returns the end point for this path
|
PointList |
getPoints()
Returns the solution to this path.
|
Point |
getStartPoint()
Returns the start point for this path
|
void |
setBendPoints(PointList bendPoints)
Sets the list of bend points to the given list and dirties the path.
|
void |
setEndPoint(Point end)
Sets the end point for this path to the given point.
|
void |
setStartPoint(Point start)
Sets the start point for this path to the given point.
|
public java.lang.Object data
public boolean isDirty
public Path()
public Path(java.lang.Object data)
data
- an arbitrary data fieldpublic PointList getBendPoints()
null
.setBendPoints(PointList)
public Point getEndPoint()
public PointList getPoints()
public Point getStartPoint()
public void setBendPoints(PointList bendPoints)
bendPoints
- the list of bend pointspublic void setEndPoint(Point end)
end
- the new end point for this pathpublic void setStartPoint(Point start)
start
- the new start point for this pathCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.