160

Sharing Groups of Shapes
SharedGroups

  • A SharedGroup extends Group
  • It contains shapes, like other groups
  • It is never added into the scene graph directly
  • It is referenced by one or more Link leaf nodes
  • Changes to a SharedGroup affect all references to it

  • Can be compiled by calling its compile( ) method prior to referencing it from a Link node