Package net.sourceforge.jeuclid.context
Class LayoutContextImpl
- java.lang.Object
-
- net.sourceforge.jeuclid.context.LayoutContextImpl
-
- All Implemented Interfaces:
java.io.Serializable,LayoutContext,MutableLayoutContext
public class LayoutContextImpl extends java.lang.Object implements MutableLayoutContext, java.io.Serializable
- Version:
- $Revision: 896e3a9ebb36 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLayoutContextImpl()Default constructor.LayoutContextImpl(LayoutContext copyFromContext)Default Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LayoutContextgetDefaultLayoutContext()Retrieve the default layout context.java.lang.ObjectgetParameter(Parameter which)Retrieve a layout parameter.LayoutContextsetParameter(Parameter which, java.lang.Object newValue)Set a layout Parameter.
-
-
-
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, java.lang.Object newValue)
Set a layout Parameter.- Specified by:
setParameterin interfaceMutableLayoutContext- Parameters:
which- the parameter to setnewValue- the new Value for this parameter.- Returns:
- itself for convenience.
-
getParameter
public java.lang.Object getParameter(Parameter which)
Retrieve a layout parameter.- Specified by:
getParameterin interfaceLayoutContext- Parameters:
which- the parameter to retrieve- Returns:
- current value for this parameter. Please note: Some parameters may be null.
-
-