Package plotter

Examples of plotter.LineChecker.check()


    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.require(39, 160, 99, 160);
    c.require(99, 40, 159, 40);
    c.require(159, 40, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintMissingPointLeftWithMissingEnds() throws InterruptedException, InvocationTargetException {
    line.setMissingPointMode(MissingPointMode.LEFT);
View Full Code Here


    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.require(39, 160, 99, 160);
    c.require(159, 40, 179, 20);
    c.require(179, 20, 199, 20);
    c.check(g.getLines());
  }


  public void testPaintMissingPointRightWithMissingEnds() throws InterruptedException, InvocationTargetException {
    line.setMissingPointMode(MissingPointMode.RIGHT);
View Full Code Here

    LineChecker c = new LineChecker();
    c.require(-1, 180, 19, 180);
    c.require(19, 180, 39, 160);
    c.require(99, 40, 159, 40);
    c.require(159, 40, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintMissingPointBothWithMissingEnds() throws InterruptedException, InvocationTargetException {
    line.setMissingPointMode(MissingPointMode.BOTH);
View Full Code Here

    c.require(19, 180, 39, 160);
    c.require(39, 160, 99, 160);
    c.require(99, 40, 159, 40);
    c.require(159, 40, 179, 20);
    c.require(179, 20, 199, 20);
    c.check(g.getLines());
  }


  public void testRepaint() {
    add(.1, .2);
View Full Code Here

    c.require(174, 15, 174, 25);
    c.require(174, 25, 184, 25);
    c.require(184, 25, 184, 15);
    c.require(184, 15, 174, 15);

    c.check(g.getLines());
  }


  public void testPointOutlineNaN() throws InterruptedException, InvocationTargetException {
    line.setPointOutline(createSquare());
View Full Code Here

    c.require(174, 15, 174, 25);
    c.require(174, 25, 184, 25);
    c.require(184, 25, 184, 15);
    c.require(184, 15, 174, 15);

    c.check(g.getLines());
  }


  private GeneralPath createSquare() {
    GeneralPath pointShape = new GeneralPath();
View Full Code Here

    // minor tick marks
    c.require(20, 0, 20, 3);
    c.require(30, 0, 30, 3);

    c.check(g.getLines());
  }


  public void testPaintXNoStartMargin() throws InterruptedException, InvocationTargetException {
    XYAxis axis = createAxis(XYDimension.X);
View Full Code Here

    // minor tick marks
    c.require(10, 0, 10, 3);
    c.require(20, 0, 20, 3);

    c.check(g.getLines());
  }


  public void testPaintY() throws InterruptedException, InvocationTargetException {
    XYAxis axis = createAxis(XYDimension.Y);
View Full Code Here

    // minor tick marks
    c.require(196, 179, 199, 179);
    c.require(196, 169, 199, 169);

    c.check(g.getLines());
  }


  public void testPaintYNoStartMargin() throws InterruptedException, InvocationTargetException {
    XYAxis axis = createAxis(XYDimension.Y);
View Full Code Here

    // minor tick marks
    c.require(196, 189, 199, 189);
    c.require(196, 179, 199, 179);

    c.check(g.getLines());
  }


  private XYAxis createAxis(XYDimension dimension) {
    XYAxis axis = new TestAxis(dimension);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.