jsim.animator
Class Edge

java.lang.Object
  extended by 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


Field Summary
 int id
           
 java.lang.String label
           
 double label_x
           
 double label_y
           
 double length
           
 java.awt.geom.QuadCurve2D.Double line
           
 double mid_x
           
 double mid_y
           
 int node1
           
 int node2
           
 double slope
           
 boolean undefinedSlope
           
 double x_increment
           
 double y_increment
           
 
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
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 endpoint
y1 - y-coordinate of first endpoint
curve1 - x-value for curve
curve2 - y-value for curve
x2 - x-coordinate for second endpoint
y2 - y-coordinate for second endpoint