Switch

A composite bean that draws one of its subgraphs at a time. A Switch bean can be used to toggle the visibility of its subgraph(s) by using a Null bean as a subgraph.

Also See

Features

XML Element XML Type Java Class
compose switch uk.ac.ic.doc.scenebeans.Switch

Properties

Name Type Default Value Getter Method Setter Method Description
current int 0 getCurrent setCurrent The index of the subgraph that is currently being drawn. Subgraphs are indexed from 0. In an XML document, the first subelement of the <switch> element has index 0, the second has index 1 and so on.