コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * Return the transparency float value.
  *
  * @return The transparency float value.
  */
 public float getTransparency() {
   if (transparency == null) {
     transparency = (SFFloat) getField("transparency");
   }
   return (transparency.getValue());
 }