org.wilmascope.layoutregistry
Class LayoutManager

java.lang.Object
  extended by org.wilmascope.layoutregistry.LayoutManager

public class LayoutManager
extends java.lang.Object

This class provides a manager or registry of all the available layout engines. This class implements the Singleton design pattern (Gamma et al.) such that there can only ever be one instance in the system and a reference to that instance can be obtained by calling the static {link #getInstance()} method from anywhere.


Nested Class Summary
 class LayoutManager.UnknownLayoutTypeException
           
 
Method Summary
 void addPrototypeLayout(LayoutEngine prototype)
           
 LayoutEngine createLayout(java.lang.String layoutType)
           
 LayoutEngine[] getAll()
           
 java.util.Collection getAvailableLayoutEngines()
           
static LayoutManager getInstance()
           
 java.lang.String[] getTypeList()
           
 void load()
          If you create a layout engine then add the fully qualified class path to the LayoutPlugins field in WILMA_CONSTANTS.properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LayoutManager getInstance()

createLayout

public LayoutEngine createLayout(java.lang.String layoutType)
                          throws LayoutManager.UnknownLayoutTypeException
Throws:
LayoutManager.UnknownLayoutTypeException

addPrototypeLayout

public void addPrototypeLayout(LayoutEngine prototype)

getAvailableLayoutEngines

public java.util.Collection getAvailableLayoutEngines()

getAll

public LayoutEngine[] getAll()

load

public void load()
If you create a layout engine then add the fully qualified class path to the LayoutPlugins field in WILMA_CONSTANTS.properties


getTypeList

public java.lang.String[] getTypeList()
Returns:
an array of type names