Class DirectPathFinder
- java.lang.Object
-
- com._1c.g5.v8.dt.common.gef.drow2d.DirectPathFinder
-
- All Implemented Interfaces:
IPathFinder
public class DirectPathFinder extends Object implements IPathFinder
Simple implementation without using obstacles.
-
-
Constructor Summary
Constructors Constructor Description DirectPathFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addObstacle(org.eclipse.draw2d.geometry.Rectangle rect)
It isn't used in this implementationRoutePath
find(Position start, Position end, boolean strict)
Returns a path containing start and end points of the positions.int
getSpacing()
It isn't used in this implementation.void
removeObstacle(org.eclipse.draw2d.geometry.Rectangle rect)
It isn't used in this implementationvoid
setSpacing(int spacing)
It isn't used in this implementationvoid
updateObstacle(org.eclipse.draw2d.geometry.Rectangle oldBounds, org.eclipse.draw2d.geometry.Rectangle newBounds)
It isn't used in this implementation
-
-
-
Method Detail
-
getSpacing
public int getSpacing()
It isn't used in this implementation. Always returns0
.- Specified by:
getSpacing
in interfaceIPathFinder
- Returns:
- 0
-
setSpacing
public void setSpacing(int spacing)
It isn't used in this implementation- Specified by:
setSpacing
in interfaceIPathFinder
- Parameters:
spacing
- the spacing to set
-
addObstacle
public void addObstacle(org.eclipse.draw2d.geometry.Rectangle rect)
It isn't used in this implementation- Specified by:
addObstacle
in interfaceIPathFinder
- Parameters:
rect
- the bounds of this obstacle
-
removeObstacle
public void removeObstacle(org.eclipse.draw2d.geometry.Rectangle rect)
It isn't used in this implementation- Specified by:
removeObstacle
in interfaceIPathFinder
- Parameters:
rect
- the bounds of the obstacle to remove
-
updateObstacle
public void updateObstacle(org.eclipse.draw2d.geometry.Rectangle oldBounds, org.eclipse.draw2d.geometry.Rectangle newBounds)
It isn't used in this implementation- Specified by:
updateObstacle
in interfaceIPathFinder
- Parameters:
oldBounds
- the old bounds(used to find the obstacle)newBounds
- the new bounds
-
find
public RoutePath find(Position start, Position end, boolean strict)
Returns a path containing start and end points of the positions.- Specified by:
find
in interfaceIPathFinder
- Parameters:
start
- the start positionend
- the end positionstrict
- the flag- Returns:
- a path containing start and end points of the positions
- See Also:
RoutePath
-
-