@Test public void scaleNormalizedTime1() { TimeScale linearScale = TimeScales.linearAbsoluteScale(); assertThat(linearScale.scaleNormalizedTime(0.0, 1.0, 100.0), equalTo(1.0)); assertThat(linearScale.scaleNormalizedTime(0.25, 1.0, 100.0), equalTo(25.75)); assertThat(linearScale.scaleNormalizedTime(0.5, 1.0, 100.0), equalTo(50.5)); assertThat(linearScale.scaleNormalizedTime(1.0, 1.0, 100.0), equalTo(100.0)); }
@Override public double scaleNormalizedTime(double value, double newMinValue, double newMaxValue) { double newRange = newMaxValue - newMinValue; return newMinValue + (value) * newRange; }
LinearAbsoluteTimeScale implements TimeScale { @Override public double scaleNormalizedTime(double value, double newMinValue, double newMaxValue) { double newRange = newMaxValue - newMinValue; return newMinValue + (value) * newRange; } }
LinearAbsoluteTimeScale implements TimeScale { @Override public double scaleNormalizedTime(double value, double newMinValue, double newMaxValue) { double newRange = newMaxValue - newMinValue; return newMinValue + (value) * newRange; }  }
LinearAbsoluteTimeScale implements TimeScale { @Override public double scaleNormalizedTime(double value, double newMinValue, double newMaxValue) { double newRange = newMaxValue - newMinValue; return newMinValue + (value) * newRange; }  @Override double scaleNormalizedTime(double value, double newMinValue, double newMaxValue); @Override double scaleTimestamp(Instant value, TimeInterval timeInterval, double newMinValue, double newMaxValue); @Override TimeAxis references(TimeInterval range, int minRefs, int maxRefs); }
LinearAbsoluteTimeScale implements TimeScale { @Override public double scaleNormalizedTime(double value, double newMinValue, double newMaxValue) { double newRange = newMaxValue - newMinValue; return newMinValue + (value) * newRange; }  @Override double scaleNormalizedTime(double value, double newMinValue, double newMaxValue); @Override double scaleTimestamp(Instant value, TimeInterval timeInterval, double newMinValue, double newMaxValue); @Override TimeAxis references(TimeInterval range, int minRefs, int maxRefs);  }