net.sourceforge.jeuclid.context
Class LayoutContextImpl

java.lang.Object
  extended by net.sourceforge.jeuclid.context.LayoutContextImpl
All Implemented Interfaces:
Serializable, LayoutContext, MutableLayoutContext

public class LayoutContextImpl
extends Object
implements MutableLayoutContext, Serializable

Version:
$Revision: 896e3a9ebb36 $
See Also:
Serialized Form

Constructor Summary
protected LayoutContextImpl()
          Default constructor.
  LayoutContextImpl(LayoutContext copyFromContext)
          Default Constructor.
 
Method Summary
static LayoutContext getDefaultLayoutContext()
          Retrieve the default layout context.
 Object getParameter(Parameter which)
          Retrieve a layout parameter.
 LayoutContext setParameter(Parameter which, Object newValue)
          Set a layout Parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutContextImpl

protected LayoutContextImpl()
Default constructor.


LayoutContextImpl

public LayoutContextImpl(LayoutContext copyFromContext)
Default Constructor.

Parameters:
copyFromContext - LayoutContext to use for initialization of values
Method Detail

getDefaultLayoutContext

public static LayoutContext getDefaultLayoutContext()
Retrieve the default layout context.

Returns:
the default layout context.

setParameter

public LayoutContext setParameter(Parameter which,
                                  Object newValue)
Set a layout Parameter.

Specified by:
setParameter in interface MutableLayoutContext
Parameters:
which - the parameter to set
newValue - the new Value for this parameter.
Returns:
itself for convenience.

getParameter

public Object getParameter(Parameter which)
Retrieve a layout parameter.

Specified by:
getParameter in interface LayoutContext
Parameters:
which - the parameter to retrieve
Returns:
current value for this parameter. Please note: Some parameters may be null.


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.