org.datamanager.simpleton
Class TouchgraphEntityEdge

java.lang.Object
  |
  +--com.touchgraph.graphlayout.Edge
        |
        +--org.datamanager.simpleton.TouchgraphEntityEdge

public class TouchgraphEntityEdge
extends com.touchgraph.graphlayout.Edge

TouchgraphEntityEdge is a touchgraph Edge between Entities. This is a modification of traditional Touchgraph edges to be as simple as possible.

See Also:
Serialized Form

Constructor Summary
TouchgraphEntityEdge(TouchgraphEntityNode node1, TouchgraphEntityNode node2, int length)
           
 
Method Summary
 void paint(Graphics g, TGPanel tgPanel)
          Paints the Edge a simple line between two points if the line is on screen.If the mouse is hovering over this edge, a different color is used.
static void paintArrow(Graphics g, int x1, int y1, int x2, int y2, Color c)
          Paints the edge on screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TouchgraphEntityEdge

public TouchgraphEntityEdge(TouchgraphEntityNode node1,
                            TouchgraphEntityNode node2,
                            int length)
Method Detail

paint

public void paint(Graphics g,
                  TGPanel tgPanel)
Paints the Edge a simple line between two points if the line is on screen.If the mouse is hovering over this edge, a different color is used.


paintArrow

public static void paintArrow(Graphics g,
                              int x1,
                              int y1,
                              int x2,
                              int y2,
                              Color c)
Paints the edge on screen.



See the Helium Website