samples.preview_new_graphdraw.test
Class CircleEdge
java.lang.Object
samples.preview_new_graphdraw.VisEdge
samples.preview_new_graphdraw.test.CircleEdge
public class CircleEdge
- extends VisEdge
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CircleEdge
public CircleEdge(Edge ve,
VisVertex front,
VisVertex back)
copy
public VisEdge copy(VisVertex front,
VisVertex back)
- Description copied from class:
VisEdge
- Creates a new
VisEdge
from the specified
VisVertex
instances and this instance's
Edge
.
- Overrides:
copy
in class VisEdge
getCenter
public Coordinates getCenter()
getRadius
public double getRadius()
getStartAngle
public double getStartAngle()
getSquareDistance
public double getSquareDistance(double x,
double y)
- If it's in the half-plane that contains the half-circle,
return the distance, else return infinity. (You shouldn't
be clicking on the wrong side.)
- Overrides:
getSquareDistance
in class VisEdge
- See Also:
VisEdge.getSquareDistance(double,
double)