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 TypeMethodDescriptionintaddHighway(Highway highway) Creates new HighwayPtr using specifiedhighwayand adds it to the end of highway pointers list.protected voidaddToMatrix(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 voidupdateMatrix(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, getSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AbstractHighwayMatrixCreates new HighwayPtr using specifiedhighwayand adds it to the end of highway pointers list.- Specified by:
addHighwayin interfaceIHighwayMatrix- Overrides:
addHighwayin 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:AbstractHighwayMatrixRemoves the highway pointer at the specified position in the highway pointers list- Specified by:
removeHighwayin interfaceIHighwayMatrix- Overrides:
removeHighwayin 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:IHighwayMatrixFinds the path- Specified by:
getPathin 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
-