|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.graph.Path
A Path representation for the ShortestPathRouting. A Path has a start and end point
and may have bendpoints. The output of a path is accessed via the method
getPoints()
.
This class is for internal use only.
Field Summary | |
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 Summary | |
Path()
Constructs a new path. |
|
Path(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. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Object data
public boolean isDirty
Constructor Detail |
public Path()
public Path(Object data)
data
- an arbitrary data fieldpublic Path(Point start, Point end)
start
- the start point for this pathend
- the end point for this pathMethod Detail |
public 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 path
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |