scenic
Class SceneContainer

java.lang.Object
  extended by scenic.SceneNode
      extended by scenic.SceneContainer
Direct Known Subclasses:
SceneClip, SceneColorSpace, SceneDoubleBuffer, SceneSettings, SceneTransform

public class SceneContainer
extends SceneNode

This class is a base class for scene nodes that contain other scene nodes. The child nodes are painted starting from the first child.


Constructor Summary
SceneContainer()
          Constructs an empty SceneContainer.
 
Method Summary
 void add(int index, SceneNode node)
          Adds a child node to the given index in the child list.
 void add(SceneNode node)
          Adds a child node at the end of the child list.
 void childChanged(java.awt.Rectangle area)
           
 void clear()
          Removes all child nodes from this container.
 void remove(SceneNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneContainer

public SceneContainer()
Constructs an empty SceneContainer.

Method Detail

add

public void add(int index,
                SceneNode node)
Adds a child node to the given index in the child list.

Parameters:
index - the index in the child list.
node - the child node.

add

public void add(SceneNode node)
Adds a child node at the end of the child list.

Parameters:
node - the child node.

clear

public void clear()
Removes all child nodes from this container.


remove

public void remove(SceneNode node)

childChanged

public void childChanged(java.awt.Rectangle area)