A composite bean that draws the union of the primitive shapes in its subgraphs.
The Union bean takes into account the transform and compose nodes of its subgraphs when calculating the union of the shapes, but ignores style nodes: the resulting area is drawn in the current style. The subgraphs of the Union bean, and thereby the calculated area, can be animated.
Note: the Union bean is used as a compose node within XML documents. However, to Java code, especially that traversing the scene-graph, it appears to be a primitive node that also supports the methods of the CompositeNode interface. When treated as a Primitive, the shape of the bean is the calculated area.
| XML Element | XML Type | Java Class |
| compose | union | uk.ac.ic.doc.scenebeans.Union |
| Name | Type | Default Value | Getter Method | Setter Method | Description |
| The Union bean has no properties. | |||||