/** * Set the transparency field. * * @param val The float to set. */ public void setTransparency(float val) { if (transparency == null) { transparency = (SFFloat) getField("transparency"); } transparency.setValue(val); }
/** * Return the transparency float value. * * @return The transparency float value. */ public float getTransparency() { if (transparency == null) { transparency = (SFFloat) getField("transparency"); } return (transparency.getValue()); }