de.javagl.swogl.layout
Class BrowseLayout3D

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

public class BrowseLayout3D
extends java.lang.Object
implements LayoutManager3D

An implementation of the LayoutManager3D interface that allows browsing through the components. It arranges the components of a SwoglContainer along the view direction, and may give a browsable overview over the components.


Constructor Summary
BrowseLayout3D()
          Creates a new BrowseLayout
 
Method Summary
 void doLayout3D()
          Lays out the SwoglComponents in a SwoglContainer
 void scrollAbout(int steps)
          Scroll through the components for the given number of steps
 void setBrowseModeActivated(boolean activated)
          Set the browse mode (overview mode) activation status
 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

BrowseLayout3D

public BrowseLayout3D()
Creates a new BrowseLayout

Method Detail

setBrowseModeActivated

public void setBrowseModeActivated(boolean activated)
Set the browse mode (overview mode) activation status

Parameters:
activated - The browse mode activation status

setSwoglContainer

public void setSwoglContainer(SwoglContainer swoglContainer)
Description copied from interface: LayoutManager3D
This method will assign the given SwoglContainer to this LayoutManager3D. When this LayoutManager3D is assigned to a SwoglContainer using the 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.

Specified by:
setSwoglContainer in interface LayoutManager3D
Parameters:
swoglContainer - The SwoglContainer for this LayoutManager3D

doLayout3D

public void doLayout3D()
Description copied from interface: LayoutManager3D
Lays out the SwoglComponents in a SwoglContainer

Specified by:
doLayout3D in interface LayoutManager3D

scrollAbout

public void scrollAbout(int steps)
Scroll through the components for the given number of steps

Parameters:
steps - The number of steps