data
Class Rings

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

public class Rings
extends java.lang.Object
implements Drawable

radial layout rings

Author:
Fennes

Constructor Summary
Rings()
          rings with color black
Rings(Vector3 color)
          rings with given color
 
Method Summary
 boolean draw(javax.media.opengl.GL gl)
          draws an object in OpenGL context
 boolean init(javax.media.opengl.GL gl)
          initializes the Drawable in OpenGL context
static void setRingNumber(int ringNumber)
          defines how many rings are shown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rings

public Rings()
rings with color black


Rings

public Rings(Vector3 color)
rings with given color

Parameters:
color -
Method Detail

draw

public boolean draw(javax.media.opengl.GL gl)
Description copied from interface: Drawable
draws an object in OpenGL context

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

setRingNumber

public static void setRingNumber(int ringNumber)
defines how many rings are shown

Parameters:
ringNumber -