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 voidaddObstacle(org.eclipse.draw2d.geometry.Rectangle rect)It isn't used in this implementationRoutePathfind(Position start, Position end, boolean strict)Returns a path containing start and end points of the positions.intgetSpacing()It isn't used in this implementation.voidremoveObstacle(org.eclipse.draw2d.geometry.Rectangle rect)It isn't used in this implementationvoidsetSpacing(int spacing)It isn't used in this implementationvoidupdateObstacle(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:
getSpacingin interfaceIPathFinder- Returns:
- 0
-
setSpacing
public void setSpacing(int spacing)
It isn't used in this implementation- Specified by:
setSpacingin 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:
addObstaclein 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:
removeObstaclein 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:
updateObstaclein 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:
findin 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
-
-