} catch (CapabilityNotSetException e) {str.append("AmbientColor=N/A");} try { getEmissiveColor(color); str.append(" EmissiveColor="+color); } catch (CapabilityNotSetException ex) {str.append(" EmissiveColor=N/A");}
@Override public void writeObject( DataOutput out ) throws IOException { super.writeObject( out ); Material attr = (Material)node; Color3f clr = new Color3f(); attr.getAmbientColor( clr ); control.writeColor3f( out, clr ); attr.getDiffuseColor( clr ); control.writeColor3f( out, clr ); attr.getEmissiveColor( clr ); control.writeColor3f( out, clr ); attr.getSpecularColor( clr ); control.writeColor3f( out, clr ); out.writeBoolean( attr.getLightingEnable() ); out.writeInt( attr.getColorTarget() ); }