double axisMin = switchedLog10(range.getLowerBound()); double axisMax = switchedLog10(range.getUpperBound()); value = switchedLog10(value);
double axisMin = switchedLog10(range.getLowerBound()); double axisMax = switchedLog10(range.getUpperBound()); value = switchedLog10(value);
int iBegCount = (int) Math.rint(switchedLog10(lowerBoundVal)); int iEndCount = (int) Math.rint(switchedLog10(upperBoundVal));
double axisMin = switchedLog10(range.getLowerBound()); double axisMax = switchedLog10(range.getUpperBound());
int iBegCount = (int) Math.rint(switchedLog10(lowerBoundVal)); int iEndCount = (int) Math.rint(switchedLog10(upperBoundVal));
double axisMin = switchedLog10(range.getLowerBound()); double axisMax = switchedLog10(range.getUpperBound());
int iBegCount = (int) Math.rint(switchedLog10(lowerBoundVal)); int iEndCount = (int) Math.rint(switchedLog10(upperBoundVal));
int iBegCount = (int) Math.rint(switchedLog10(lowerBoundVal)); int iEndCount = (int) Math.rint(switchedLog10(upperBoundVal));
/** * Zooms in on the current range. * * @param lowerPercent the new lower bound. * @param upperPercent the new upper bound. */ @Override public void zoomRange(double lowerPercent, double upperPercent) { double startLog = switchedLog10(getRange().getLowerBound()); double lengthLog = switchedLog10(getRange().getUpperBound()) - startLog; Range adjusted; if (isInverted()) { adjusted = new Range( switchedPow10(startLog + (lengthLog * (1 - upperPercent))), switchedPow10(startLog + (lengthLog * (1 - lowerPercent)))); } else { adjusted = new Range( switchedPow10(startLog + (lengthLog * lowerPercent)), switchedPow10(startLog + (lengthLog * upperPercent))); } setRange(adjusted); }
/** * Zooms in on the current range. * * @param lowerPercent the new lower bound. * @param upperPercent the new upper bound. */ public void zoomRange(double lowerPercent, double upperPercent) { double startLog = switchedLog10(getRange().getLowerBound()); double lengthLog = switchedLog10(getRange().getUpperBound()) - startLog; Range adjusted; if (isInverted()) { adjusted = new Range( switchedPow10( startLog + (lengthLog * (1 - upperPercent))), switchedPow10( startLog + (lengthLog * (1 - lowerPercent)))); } else { adjusted = new Range( switchedPow10(startLog + (lengthLog * lowerPercent)), switchedPow10(startLog + (lengthLog * upperPercent))); } setRange(adjusted); }