407

Creating Backgrounds
Application Bounds Example Code

  • Set bounds relative to the background's coordinate system
    Background back = new Background( );
    back.setApplicationBounds( bounds );

  • Or relative to a bounding leaf's coordinate system
    TransformGroup group = new TransformGroup( );
    BoundingLeaf leaf = new BoundingLeaf( bounds );
    group.addChild( leaf );
    . . .
    Background back = new Background( );
    back.setApplicationBoundingLeaf( leaf );