maspack.properties
Class TestRenderInfo

java.lang.Object
  extended by maspack.properties.TestRenderInfo
All Implemented Interfaces:
java.lang.Cloneable, CompositeProperty, HasProperties, Clonable

public class TestRenderInfo
extends java.lang.Object
implements CompositeProperty, java.lang.Cloneable


Field Summary
static PropertyList myProps
           
 
Constructor Summary
TestRenderInfo()
           
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this composite property.
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 java.awt.Color getColor()
           
 PropertyMode getColorMode()
           
 Property getProperty(java.lang.String name)
          Returns a property associated with a specified path name.
 HasProperties getPropertyHost()
          Should be either HierarchyNode or HasProperties
 PropertyInfo getPropertyInfo()
          If this object is a property, returns the corresponding information
 double getShine()
           
 PropertyMode getShineMode()
           
 java.lang.String getTextureFile()
           
 int getWidth()
           
 PropertyMode getWidthMode()
           
 void set(TestRenderInfo info)
           
 void setColor(java.awt.Color color)
           
 void setColorMode(PropertyMode mode)
           
 void setPropertyHost(HasProperties newParent)
          Sets the host for this property.
 void setPropertyInfo(PropertyInfo info)
          Sets the property information for this property.
 void setShine(double shine)
           
 void setShineMode(PropertyMode mode)
           
 void setTextureFile(java.lang.String textureFile)
           
 void setWidth(int width)
           
 void setWidthMode(PropertyMode mode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

TestRenderInfo

public TestRenderInfo()
Method Detail

getAllPropertyInfo

public PropertyList getAllPropertyInfo()
Description copied from interface: HasProperties
Returns a list giving static information about all properties exported by this object.

Specified by:
getAllPropertyInfo in interface HasProperties
Returns:
static information for all exported properties

getProperty

public Property getProperty(java.lang.String name)
Description copied from interface: HasProperties
Returns a property associated with a specified path name. All properties exported by this object must have a name which is a valid Java identifier. Specifying one of these names causes the corresponding Property to be returned. Handles to sub-properties can also be obtained by delimiting the sub-property name(s) by '.' characters. A sub-property exists if the value of a property is itself an object which exports properties. It is only possible to obtain a sub-property handle if each of its ancestor properties exports their values by reference.

Specified by:
getProperty in interface HasProperties
Parameters:
name - name of the desired property or sub-property
Returns:
handle to the property

getPropertyInfo

public PropertyInfo getPropertyInfo()
Description copied from interface: CompositeProperty
If this object is a property, returns the corresponding information

Specified by:
getPropertyInfo in interface CompositeProperty

setPropertyInfo

public void setPropertyInfo(PropertyInfo info)
Description copied from interface: CompositeProperty
Sets the property information for this property.

Specified by:
setPropertyInfo in interface CompositeProperty
Parameters:
info - property information

getPropertyHost

public HasProperties getPropertyHost()
Description copied from interface: CompositeProperty
Should be either HierarchyNode or HasProperties

Specified by:
getPropertyHost in interface CompositeProperty

setPropertyHost

public void setPropertyHost(HasProperties newParent)
Description copied from interface: CompositeProperty
Sets the host for this property.

Specified by:
setPropertyHost in interface CompositeProperty
Parameters:
newParent - host for this property

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color color)

getColorMode

public PropertyMode getColorMode()

setColorMode

public void setColorMode(PropertyMode mode)

getShine

public double getShine()

setShine

public void setShine(double shine)

getShineMode

public PropertyMode getShineMode()

setShineMode

public void setShineMode(PropertyMode mode)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getWidthMode

public PropertyMode getWidthMode()

setWidthMode

public void setWidthMode(PropertyMode mode)

getTextureFile

public java.lang.String getTextureFile()

setTextureFile

public void setTextureFile(java.lang.String textureFile)

set

public void set(TestRenderInfo info)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: CompositeProperty
Returns a clone of this composite property.

Specified by:
clone in interface CompositeProperty
Specified by:
clone in interface Clonable
Overrides:
clone in class java.lang.Object
Returns:
clone of this property
Throws:
java.lang.CloneNotSupportedException