jsim.animator
Class Edge
java.lang.Object
jsim.animator.Edge
public class Edge
- extends java.lang.Object
This class defines an edge between two nodes in a Graph. It includes 2 endpoints
represented by the ids of the respective nodes in the graph
Constructor Summary |
Edge(double x1,
double y1,
double curve1,
double curve2,
double x2,
double y2)
Added constructor for compatability with JSIM
Uses (x,y) coordinates instead of node ids |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
public int id
node1
public int node1
node2
public int node2
line
public java.awt.geom.QuadCurve2D.Double line
slope
public double slope
length
public double length
undefinedSlope
public boolean undefinedSlope
x_increment
public double x_increment
y_increment
public double y_increment
label_x
public double label_x
label_y
public double label_y
mid_x
public double mid_x
mid_y
public double mid_y
label
public java.lang.String label
Edge
public Edge(double x1,
double y1,
double curve1,
double curve2,
double x2,
double y2)
- Added constructor for compatability with JSIM
Uses (x,y) coordinates instead of node ids
- Parameters:
x1
- x-coordinate of first endpointy1
- y-coordinate of first endpointcurve1
- x-value for curvecurve2
- y-value for curvex2
- x-coordinate for second endpointy2
- y-coordinate for second endpoint