|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.render.RendererConfigurationUtil
This class contains simple utility method for obtaining a memento object
of type AttributeSet from
an object of type RendererConfiguration
and for applying such memento objects back to existing
RendererConfiguration objects.
RendererConfiguration,
AttributeSet| Method Summary | |
static boolean |
contains(AttributeSet rcfg,
java.lang.String name)
Checks if the given setting is included in the current configuration |
static boolean |
contains(RendererConfiguration rcfg,
java.lang.String name)
Checks if the given setting is included in the current configuration |
static boolean |
getBoolean(AttributeSet rcfg,
java.lang.String name)
Retrieves the value of a boolean(!) |
static boolean |
getBoolean(RendererConfiguration rcfg,
java.lang.String name)
Retrieves the value of a boolean(!) |
static double |
getDouble(AttributeSet rcfg,
java.lang.String name)
Retrieves the value of a boolean(!) |
static double |
getDouble(RendererConfiguration rcfg,
java.lang.String name)
Retrieves the value of a boolean(!) |
static void |
rendererApplyMemento2Renderer(AttributeSet attributeset,
RendererConfiguration configuration)
This method applies the settings stored in the given AttributeSet to the given RendererConfiguration. |
static AttributeSet |
rendererGetMemento(RendererConfiguration configuration)
This method read the settings stored in the given RendererConfiguration and returns a
memento-like AttributeSet with copied values. |
static void |
setBoolean(AttributeSet rcfg,
java.lang.String name,
boolean value)
Sets the boolean value of a rendering hint in the RendererConfiguration |
static void |
setBoolean(RendererConfiguration rcfg,
java.lang.String name,
boolean value)
Sets the boolean value of a rendering hint in the RendererConfiguration |
static void |
setDouble(AttributeSet rcfg,
java.lang.String name,
double value)
Sets the double value of a rendering hint in the RendererConfiguration |
static void |
setDouble(RendererConfiguration rcfg,
java.lang.String name,
double value)
Sets the double value of a rendering hint in the RendererConfiguration |
static void |
setValue(AttributeSet rcfg,
java.lang.String name,
java.lang.Object value)
Sets the value of a rendering hint in the RendererConfiguration |
static void |
setValue(RendererConfiguration rcfg,
java.lang.String name,
java.lang.Object value)
Sets the value of a rendering hint in the RendererConfiguration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final void rendererApplyMemento2Renderer(AttributeSet attributeset,
RendererConfiguration configuration)
AttributeSet to the given RendererConfiguration.
attributeset - the AttributeSet supplying the values to set.configuration - the RendererConfiguration to set.public static AttributeSet rendererGetMemento(RendererConfiguration configuration)
RendererConfiguration and returns a
memento-like AttributeSet with copied values.
configuration - the RendererConfiguration to convert
into a memento AttributeSet
AttributeSet that holds
the settings copied from the RendererConfiguration.
public static void setBoolean(RendererConfiguration rcfg,
java.lang.String name,
boolean value)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to setvalue - The new value of the hint
public static void setBoolean(AttributeSet rcfg,
java.lang.String name,
boolean value)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to setvalue - The new value of the hint
public static void setDouble(RendererConfiguration rcfg,
java.lang.String name,
double value)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to setvalue - The new value of the hint
public static void setDouble(AttributeSet rcfg,
java.lang.String name,
double value)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to setvalue - The new value of the hint
public static void setValue(RendererConfiguration rcfg,
java.lang.String name,
java.lang.Object value)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to setvalue - The new value of the hint
public static void setValue(AttributeSet rcfg,
java.lang.String name,
java.lang.Object value)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to setvalue - The new value of the hint
public static boolean getBoolean(RendererConfiguration rcfg,
java.lang.String name)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to set
public static boolean getBoolean(AttributeSet rcfg,
java.lang.String name)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to set
public static double getDouble(RendererConfiguration rcfg,
java.lang.String name)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to set
public static double getDouble(AttributeSet rcfg,
java.lang.String name)
RendererConfiguration
rcfg - The renderer configuration to changename - The name of the hint to set
public static boolean contains(RendererConfiguration rcfg,
java.lang.String name)
rcfg - The renderer configuration to changename - The name of the hint to set
public static boolean contains(AttributeSet rcfg,
java.lang.String name)
rcfg - The renderer configuration to changename - The name of the hint to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||