maspack.properties
Class TestMaterial

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

public class TestMaterial
extends java.lang.Object
implements CompositeProperty


Field Summary
static PropertyList myProps
           
 
Constructor Summary
TestMaterial()
           
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this composite property.
 int getActivity()
           
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 double getDamping()
           
 PropertyMode getDampingMode()
           
 double getDensity()
           
 PropertyMode getDensityMode()
           
 java.lang.String getFile()
           
 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 getQuotient()
           
 TestRenderInfo getRenderInfo()
           
 double getStiffness()
           
 PropertyMode getStiffnessMode()
           
 void setActivity(int a)
           
 void setDamping(double d)
           
 void setDampingMode(PropertyMode mode)
           
 void setDensity(double d)
           
 void setDensityMode(PropertyMode mode)
           
 void setFile(java.lang.String file)
           
 void setPropertyHost(HasProperties newParent)
          Sets the host for this property.
 void setPropertyInfo(PropertyInfo info)
          Sets the property information for this property.
 void setRenderInfo(TestRenderInfo info)
           
 void setStiffness(double k)
           
 void setStiffnessMode(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

TestMaterial

public TestMaterial()
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

getDensity

public double getDensity()

setDensity

public void setDensity(double d)

getDensityMode

public PropertyMode getDensityMode()

setDensityMode

public void setDensityMode(PropertyMode mode)

getStiffness

public double getStiffness()

setStiffness

public void setStiffness(double k)

getStiffnessMode

public PropertyMode getStiffnessMode()

setStiffnessMode

public void setStiffnessMode(PropertyMode mode)

getDamping

public double getDamping()

setDamping

public void setDamping(double d)

getDampingMode

public PropertyMode getDampingMode()

setDampingMode

public void setDampingMode(PropertyMode mode)

getRenderInfo

public TestRenderInfo getRenderInfo()

setRenderInfo

public void setRenderInfo(TestRenderInfo info)

getQuotient

public double getQuotient()

getFile

public java.lang.String getFile()

setFile

public void setFile(java.lang.String file)

getActivity

public int getActivity()

setActivity

public void setActivity(int a)

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