/** * Sets the material object to the specified object. * Setting it to null disables lighting. * @param material object that specifies the desired material * properties * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setMaterial(Material material) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_MATERIAL_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance0")); ((AppearanceRetained)this.retained).setMaterial(material); }
rt.setMaterial((Material) getNodeComponent(app.getMaterial(), forceDuplicate, hashtable));