Package plotter

Examples of plotter.IntegerTickMarkCalculator


    XYAxis yAxis = frame.getYAxis();
    yAxis.setPreferredSize(new Dimension(75, 50));
    xAxis.setStartMargin(75);
    ((LinearXYAxis) yAxis).setFormat(new ChoiceFormat(new double[] {-Double.POSITIVE_INFINITY, 0, 1, 2, 2.000001}, new String[] {"", "red",
        "green", "blue", ""}));
    ((LinearXYAxis) yAxis).setTickMarkCalculator(new IntegerTickMarkCalculator());
    final LinearXYPlotLine line = new LinearXYPlotLine(xAxis, yAxis, XYDimension.X);
    line.setForeground(Color.white);
    line.setLineMode(LineMode.STEP_YX);
    final SimpleXYDataset d = new SimpleXYDataset(line);
    d.setMaxCapacity(1000);
View Full Code Here


    PropertyTester p = new PropertyTester(new LinearXYAxis(XYDimension.X));
    p.test("textMargin", 0, 1);
    p.test("showLabels", true, false);
    p.test("minorTickLength", 0, 1);
    p.test("majorTickLength", 0, 1);
    p.test("tickMarkCalculator", new IntegerTickMarkCalculator());
    p.test("format", new DecimalFormat("0.00"));
  }
View Full Code Here

TOP

Related Classes of plotter.IntegerTickMarkCalculator

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.