Package plotter

Examples of plotter.LineChecker


    add(.8, .8);
    add(.9, .9);
    CountingGraphics g = paint();
    assertEquals(6, g.getPointCount());

    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());
  }
View Full Code Here


    add(.9, .9);
    add(1, Double.NaN);
    CountingGraphics g = paint();
    assertEquals(6, g.getPointCount());

    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());
  }
View Full Code Here

    add(.9, .9);
    add(1, Double.NaN);
    CountingGraphics g = paint();
    assertEquals(6, g.getPointCount());

    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());
  }
View Full Code Here

    add(.9, .9);
    add(1, Double.NaN);
    CountingGraphics g = paint();
    assertEquals(8, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(-1, 180, 19, 180);
    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());
  }
View Full Code Here

    add(.9, .9);
    CountingGraphics g = paint();
    assertEquals(12, g.getPointCount());
    assertEquals(2, g.getShapeCount());

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);

    // Point 1
    c.require(14, 175, 14, 185);
    c.require(14, 185, 24, 185);
    c.require(24, 185, 24, 175);
    c.require(24, 175, 14, 175);

    // Point 2
    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());
  }
View Full Code Here

    add(.9, .9);
    CountingGraphics g = paint();
    assertEquals(10, g.getPointCount());
    assertEquals(2, g.getShapeCount());

    LineChecker c = new LineChecker();

    // Point 1
    c.require(14, 175, 14, 185);
    c.require(14, 185, 24, 185);
    c.require(24, 185, 24, 175);
    c.require(24, 175, 14, 175);

    // Point 3
    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());
  }
View Full Code Here

    XYAxis axis = createAxis(XYDimension.X);
    axis.setStartMargin(10);
    CountingGraphics g = paint(axis);
    assertEquals(12, g.getPointCount());

    LineChecker c = new LineChecker();

    // main line
    c.require(10, 0, 199, 0);

    // major tick marks
    c.require(10, 0, 10, 5);
    c.require(110, 0, 110, 5);
    c.require(210, 0, 210, 5);

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

    c.check(g.getLines());
  }
View Full Code Here

    XYAxis axis = createAxis(XYDimension.X);
    axis.setStartMargin(0);
    CountingGraphics g = paint(axis);
    assertEquals(12, g.getPointCount());

    LineChecker c = new LineChecker();

    // main line
    c.require(0, 0, 199, 0);

    // major tick marks
    c.require(0, 0, 0, 5);
    c.require(100, 0, 100, 5);
    c.require(200, 0, 200, 5);

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

    c.check(g.getLines());
  }
View Full Code Here

    XYAxis axis = createAxis(XYDimension.Y);
    axis.setStartMargin(10);
    CountingGraphics g = paint(axis);
    assertEquals(12, g.getPointCount());

    LineChecker c = new LineChecker();

    // main line
    c.require(199, 189, 199, 0);

    // major tick marks
    c.require(194, 189, 199, 189);
    c.require(194, 89, 199, 89);
    c.require(194, -11, 199, -11);

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

    c.check(g.getLines());
  }
View Full Code Here

    XYAxis axis = createAxis(XYDimension.Y);
    axis.setStartMargin(0);
    CountingGraphics g = paint(axis);
    assertEquals(12, g.getPointCount());

    LineChecker c = new LineChecker();

    // main line
    c.require(199, 199, 199, 0);

    // major tick marks
    c.require(194, 199, 199, 199);
    c.require(194, 99, 199, 99);
    c.require(194, -1, 199, -1);

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

    c.check(g.getLines());
  }
View Full Code Here

TOP

Related Classes of plotter.LineChecker

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.