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 TypeMethodDescriptionvoid
addObstacle
(org.eclipse.draw2d.geometry.Rectangle rect) It isn't used in this implementationReturns a path containing start and end points of the positions.int
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
-
Constructor Details
-
DirectPathFinder
public DirectPathFinder()
-
-
Method Details
-
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
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:
-