Package plotter

Examples of plotter.LineChecker.check()


    c.require(49, 0, 49, 200);
    c.require(0, 150, 200, 150);
    c.require(0, 100, 200, 100);
    c.require(0, 50, 200, 50);
    c.require(0, 0, 200, 0);
    c.check(g.getLines());
  }


  public void testPaintClip() throws InterruptedException, InvocationTargetException {
    CountingGraphics g = paint(new Rectangle(25, 25, 50, 2));
View Full Code Here


  public void testPaintClip() throws InterruptedException, InvocationTargetException {
    CountingGraphics g = paint(new Rectangle(25, 25, 50, 2));
    LineChecker c = new LineChecker();
    c.require(49, 24, 49, 27);
    c.check(g.getLines());
  }


  public void testPaintClipCustomStroke() throws InterruptedException, InvocationTargetException {
    grid.setStroke(new BasicStroke(1, 0, 0, 1, new float[] { 5, 5 }, 0));
View Full Code Here

  public void testPaintClipCustomStroke() throws InterruptedException, InvocationTargetException {
    grid.setStroke(new BasicStroke(1, 0, 0, 1, new float[] { 5, 5 }, 0));
    CountingGraphics g = paint(new Rectangle(25, 25, 50, 2));
    LineChecker c = new LineChecker();
    c.require(49, 20, 49, 27);
    c.check(g.getLines());
  }


  public void testPaintClipNonBasicStroke() throws InterruptedException, InvocationTargetException {
    grid.setStroke(new Stroke() {
View Full Code Here

      }
    });
    CountingGraphics g = paint(new Rectangle(25, 25, 50, 2));
    LineChecker c = new LineChecker();
    c.require(49, 0, 49, 199);
    c.check(g.getLines());
  }


  private CountingGraphics paint() throws InterruptedException, InvocationTargetException {
    return paint(null);
View Full Code Here

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintInverted() throws InterruptedException, InvocationTargetException {
    plot.getYAxis().setStart(1);
View Full Code Here

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(179, 180, 19, 20);
    c.check(g.getLines());
  }


  public void testPaintLeadingNaN() throws InterruptedException, InvocationTargetException {
    add(.05, Double.NaN);
View Full Code Here

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintTrailingNaN() throws InterruptedException, InvocationTargetException {
    add(.1, .1);
View Full Code Here

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintMiddleNaN() throws InterruptedException, InvocationTargetException {
    add(.1, .1);
View Full Code Here

    assertEquals(4, g.getPointCount());

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


  public void testPaintSimpleStep() throws InterruptedException, InvocationTargetException {
    line.setLineMode(LineMode.STEP_YX);
View Full Code Here

    assertEquals(3, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(19, 180, 19, 20);
    c.require(19, 20, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintLeadingNaNStep() throws InterruptedException, InvocationTargetException {
    line.setLineMode(LineMode.STEP_YX);
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.