public class TestNode extends java.lang.Object implements HierarchyNode, HasProperties
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
Constructor and Description |
---|
TestNode(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(TestNode node) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
java.util.Iterator<TestNode> |
getChildren() |
java.lang.String |
getName() |
TestNode |
getParent() |
Property |
getProperty(java.lang.String name)
Returns a property associated with a specified path name.
|
java.lang.Object |
getPropertyValue(java.lang.String name) |
double |
getRand() |
TestRenderInfo |
getRenderInfo() |
int |
getStyle() |
PropertyMode |
getStyleMode() |
boolean |
hasChildren() |
void |
removeChild(TestNode node) |
void |
setName(java.lang.String name) |
void |
setPropertyValue(java.lang.String name,
java.lang.Object value) |
void |
setRenderInfo(TestRenderInfo info) |
void |
setStyle(int style) |
void |
setStyleMode(PropertyMode mode) |
public static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public Property getProperty(java.lang.String name)
HasProperties
.
' 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.getProperty
in interface HasProperties
name
- name of the desired property or sub-propertypublic java.lang.Object getPropertyValue(java.lang.String name)
public void setPropertyValue(java.lang.String name, java.lang.Object value)
public double getRand()
public void setName(java.lang.String name)
public java.lang.String getName()
public int getStyle()
public void setStyle(int style)
public PropertyMode getStyleMode()
public void setStyleMode(PropertyMode mode)
public TestNode getParent()
getParent
in interface HierarchyNode
public boolean hasChildren()
hasChildren
in interface HierarchyNode
public java.util.Iterator<TestNode> getChildren()
getChildren
in interface HierarchyNode
public void removeChild(TestNode node)
public void addChild(TestNode node)
public TestRenderInfo getRenderInfo()
public void setRenderInfo(TestRenderInfo info)