data
Class Edge

java.lang.Object
  extended by data.Edge
All Implemented Interfaces:
Drawable

public class Edge
extends java.lang.Object
implements Drawable

Author:
Daniel Pardo This class represents a edge from one node to another

Constructor Summary
Edge(Node start, Node end)
           
Edge(Node start, Node end, Vector3 color)
           
 
Method Summary
 boolean draw(javax.media.opengl.GL gl)
          if one of the nodes is deleted, returns false
 boolean init(javax.media.opengl.GL gl)
          initializes the Drawable in OpenGL context
static void setDrawNoneTreeEdges(boolean drawNoneTreeEdges)
          if set true, none tree edges are also drawn, otherwise not
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Node start,
            Node end)

Edge

public Edge(Node start,
            Node end,
            Vector3 color)
Method Detail

draw

public boolean draw(javax.media.opengl.GL gl)
if one of the nodes is deleted, returns false

Specified by:
draw in interface Drawable
Parameters:
gl - GL-context
Returns:
false if fails ton draaw and shall be deleted

init

public boolean init(javax.media.opengl.GL gl)
Description copied from interface: Drawable
initializes the Drawable in OpenGL context

Specified by:
init in interface Drawable
Parameters:
gl - gl context
Returns:
false if fails to initialize

setDrawNoneTreeEdges

public static void setDrawNoneTreeEdges(boolean drawNoneTreeEdges)
if set true, none tree edges are also drawn, otherwise not

Parameters:
drawNoneTreeEdges -