/**
   * Draws a sphere
   *
   * @param sensVal the sensorvalue to be represented in the GraphicsPane
   */
  public void drawSphere(SensorValue sensVal) {
    Appearance ap = new Appearance();

    ap.setTransparencyAttributes(
        new TransparencyAttributes(TransparencyAttributes.NICEST, transparency));

    float a = sensVal.getValue();

    ColoringAttributes color =
        new ColoringAttributes(new Color3f(a / 255, 0.0f, (1 - (a / 255))), 0);
    ap.setColoringAttributes(color);

    SensorRepresentation sphere = new SensorRepresentation(0.2f, 100, ap, sensVal);
    sensorRepList.add(sphere);

    TransformGroup transformGrp = new TransformGroup();
    Transform3D transform = new Transform3D();

    transform.setTranslation(new Vector3f(sensVal.getX(), sensVal.getY(), sensVal.getZ()));
    transformGrp.setTransform(transform);

    transformGrp.addChild(sphere);
    this.addChild(transformGrp);
  }