Class RoutePath
java.lang.Object
com._1c.g5.v8.dt.common.gef.drow2d.RoutePath
- All Implemented Interfaces:
Comparable<RoutePath>
The path information: - points list - amount of the crossings - summary length of the path segments
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRoutePath
(org.eclipse.draw2d.geometry.PointList path, int cross, int length) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
static RoutePath
Returns the smaller of twoRoutePath
values usingcompareTo(RoutePath)
-
Field Details
-
path
public final org.eclipse.draw2d.geometry.PointList path -
cross
public final int cross -
length
public final int length
-
-
Constructor Details
-
RoutePath
public RoutePath(org.eclipse.draw2d.geometry.PointList path, int cross, int length) Constructor.- Parameters:
path
- - points listcross
- - amount of the crossingslength
- - summary length of the path segments
-
-
Method Details
-
compareTo
Compares twoRoutePath
objects using count of thecross
andlength
.
Priorities: numbers of intersections, length- Specified by:
compareTo
in interfaceComparable<RoutePath>
- Parameters:
other
- - theRoutePath
to be compared.
-
min
Returns the smaller of twoRoutePath
values usingcompareTo(RoutePath)
- Parameters:
p1
- - an argument.p2
- - another argument.- Returns:
- the smaller of two
RoutePath
values
-