Examples of Point


Examples of net.sf.myway.base.db.Point

    final Image img = new Image(Display.getDefault(), map.getFileName());
    final Rectangle bounds = img.getBounds();
    final CalibrationObject obj = new CalibrationObject();
    if (map.getUpperleft().equals(map.getUpperright())
      && map.getUpperleft().equals(map.getLowerleft())) {
      map.setUpperleft(new Point(25, 25));
      map.setUpperright(new Point(bounds.width - 25, 25));
      map.setLowerleft(new Point(25, bounds.height - 25));
      map.setLowerright(new Point(bounds.width - 25, bounds.height - 25));
    }
    obj.setMap(map);
    obj.setImage(img);
    setCalibrationObject(obj);
  }
View Full Code Here

Examples of nodebox.graphics.Point

        LIBRARY = JavaLibrary.ofClass("device", DeviceFunctions.class, "mousePosition", "bufferPoints", "receiveOSC", "sendOSC",
                "audioAnalysis", "audioLogAvg", "audioWave", "beatDetect");
    }

    public static Point mousePosition(NodeContext context) {
        Point p = (Point) context.getData().get("mouse.position");
        if (p != null) {
            return p;
        } else {
            return Point.ZERO;
        }
View Full Code Here

Examples of nodebox.node.polygraph.Point

        assertElements(ListFunctions.sort(ImmutableList.of(9, 3, 5), null), 3, 5, 9);
    }
   
    @Test
    public void testSortByKey() {
        Point p1 = new Point(1, 9);
        Point p2 = new Point(10, 4);
        Point p3 = new Point(4, 7);
        Point p4 = new Point(8, 6);
        assertElements(ListFunctions.sort(ImmutableList.of(p1, p2, p3, p4), "x"), p1, p3, p4, p2);
        assertElements(ListFunctions.sort(ImmutableList.of(p1, p2, p3, p4), "y"), p2, p4, p3, p1);
    }
View Full Code Here

Examples of org.andrewberman.ui.Point

    {
      PhyloTree pt = (PhyloTree) tree;
      PhyloNode h = pt.hoveredNode;
      if (h != null)
      {
        Point point = new Point(getX(h), getY(h));
        float dist = (float) point.distance(mousePt);
        float bulgedSize = BulgeUtil.bulge(dist, .7f, 30);
        if (textSize <= 12)
          h.zoomTextSize = bulgedSize;
        else
          h.zoomTextSize = 1f;
View Full Code Here

Examples of org.apache.abdera.ext.geo.Point

   
    Abdera abdera = new Abdera();
    Entry entry = abdera.newEntry();
    entry.setTitle("Middle of the Ocean");
   
    Point point = new Point(new Coordinate(37.0625,-95.677068));
    GeoHelper.addPosition(entry, point);
   
    Position[] positions = GeoHelper.getPositions(entry);
    for (Position pos : positions) {
      if (pos instanceof Point) {
        Point p = (Point) pos;
        System.out.println(p.getCoordinate());
      }
    }
   
    // By default, positions are encoded using the simple georss encoding,
    // W3C and GML encodings are also supported
View Full Code Here

Examples of org.apache.ambari.eventdb.model.TaskData.Point

          } else if ((taskAttempt.getShuffleFinishTime() / 1000.0) < (time + step) && (taskAttempt.getFinishTime() / 1000.0) >= time) {
            numReduceTasks++;
          }
        }
      }
      mapPoints.add(new Point(Math.round(time), numTasks));
      shufflePoints.add(new Point(Math.round(time), numShuffleTasks));
      reducePoints.add(new Point(Math.round(time), numReduceTasks));
    }
    points.setMapData(mapPoints);
    points.setShuffleData(shufflePoints);
    points.setReduceData(reducePoints);
  }
View Full Code Here

Examples of org.apache.batik.svggen.font.Point

        {
            int count = glyph.getPointCount();
            int offset = 0;
            boolean newContour = true;
            ArrayList<double[]> aSegments = new ArrayList<double[]>(count);
            Point lastMove = null;

            while (offset < count - 1)
            {
                Point point = glyph.getPoint(offset);

                if (point.endOfContour)
                {
                    newContour = true;
                    offset++;
                    continue;
                }

                Point point_plus1 = glyph.getPoint((offset + 1));
                Point point_plus2;

                //Implicit close, using the last move point as the next point
                if (point_plus1.endOfContour)
                    point_plus2 = lastMove;
                else if (offset <= count - 3)
View Full Code Here

Examples of org.apache.cxf.configuration.foo.Point

            "/org/apache/cxf/configuration/spring/cxf-property-editors.xml"
        });
       
        FooBean foo = (FooBean)context.getBean("complex");
       
        Point point = foo.getPosition();
        assertEquals("Unexpected value for point", 12, point.getX());
        assertEquals("Unexpected value for point", 33, point.getY());
       
        Address addr = foo.getAddress();
        assertEquals("Unexpected value for address", "Dublin", addr.getCity());
        assertEquals("Unexpected value for address", 4, addr.getZip());
        assertEquals("Unexpected value for address", "Shelbourne Rd", addr.getStreet());
View Full Code Here

Examples of org.apache.etch.examples.perf.Perf.Point

       
        final int X = 1000000000;
        final int Y = 2000000000;

        while (n-- > 0)
          server.dist( new Point( 1, 2 ), new Point( X, Y ) );

        stopServer( server );
      }
    }.run();
  }
View Full Code Here

Examples of org.apache.flex.forks.batik.svggen.font.Point

        {
            int count = glyph.getPointCount();
            int offset = 0;
            boolean newContour = true;
            ArrayList<double[]> aSegments = new ArrayList<double[]>(count);
            Point lastMove = null;

            while (offset < count - 1)
            {
                Point point = glyph.getPoint(offset);

                if (point.endOfContour)
                {
                    newContour = true;
                    offset++;
                    continue;
                }

                Point point_plus1 = glyph.getPoint((offset + 1));
                Point point_plus2;

                //Implicit close, using the last move point as the next point
                if (point_plus1.endOfContour)
                    point_plus2 = lastMove;
                else if (offset <= count - 3)
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.