org.writersforge.catalan.layout
Class LayoutFactory

java.lang.Object
  extended byorg.writersforge.catalan.layout.LayoutFactory

public final class LayoutFactory
extends java.lang.Object

Factory for creating LayoutEngine objects. Supports a hardcoded default engine, plus additional engines through String parameters.

Author:
jsheets

Field Summary
static java.lang.String ASCII_ENGINE
          The factory name for the AsciiLayout engine.
static java.lang.String SIMPLE_FLOW_ENGINE
          The factory name for the SimpleFlowLayout engine.
 
Method Summary
static LayoutEngine newLayoutEngine(java.lang.String init)
          Creates a new layout engine, based on the input parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_FLOW_ENGINE

public static final java.lang.String SIMPLE_FLOW_ENGINE
The factory name for the SimpleFlowLayout engine.

See Also:
Constant Field Values

ASCII_ENGINE

public static final java.lang.String ASCII_ENGINE
The factory name for the AsciiLayout engine.

See Also:
Constant Field Values
Method Detail

newLayoutEngine

public static LayoutEngine newLayoutEngine(java.lang.String init)
Creates a new layout engine, based on the input parameters. If init is null, the factory will return a default engine.

Parameters:
init - a unique string identifying the type of layout engine to create
Returns:
a newly created layout engine