artofillusion.animation
Class ObjectRefTreeElement

java.lang.Object
  extended by artofillusion.ui.TreeElement
      extended by artofillusion.animation.ObjectRefTreeElement

public class ObjectRefTreeElement
extends TreeElement

This class represents an ObjectRef in a the TreeList.


Constructor Summary
ObjectRefTreeElement(ObjectRef obj, TreeElement parent, TreeList tree, ObjectInfo exclude)
           
 
Method Summary
 void addChild(TreeElement el, int position)
          Add another element as a child of this one.
 boolean canAcceptAsParent(TreeElement el)
          Determine whether this element can be added as a child of another one If el is null, return whether this element can be added at the root level of the tree.
 java.lang.String getLabel()
          Get the label to display for this element.
 java.lang.Object getObject()
          Get the object corresponding to this element.
 boolean isGray()
          Get whether this element should be drawn in gray (i.e.
 void removeChild(java.lang.Object object)
          Remove any elements corresponding to the given object from this element's list of children.
 void setEnabled(boolean enable)
           
 
Methods inherited from class artofillusion.ui.TreeElement
getChild, getIcon, getNumChildren, getParent, isExpanded, isSelectable, isSelected, selectWithParent, setExpanded, setSelectable, setSelected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectRefTreeElement

public ObjectRefTreeElement(ObjectRef obj,
                            TreeElement parent,
                            TreeList tree,
                            ObjectInfo exclude)
Method Detail

getLabel

public java.lang.String getLabel()
Description copied from class: TreeElement
Get the label to display for this element.

Specified by:
getLabel in class TreeElement

canAcceptAsParent

public boolean canAcceptAsParent(TreeElement el)
Description copied from class: TreeElement
Determine whether this element can be added as a child of another one If el is null, return whether this element can be added at the root level of the tree.

Specified by:
canAcceptAsParent in class TreeElement

addChild

public void addChild(TreeElement el,
                     int position)
Description copied from class: TreeElement
Add another element as a child of this one.

Specified by:
addChild in class TreeElement

removeChild

public void removeChild(java.lang.Object object)
Description copied from class: TreeElement
Remove any elements corresponding to the given object from this element's list of children.

Specified by:
removeChild in class TreeElement

getObject

public java.lang.Object getObject()
Description copied from class: TreeElement
Get the object corresponding to this element.

Specified by:
getObject in class TreeElement

setEnabled

public void setEnabled(boolean enable)

isGray

public boolean isGray()
Description copied from class: TreeElement
Get whether this element should be drawn in gray (i.e. to indicate it is deactivated).

Specified by:
isGray in class TreeElement


Copyright © 1999-2011 by Peter Eastman.