|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.sketch.geom.Range
This class represents a Point described by a java.awt.geom.Line2D.Double
| Field Summary | |
int |
max
Upper bound of the range |
int |
min
Lower bound of the range |
| Constructor Summary | |
Range()
The constructor. |
|
Range(int min,
int max)
The constructor. |
|
| Method Summary | |
static Range[] |
appendRanges(Range[] ranges,
Range range)
Append the ranges with the input range |
static Range[] |
cloneRanges(Range[] ranges)
For obtaining a complete copy of an array of Ranges objects. |
int |
compare(Object o1,
Object o2)
Implement comparator Warning: The ranges should be non-overlapping for proper sorting. |
boolean |
equals(Object o1)
Implement comparator Warning: The ranges should be non-overlapping for proper sorting. |
String |
toString()
Override toString |
static Range[] |
vectorToArray(Vector ranges)
Returns an array containing the elements of the Vector. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int min
public int max
| Constructor Detail |
public Range()
public Range(int min,
int max)
| Method Detail |
public String toString()
toString in class Objectpublic static Range[] vectorToArray(Vector ranges)
public int compare(Object o1,
Object o2)
compare in interface Comparatorpublic boolean equals(Object o1)
equals in interface Comparatorequals in class Object
public static Range[] appendRanges(Range[] ranges,
Range range)
public static Range[] cloneRanges(Range[] ranges)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||