|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.layout.WheelLayout3D
public class WheelLayout3D
An implementation of the LayoutManager3D interface that arranges the components as a wheel.
Constructor Summary | |
---|---|
WheelLayout3D()
Creates a new WheelLayout3D |
Method Summary | |
---|---|
void |
doLayout3D()
Lays out the SwoglComponents in a SwoglContainer |
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(SwoglContainer swoglContainer)
This method will assign the given SwoglContainer to this LayoutManager3D. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WheelLayout3D()
Method Detail |
---|
public void setStepDuration(int ms)
ms
- The duration in millisecondspublic void setSwoglContainer(SwoglContainer swoglContainer)
LayoutManager3D
SwoglContainer.setLayout3D(LayoutManager3D)
method,
the SwoglContainer will pass itself to this method. When a
different LayoutManager3D is assigned to the SwoglContainer,
then the SwoglContainer will call this method and pass 'null'
as the argument. This allows implementations of this interface
to perform an initialization when this LayoutManager3D becomes
assigned to a SwoglContainer, and necessary cleanup operations
when they are detached from a SwoglContainer.
setSwoglContainer
in interface LayoutManager3D
swoglContainer
- The SwoglContainer for this LayoutManager3Dpublic void doLayout3D()
LayoutManager3D
doLayout3D
in interface LayoutManager3D
public void rotateWheel(int steps)
steps
- The number of steps to rotate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |