Class HighwayMatrix
java.lang.Object
com._1c.g5.v8.dt.common.gef.drow2d.AbstractHighwayMatrix
com._1c.g5.v8.dt.common.gef.drow2d.HighwayMatrix
- All Implemented Interfaces:
IHighwayMatrix
Draft
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com._1c.g5.v8.dt.common.gef.drow2d.AbstractHighwayMatrix
AbstractHighwayMatrix.HighwayPtr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
addHighway
(Highway highway) Creates new HighwayPtr using specifiedhighway
and adds it to the end of highway pointers list.protected void
addToMatrix
(HighwayMatrix.Cell[][] result, int newIndex) protected HighwayMatrix.Cell[][]
build()
protected HighwayMatrix.Cell[][]
getPath
(int indexFrom, org.eclipse.draw2d.geometry.Point start, int indexTo, org.eclipse.draw2d.geometry.Point end) Finds the pathremoveHighway
(int index) Removes the highway pointer at the specified position in the highway pointers listprotected void
updateMatrix
(HighwayMatrix.Cell[][] result, int dest, int src) Methods inherited from class com._1c.g5.v8.dt.common.gef.drow2d.AbstractHighwayMatrix
getHighway, getHighwayPtr, getHighways, getIdentifier, getIndex, getPoints, getSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com._1c.g5.v8.dt.common.gef.drow2d.IHighwayMatrix
getHighway, getHighways, getIdentifier
-
Constructor Details
-
HighwayMatrix
-
-
Method Details
-
addHighway
Description copied from class:AbstractHighwayMatrix
Creates new HighwayPtr using specifiedhighway
and adds it to the end of highway pointers list.- Specified by:
addHighway
in interfaceIHighwayMatrix
- Overrides:
addHighway
in classAbstractHighwayMatrix
- Parameters:
highway
- - the highway to be added to this matrix- Returns:
- the index of the highway to be added
-
removeHighway
Description copied from class:AbstractHighwayMatrix
Removes the highway pointer at the specified position in the highway pointers list- Specified by:
removeHighway
in interfaceIHighwayMatrix
- Overrides:
removeHighway
in classAbstractHighwayMatrix
- Parameters:
index
- - the index of the highway to be removed- Returns:
- the highway that was removed from the matrix
-
getPath
public RoutePath getPath(int indexFrom, org.eclipse.draw2d.geometry.Point start, int indexTo, org.eclipse.draw2d.geometry.Point end) Description copied from interface:IHighwayMatrix
Finds the path- Specified by:
getPath
in interfaceIHighwayMatrix
- Parameters:
indexFrom
- the identifier of the starting highwaystart
- the start pointindexTo
- the identifier of the ending highwayend
- the end point and required direction from from this point- Returns:
- finded path
- See Also:
-
getMatrix
-
build
-
addToMatrix
-
updateMatrix
-