Package org.eclipse.draw2d.graph
Class Path
java.lang.Object
org.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.- Since:
- 3.0
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the list of constrained points through which this path must pass ornull.Returns the end point for this pathReturns the solution to this path.Returns the start point for this pathvoidsetBendPoints(PointList bendPoints) Sets the list of bend points to the given list and dirties the path.voidsetEndPoint(Point end) Sets the end point for this path to the given point.voidsetStartPoint(Point start) Sets the start point for this path to the given point.
- 
Field Details- 
dataAn arbitrary data field which can be used to map a Path back to some client object.
- 
isDirtypublic boolean isDirtythis field is for internal use only. It is true whenever a property has been changed which requires the solver to resolve this path.
 
- 
- 
Constructor Details- 
Pathpublic Path()Constructs a new path.- Since:
- 3.0
 
- 
PathConstructs a new path with the given data.- Parameters:
- data- an arbitrary data field
- Since:
- 3.0
 
- 
PathConstructs a new path with the given data, start and end point.- Parameters:
- start- the start point for this path
- end- the end point for this path
 
 
- 
- 
Method Details- 
getBendPointsReturns the list of constrained points through which this path must pass ornull.- Returns:
- list of bend points
- See Also:
 
- 
getEndPointReturns the end point for this path- Returns:
- end point for this path
 
- 
getPointsReturns the solution to this path.- Returns:
- the points for this path.
 
- 
getStartPointReturns the start point for this path- Returns:
- start point for this path
 
- 
setBendPointsSets the list of bend points to the given list and dirties the path.- Parameters:
- bendPoints- the list of bend points
 
- 
setEndPointSets the end point for this path to the given point.- Parameters:
- end- the new end point for this path
 
- 
setStartPointSets the start point for this path to the given point.- Parameters:
- start- the new start point for this path
 
 
-