Examples of area()


Examples of org.jrobin.graph.RrdGraphDef.area()

      rrdGraphDef.setTitle(rrdDef.getDsDefs()[dsIndex].dump() + " " +
          rrdDef.getArcDefs()[arcIndex].dump());
      LinearInterpolator linearInterpolator = new LinearInterpolator(timestamps, values);
      linearInterpolator.setInterpolationMethod(LinearInterpolator.INTERPOLATE_RIGHT);
      rrdGraphDef.datasource(dsName, linearInterpolator);
      rrdGraphDef.area(dsName, color, dsName + "\\r");
      rrdGraphDef.comment("START: " + new Date(t1 * 1000L) + "\\r");
      rrdGraphDef.comment("END: " + new Date(t2 * 1000L) + "\\r");
      int width = graphPanel.getWidth(), height = graphPanel.getHeight();
      rrdGraphDef.setWidth(width + deltaWidth);
      rrdGraphDef.setHeight(height + deltaHeight);
View Full Code Here

Examples of org.jrobin.graph.RrdGraphDef.area()

      rrdGraphDef.setTitle(rrdDef.getDsDefs()[dsIndex].dump() + " " +
          rrdDef.getArcDefs()[arcIndex].dump());
      LinearInterpolator linearInterpolator = new LinearInterpolator(timestamps, values);
      linearInterpolator.setInterpolationMethod(LinearInterpolator.INTERPOLATE_RIGHT);
      rrdGraphDef.datasource(dsName, linearInterpolator);
      rrdGraphDef.area(dsName, color, dsName + "\\r");
      rrdGraphDef.comment("START: " + new Date(t1 * 1000L) + "\\r");
      rrdGraphDef.comment("END: " + new Date(t2 * 1000L) + "\\r");
      int width = graphPanel.getWidth(), height = graphPanel.getHeight();
      rrdGraphDef.setWidth(width + deltaWidth);
      rrdGraphDef.setHeight(height + deltaHeight);
View Full Code Here

Examples of org.openstreetmap.josm.plugins.continuosDownload.BoxStrategy.Partition.area()

    @Test
    public void test() {
        Partition a = new Partition();
        a = a.add(new Box(0, 0, 1, 1), 0);
        assertEquals(1, a.box.size());
        assertEquals(1, a.area(), 0.0000001);
        assertEquals(1, a.enclosingArea, 0.0000001);

        Partition b = a.add(new Box(1, 1, 2, 2), 0);
        assertEquals(1, b.box.size());
        assertEquals(4, b.area(), 0.0000001);
View Full Code Here

Examples of org.openstreetmap.josm.plugins.continuosDownload.BoxStrategy.Partition.area()

        assertEquals(1, a.area(), 0.0000001);
        assertEquals(1, a.enclosingArea, 0.0000001);

        Partition b = a.add(new Box(1, 1, 2, 2), 0);
        assertEquals(1, b.box.size());
        assertEquals(4, b.area(), 0.0000001);
        assertEquals(2, b.enclosingArea, 0.0000001);

        Partition c = a.add(new Box(1, 1, 2, 2), 1);
        assertEquals(2, c.box.size());
        assertEquals(2, c.area(), 0.0000001);
View Full Code Here

Examples of org.openstreetmap.josm.plugins.continuosDownload.BoxStrategy.Partition.area()

        assertEquals(4, b.area(), 0.0000001);
        assertEquals(2, b.enclosingArea, 0.0000001);

        Partition c = a.add(new Box(1, 1, 2, 2), 1);
        assertEquals(2, c.box.size());
        assertEquals(2, c.area(), 0.0000001);
        assertEquals(2, c.enclosingArea, 0.0000001);

        assertTrue(b.compareTo(c) > 0);
    }
View Full Code Here

Examples of org.opentripplanner.visibility.VLPolygon.area()

    }

    public void testConcavePolygon() {
        VLPolygon poly = poly(1, 1, 5, 1, 5, 5, 3, 5, 3, 4, 4, 4, 4, 2, 2, 2, 2, 3, 1, 3);

        if (poly.area() < 0) {
            poly.reverse();
        }
        Environment environment = new Environment(Arrays.asList(poly));
        environment.enforce_standard_form();
View Full Code Here

Examples of org.opentripplanner.visibility.VLPolygon.area()

    private VLPolygon makeStandardizedVLPolygon(List<VLPoint> vertices, List<OSMNode> nodes,
            boolean reversed) {
        VLPolygon polygon = new VLPolygon(vertices);

        if ((reversed && polygon.area() > 0) || (!reversed && polygon.area() < 0)) {
            polygon.reverse();
            // need to reverse nodes as well
            reversePolygonOfOSMNodes(nodes);
        }
View Full Code Here

Examples of org.opentripplanner.visibility.VLPolygon.area()

    private VLPolygon makeStandardizedVLPolygon(List<VLPoint> vertices, List<OSMNode> nodes,
            boolean reversed) {
        VLPolygon polygon = new VLPolygon(vertices);

        if ((reversed && polygon.area() > 0) || (!reversed && polygon.area() < 0)) {
            polygon.reverse();
            // need to reverse nodes as well
            reversePolygonOfOSMNodes(nodes);
        }
View Full Code Here

Examples of org.rrd4j.graph.RrdGraphDef.area()

    gDef.datasource("Used", fileName, "Used", AVERAGE);
    gDef.datasource("Committed", fileName, "Committed", AVERAGE);
    gDef.datasource("Max", fileName, "Max", AVERAGE);

    gDef.line("Init", Color.GREEN, "Init memory");
    gDef.area("Max", Color.RED, "Max memory\n");
    gDef.area("Committed", Color.gray, "Committed memory");
    gDef.area("Used", Color.GREEN, "Used memory");

    gDef.gprint("Used", MAX, "used-max = %.3f%s");
    gDef.gprint("Committed", MAX, "committed-max = %.3f%S\\r");
View Full Code Here

Examples of org.rrd4j.graph.RrdGraphDef.area()

    gDef.datasource("Committed", fileName, "Committed", AVERAGE);
    gDef.datasource("Max", fileName, "Max", AVERAGE);

    gDef.line("Init", Color.GREEN, "Init memory");
    gDef.area("Max", Color.RED, "Max memory\n");
    gDef.area("Committed", Color.gray, "Committed memory");
    gDef.area("Used", Color.GREEN, "Used memory");

    gDef.gprint("Used", MAX, "used-max = %.3f%s");
    gDef.gprint("Committed", MAX, "committed-max = %.3f%S\\r");
    gDef.gprint("Max", MAX, "max = %.3f%S");
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.