/** * common constructor * * @param view3D * @param axis3D */ public DrawAxis3D(EuclidianView3D view3D, GeoAxis3D axis3D) { super(view3D, axis3D); super.setDrawMinMax(-2, 2); labels = new TreeMap<String, DrawLabel3D>(); }
public double[] getDrawMinMax() { long deltaT = getDeltaT(); if (deltaT > 0) { if (deltaT > TIME_DURATION) { super.setDrawMinMax(drawMinFinal, drawMaxFinal); } else { double[] minmaxIni = super.getDrawMinMax(); double[] minmax = new double[2]; double dt = (double) deltaT * TIME_FACTOR; minmax[0] = drawMinFinal * dt + minmaxIni[0] * (1 - dt); minmax[1] = drawMaxFinal * dt + minmaxIni[1] * (1 - dt); return minmax; } } return super.getDrawMinMax(); }