Ejemplo n.º 1
0
  public String toString() {
    StringBuffer sb = new StringBuffer(this.getDescription());

    sb.append(
        " from point: ("
            + getLowestXValue()
            + ", "
            + getLowestYValue()
            + ", "
            + getLowestZValue()
            + ") to ("
            + getHighestXValue()
            + ", "
            + getHighestYValue()
            + ", "
            + getHighestZValue()
            + ")");

    return sb.toString();
  }
Ejemplo n.º 2
0
  /**
   * Return a string representation of this GraphicsModeControlJ3D
   *
   * @return string that represents the state of this object.
   */
  public String toString() {
    StringBuffer buf = new StringBuffer("GraphicsModeControlJ3D[");

    buf.append("lw ");
    buf.append(lineWidth);
    buf.append(",ps ");
    buf.append(pointSize);

    buf.append(pointMode ? "pm" : "!pm");
    buf.append(textureEnable ? "te" : "!te");
    buf.append(scaleEnable ? "se" : "!se");
    buf.append(missingTransparent ? "mt" : "!mt");

    buf.append(",tm ");
    buf.append(transparencyMode);
    buf.append(",pp ");
    buf.append(projectionPolicy);
    buf.append(",pm ");
    buf.append(polygonMode);
    buf.append(",cm ");
    buf.append(colorMode);
    buf.append(",cs ");
    buf.append(curvedSize);
    buf.append(",po ");
    buf.append(polygonOffset);
    buf.append(",pof ");
    buf.append(polygonOffsetFactor);
    buf.append(adjustProjectionSeam ? "as" : "!as");
    buf.append(",t3dm ");
    buf.append(texture3DMode);
    buf.append(",ca ");
    buf.append(cacheAppearances);
    buf.append(",mg ");
    buf.append(mergeGeometries);

    buf.append(']');
    return buf.toString();
  }