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 intcompareTo(RoutePath other)static RoutePathmin(RoutePath p1, RoutePath p2)Returns the smaller of twoRoutePathvalues usingcompareTo(RoutePath)
-
-
-
Method Detail
-
compareTo
public int compareTo(RoutePath other)
Compares twoRoutePathobjects using count of thecrossandlength.
Priorities: numbers of intersections, length- Specified by:
compareToin interfaceComparable<RoutePath>- Parameters:
other- - theRoutePathto be compared.
-
min
public static RoutePath min(RoutePath p1, RoutePath p2)
Returns the smaller of twoRoutePathvalues usingcompareTo(RoutePath)- Parameters:
p1- - an argument.p2- - another argument.- Returns:
- the smaller of two
RoutePathvalues
-
-