Class DirectPathFinder
java.lang.Object
com._1c.g5.v8.dt.common.gef.drow2d.DirectPathFinder
- All Implemented Interfaces:
IPathFinder
Simple implementation without using obstacles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObstacle(org.eclipse.draw2d.geometry.Rectangle rect) It isn't used in this implementationReturns a path containing start and end points of the positions.intIt 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
-
Constructor Details
-
DirectPathFinder
public DirectPathFinder()
-
-
Method Details
-
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
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:
-