/** * Retrieves the format of this image component object. * @return the format of this image component object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public int getFormat() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_FORMAT_READ)) throw new CapabilityNotSetException(J3dI18N.getString("ImageComponent2")); return ((ImageComponentRetained)this.retained).getFormat(); }