Package plotter

Examples of plotter.TickMarkCalculator


    xAxis.setEnd(1);
    yAxis.setStart(0);
    yAxis.setEnd(1);
    xAxis.setPreferredSize(new Dimension(1, 10));
    yAxis.setPreferredSize(new Dimension(10, 1));
    xAxis.setTickMarkCalculator(new TickMarkCalculator() {
      @Override
      public double[][] calculateTickMarks(Axis axis) {
        return new double[][] { { 0, .25, .5, .75, 1 }, {} };
      }
    });
    yAxis.setTickMarkCalculator(new TickMarkCalculator() {
      @Override
      public double[][] calculateTickMarks(Axis axis) {
        return new double[][] { { 0, .25, .5, .75, 1 }, {} };
      }
    });
View Full Code Here

TOP

Related Classes of plotter.TickMarkCalculator

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.