de.javagl.swogl.layout
Interface LayoutManager3D

All Known Implementing Classes:
BillboardLayout3D

public interface LayoutManager3D

This is the common interface for all classes that may lay out SwoglComponents in a SwoglContainer


Method Summary
 void doLayout3D()
          Lays out the SwoglComponents in a SwoglContainer
 void setSwoglContainer(SwoglContainer swoglContainer)
          This method will assign the given SwoglContainer to this LayoutManager3D.
 

Method Detail

doLayout3D

void doLayout3D()
Lays out the SwoglComponents in a SwoglContainer


setSwoglContainer

void setSwoglContainer(SwoglContainer swoglContainer)
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 it is detached from a SwoglContainer.

Parameters:
swoglContainer - The SwoglContainer for this LayoutManager3D