@Test public void relative1() { AxisRange axisRange = AxisRanges.data(); assertThat(axisRange.toString(), equalTo("data")); AxisRangeInstance axisRangeInstance = axisRange.createInstance(); Range range = axisRangeInstance.axisRange(Ranges.range(3.0, 15.0), Ranges.range(-3.0, 4.0)); assertThat(range.getMinimum(), equalTo((Number) 3.0)); assertThat(range.getMaximum(), equalTo((Number) 15.0)); range = axisRangeInstance.axisRange(Ranges.range(1.0, 5.0), Ranges.range(-3.0, 4.0)); assertThat(range.getMinimum(), equalTo((Number) 1.0)); assertThat(range.getMaximum(), equalTo((Number) 5.0)); }
public static AxisRange data() { return DATA; }
AxisRanges { public static AxisRange data() { return DATA; } }
AxisRanges { public static AxisRange data() { return DATA; } private  AxisRanges(); }
AxisRanges { public static AxisRange data() { return DATA; } private  AxisRanges(); static AxisRange fixed(final double min, final double max); static AxisRange data(); static AxisRange auto(); static AxisRange auto(double minUsage); static AxisRange display(); }
AxisRanges { public static AxisRange data() { return DATA; } private  AxisRanges(); static AxisRange fixed(final double min, final double max); static AxisRange data(); static AxisRange auto(); static AxisRange auto(double minUsage); static AxisRange display();  }