Class RoutePath
- java.lang.Object
-
- com._1c.g5.v8.dt.common.gef.drow2d.RoutePath
-
- All Implemented Interfaces:
Comparable<RoutePath>
public class RoutePath extends Object implements Comparable<RoutePath>
The path information: - points list - amount of the crossings - summary length of the path segments
-
-
Constructor Summary
Constructors Constructor Description RoutePath(org.eclipse.draw2d.geometry.PointList path, int cross, int length)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(RoutePath other)
static RoutePath
min(RoutePath p1, RoutePath p2)
Returns the smaller of twoRoutePath
values usingcompareTo(RoutePath)
-
-
-
Method Detail
-
compareTo
public int compareTo(RoutePath other)
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
public static RoutePath min(RoutePath p1, RoutePath p2)
Returns the smaller of twoRoutePath
values usingcompareTo(RoutePath)
- Parameters:
p1
- - an argument.p2
- - another argument.- Returns:
- the smaller of two
RoutePath
values
-
-