/** * Set the Clip's application region. * @param region a region that contains the Clip's new application bounds */ final void setApplicationBounds(Bounds region) { initApplicationBounds(region); // Don't send the message if there is a valid boundingleaf if (boundingLeaf == null) { sendMessage(BOUNDS_CHANGED, (region != null ? region.clone(): null), null); } }
/** * Set the Clip's application region to the specified bounds. * This is used when the application bounding leaf is set to null. * @param region the bounds that contains the Clip's new application * region. * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setApplicationBounds(Bounds region) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_APPLICATION_BOUNDS_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Clip2")); if (isLive()) ((ClipRetained)this.retained).setApplicationBounds(region); else ((ClipRetained)this.retained).initApplicationBounds(region); }
rt.initApplicationBounds(attr.getApplicationBounds());