Difference

A composite bean that draws the difference between the areas of the primitive shapes of its subgraphs.

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

Note: the Difference 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 difference uk.ac.ic.doc.scenebeans.Difference

Properties

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