Ejemplo n.º 1
0
 /**
  * Returns a String for printing all Box3D values
  *
  * @return String for printing all Box3D field values
  */
 public String toString() {
   String ms = null;
   if (m != null) {
     if (m.getDiffuseColor() != null) {
       ms = ", m= " + m.getDiffuseColor().toString();
     }
     if (m.getSpecularColor() != null) {
       ms = ms.concat(", " + m.getSpecularColor().toString());
     }
   } else {
     ms = ", m= " + m;
   }
   return "Box3D: p= "
       + p.toString()
       + ", width = "
       + width
       + ", height= "
       + height
       + ", depth= "
       + depth
       + ", xr= "
       + xr
       + ", yr= "
       + yr
       + ", zr= "
       + zr
       + ", dm= "
       + dm
       + ", cf= "
       + cf
       + ", "
       + ms;
 }
Ejemplo n.º 2
0
 /**
  * Returns a String for printing all Arrow3D values
  *
  * @return String for printing all Arrow3D field values
  */
 public String toString() {
   String ms = null;
   if (m != null) {
     if (m.getDiffuseColor() != null) {
       ms = ", m= " + m.getDiffuseColor().toString();
     }
     if (m.getSpecularColor() != null) {
       ms = ms.concat(", " + m.getSpecularColor().toString());
     }
   } else {
     ms = ", m= " + m;
   }
   return "Arrow3D: p1= "
       + p1.toString()
       + ", p2= "
       + p2.toString()
       + " arrowRadius= "
       + arrowRadius
       + ms;
 }