Package org.jamesii.gui.visualization.chart.axes

Examples of org.jamesii.gui.visualization.chart.axes.SimpleLogarithmicAxis


  @Override
  protected void setUp() throws Exception {
    super.setUp();

    axis = new SimpleLogarithmicAxis();
    assertNotNull(axis);
  }
View Full Code Here


    for (int i = 0; i < 100; i++) {
      double min = Math.random() * 100000 - 50000;
      double max = Math.random() * 100000 + min;

      IAxis referenceAxis = new SimpleLogarithmicAxis();
      axis.setMinimumMaximum(min, max);
      axis.setLogStartPointValue(min);

      referenceAxis.setMinimum(min);
      referenceAxis.setMaximum(max);

      for (int j = 0; j < 1000; j++) {
        double v = Math.random() * (max - min) + min;
        assertEquals(referenceAxis.transform(v), axis.transform(v), 0.00000001);
      }
    }

    // small test for symmetry around the basePointValue

View Full Code Here

TOP

Related Classes of org.jamesii.gui.visualization.chart.axes.SimpleLogarithmicAxis

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.