de.javagl.swogl.layout
Class WheelLayout3D

java.lang.Object
  extended by de.javagl.swogl.layout.WheelLayout3D
All Implemented Interfaces:
de.javagl.swogl.layout.LayoutManager3D

public class WheelLayout3D
extends java.lang.Object
implements de.javagl.swogl.layout.LayoutManager3D

An implementation of the LayoutManager3D interface that arranges the components as a wheel.


Constructor Summary
WheelLayout3D()
          Creates a new WheelLayout3D
 
Method Summary
 void doLayout3D()
           
 void rotateWheel(int steps)
          Rotate the wheel about the given number of steps
 void setStepDuration(int ms)
          Set the duration of a single step of the wheel rotation in milliseconds (this is the time for the transition between two components)
 void setSwoglContainer(de.javagl.swogl.SwoglContainer swoglContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WheelLayout3D

public WheelLayout3D()
Creates a new WheelLayout3D

Method Detail

setStepDuration

public void setStepDuration(int ms)
Set the duration of a single step of the wheel rotation in milliseconds (this is the time for the transition between two components)

Parameters:
ms - The duration in milliseconds

setSwoglContainer

public void setSwoglContainer(de.javagl.swogl.SwoglContainer swoglContainer)
Specified by:
setSwoglContainer in interface de.javagl.swogl.layout.LayoutManager3D

doLayout3D

public void doLayout3D()
Specified by:
doLayout3D in interface de.javagl.swogl.layout.LayoutManager3D

rotateWheel

public void rotateWheel(int steps)
Rotate the wheel about the given number of steps

Parameters:
steps - The number of steps to rotate