Null

A SceneBean that does not draw anything and cannot be interacted with. Null beans are most useful as elements of Switch beans, to toggle the visibility of parts of the scene-graph: switching to the Null bean will hide all the other children of the switch and draw nothing in their place.

Null beans are also used to initialise member variables of beans that refer to other scene-graph nodes. This means that code to traverse the scene graph does not have to explicitly check for null object-references - any null references are a programming error.

Also See

Features

XML Element XML Type Java Class
primitive null uk.ac.ic.doc.scenebeans.Null

Properties

Name Type Default Value Getter Method Setter Method Description
The Null bean has no properties.

Example XML

<compose type="switch">
  <primitive type="text">
    <param name="text" value="hello, world!">
  </primitive>
  <primitive type="null"/>
</compose>