protected void initialize(Axis1D colorAxis, int targetTexUnit, int colorTexUnit) {
    colorAxis.addAxisListener(this);

    this.dataMin = getArg("dataMin");
    this.dataMin.setValue(getMin(colorAxis));

    this.dataMax = getArg("dataMax");
    this.dataMax.setValue(getMax(colorAxis));

    this.alpha = getArg("alpha");
    this.alpha.setValue(1f);

    this.dataTexUnit = getArg("datatex");
    this.dataTexUnit.setValue(targetTexUnit);

    this.colorTexUnit = getArg("colortex");
    this.colorTexUnit.setValue(colorTexUnit);
  }
 protected double getMax(Axis1D axis) {
   return axis.getMax();
 }