Uses of Class
edu.neu.ccs.util.Metric

Packages that use Metric
edu.neu.ccs.gui Provides classes and interfaces for designing and implementing graphical interfaces and for the creation of paintable and mutatable objects.. 
edu.neu.ccs.util Provides utility classes and classes with static utility methods. 
 

Uses of Metric in edu.neu.ccs.gui
 

Methods in edu.neu.ccs.gui with parameters of type Metric
 int PathNode.nearSlot(double x, double y, double epsilon, Metric metric)
          Searches the valid slots in this node in order and returns a slot index if the given (x,y) is within epsilon of the values in that slot relative to the given metric; returns -1 if no such slot exists.
 int[] PathList.nearSlot(double x, double y, double epsilon, Metric metric)
          Searches the nodes in this path list and for each such node searches the slots in the node to determine if the given (x,y) is within epsilon of the values in the slot relative to the given metric; if successful, returns an array int[2] with value 0 equal to the node index and value 1 equal to the slot index; if unsuccessful, returns null.
 int BaseShape.findVertex(double x, double y, double epsilon, Metric metric)
          Returns the index of the first vertex that is within epsilon of (x,y) relative to the given metric; returns -1 if no such vertex exists.
 int BaseShape.findControlA(double x, double y, double epsilon, Metric metric)
          Returns the index of the first ahead control point that is within epsilon of (x,y) relative to the given metric; returns -1 if no such ahead control point exists.
 int BaseShape.findControlB(double x, double y, double epsilon, Metric metric)
          Returns the index of the first behind control point that is within epsilon of (x,y) relative to the given metric; returns -1 if no such behind control point exists.
 int AutomaticShape.findEndTangentControl(double x, double y, double epsilon, Metric metric)
          Returns the index of the first end tangent control that is within epsilon of (x,y) relative to the given metric; returns -1 if no such end tangent control exists.
 

Uses of Metric in edu.neu.ccs.util
 

Fields in edu.neu.ccs.util declared as Metric
static Metric Metric.EUCLID
          The EUCLID metric computes the distance between (x1, y1) and (x2,y2) using the classic euclidean metric.
static Metric Metric.MAX
          The MAX metric computes the distance between (x1, y1) and (x2,y2) using the maximum of the absolute values of the differences in the coordinates.
static Metric Metric.SUM
          The SUM metric computes the distance between (x1, y1) and (x2,y2) using the sum of the absolute values of the differences in the coordinates.