Subtract

A composite bean that subtracts from the primitive shape of its first subgraph the primitive shapes of its other subgraphs.

The Subtract 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 Subtract bean, and thereby the calculated area, can be animated.

Note: the Subtract 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.

Features

XML Element XML Type Java Class
compose subtract uk.ac.ic.doc.scenebeans.Subtract

Properties

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