|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.geom.Point2D
|
+--java.awt.Point
|
+--edu.mit.sketch.geom.Point
|
+--edu.mit.sketch.geom.Vertex
This class represents a Vertex described by a Point and its certainty.
| Inner classes inherited from class java.awt.geom.Point2D |
Point2D.Double, Point2D.Float |
| Field Summary | |
double |
certainty
The certainty |
int |
index
The index |
| Fields inherited from class edu.mit.sketch.geom.Point |
graphics, time_stamp |
| Fields inherited from class java.awt.Point |
x, y |
| Fields inherited from interface edu.mit.sketch.geom.GeometricObject |
CIRCLE, ELLIPSE, LINE, POINT, POLYGON, RECTANGLE, SQUARE |
| Constructor Summary | |
Vertex()
The constructor. |
|
Vertex(double certainty)
The constructor. |
|
Vertex(int x,
int y)
The constructor. |
|
Vertex(int x,
int y,
double certainty)
The constructor. |
|
Vertex(Point point)
The constructor. |
|
Vertex(Point point,
double certainty)
The constructor. |
|
Vertex(Vertex vertex)
The constructor. |
|
| Method Summary | |
static Vertex[] |
appendVertices(Vertex[] vertices,
Vertex vertex)
Appends the input vertices with the argument vertex |
static Vertex[] |
arrayListToArray(ArrayList vertices)
Returns an array containing the elements of the Vector. |
static Vertex[] |
cloneVertices(Vertex[] vertices)
For obtaining a complete copy of an array of Vertex objects. |
int |
compare(Object o1,
Object o2)
Implement Comparator |
boolean |
equals(Object o1,
Object o2)
Implement Comparator |
static Vertex[] |
removeDuplicateVertices(Vertex[] vertices)
Remove repeating vertices |
void |
setIndex(int index)
Set index |
String |
toString()
Override toString |
static Vertex[] |
vectorToArray(Vector vertices)
Returns an array containing the elements of the Vector. |
| Methods inherited from class edu.mit.sketch.geom.Point |
containsGeometricObject, containsGeometricObjects, distance, getDataPoints, getPolygonalBounds, getRectangularBounds, getTimeStamp, getType, magnitude, paint, paint, paint, paintOriginal, pointIsOn, pointIsOnOriginal, rotate, scale, setDataPoints, setGraphicsContext, setTimeStamp, spatialRelation, touches, translate |
| Methods inherited from class java.awt.Point |
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, translate |
| Methods inherited from class java.awt.geom.Point2D |
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Field Detail |
public int index
public double certainty
| Constructor Detail |
public Vertex()
public Vertex(Point point)
public Vertex(int x,
int y)
public Vertex(double certainty)
public Vertex(Point point,
double certainty)
public Vertex(int x,
int y,
double certainty)
public Vertex(Vertex vertex)
| Method Detail |
public void setIndex(int index)
public String toString()
toString in class Point
public int compare(Object o1,
Object o2)
compare in interface Comparator
public boolean equals(Object o1,
Object o2)
public static Vertex[] removeDuplicateVertices(Vertex[] vertices)
public static Vertex[] cloneVertices(Vertex[] vertices)
public static Vertex[] appendVertices(Vertex[] vertices,
Vertex vertex)
public static Vertex[] arrayListToArray(ArrayList vertices)
public static Vertex[] vectorToArray(Vector vertices)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||