Examples of addPoint()


Examples of org.eclipse.draw2d.geometry.PointList.addPoint()

      PolylineDecoration df = new PolylineDecoration();
      df.setLocation(new Point(getMapMode().DPtoLP(-2), getMapMode()
          .DPtoLP(0)));
      PointList pl = new PointList();
      pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(-2));
      pl.addPoint(getMapMode().DPtoLP(-2), getMapMode().DPtoLP(2));
      df.setTemplate(pl);
      df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
      return df;
    }
View Full Code Here

Examples of org.gdal.ogr.Geometry.AddPoint()

                Geometry oRing = new Geometry(ogrConstants.wkbLinearRing);
                double xmin = new Double(args[++iArg]).doubleValue();
                double ymin = new Double(args[++iArg]).doubleValue();
                double xmax = new Double(args[++iArg]).doubleValue();
                double ymax = new Double(args[++iArg]).doubleValue();
                oRing.AddPoint(xmin, ymin);
                oRing.AddPoint(xmin, ymax);
                oRing.AddPoint(xmax, ymax);
                oRing.AddPoint(xmax, ymin);
                oRing.AddPoint(xmin, ymin);
               
View Full Code Here

Examples of org.locationtech.udig.tools.edit.support.EditBlackboard.addPoint()

        EditGeom geom = handler.getCurrentGeom();
        PrimitiveShape hole = geom.newHole();
        EditBlackboard bb = handler.getEditBlackboard();

        bb.addPoint(5, 5, hole);
        bb.addPoint(25, 5, hole);
        bb.addPoint(25, 25, hole);
        bb.addPoint(5, 25, hole);
        bb.addPoint(5, 5, hole);
View Full Code Here

Examples of org.newdawn.slick.geom.Polygon.addPoint()

    Point2d vecMaxViewFieldPoint = VecMathUtils.getScaledVectorPoint(vecMaxViewField, lightSensorPoint, 300);
    // drawLine(lightSensorPoint, vecMinViewFieldPoint, g);
    // drawLine(lightSensorPoint, vecMaxViewFieldPoint, g);

    Polygon pol = new Polygon();
    pol.addPoint((float) lightSensorPoint.getX(), (float) lightSensorPoint.getY());
    pol.addPoint((float) vecMaxViewFieldPoint.getX(), (float) vecMaxViewFieldPoint.getY());
    pol.addPoint((float) vecMinViewFieldPoint.getX(), (float) vecMinViewFieldPoint.getY());

    // GradientFill fill = new GradientFill((float) lightSensorPoint.getX(),
    // (float) lightSensorPoint.getY(), Color.lightGray,
View Full Code Here

Examples of org.onebusaway.geospatial.grid.TimedGridFactory.addPoint()

          stopLon, remainingWalkingDistance);
      gridFactory.addBounds(bounds);

      long remainingWalkingTime = (long) (remainingWalkingDistance / walkingVelocity);
      if (remainingWalkingTime > 0)
        timedGridFactory.addPoint(stopLat, stopLon, duration,
            remainingWalkingTime);
    }

    MinTransitTimeResult result = new MinTransitTimeResult();
    result.setComplete(true);
View Full Code Here

Examples of org.onebusaway.geospatial.model.CoordinateBounds.addPoint()

      for( RouteCollectionEntry routeCollection : agency.getRouteCollections()) {
        for( RouteEntry route : routeCollection.getChildren() ) {
          for (TripEntry trip : route.getTrips() ) {
            for( StopTimeEntry stopTime : trip.getStopTimes() ) {
              StopEntry stop = stopTime.getStop();
              bounds.addPoint(stop.getStopLat(), stop.getStopLon());
            }
          }
        }
      }
View Full Code Here

Examples of org.onebusaway.transit_data_federation.model.ShapePointsFactory.addPoint()

    Mockito.when(transitGraphDao.getAllTrips()).thenReturn(
        Arrays.asList((TripEntry) tripA, tripB));

    ShapePointsFactory factory = new ShapePointsFactory();
    factory.addPoint(47.652300128129454, -122.30622018270873);
    factory.addPoint(47.653181844549394, -122.30523312979125);
    factory.addPoint(47.654265901710744, -122.30511511259459);
    ShapePoints shapeA = factory.create();

    factory = new ShapePointsFactory();
View Full Code Here

Examples of org.photovault.image.ColorCurve.addPoint()

    private void showCurve( int chan ) {
        currentColorCurve = chan;
        if ( colorCurves[chan] == null ) {
            // The curve is not present in current profile
            ColorCurve c = colorCurves[chan] = new ColorCurve();
            c.addPoint( 0.0, 0.0 );
            c.addPoint( 1.0, 1.0 );
        }
        colorCurvePanel1.setCurve( colorCurves[chan], curveColors[chan] );
        colorCurvePanel1.clearReferenceCurves();
        if ( refCurves[chan] != null ) {
View Full Code Here

Examples of org.woped.core.model.ArcModel.addPoint()

          IntPair ip = (IntPair) currentArcMap.getArcPoints().get(k);
          point = new Point2D.Double(ip.getX1() + deltaX, ip.getX2()
              + deltaY);

          tempArc.addPoint(point);
        }

        toSelectElements.add(tempArc);
      }
    }
View Full Code Here

Examples of ptolemy.plot.Plot.addPoint()

            plt.setYRange(-1.0, 1.0);

            double[] pltdata = _sound.toDouble(0);

            if (pltdata != null) {
                plt.addPoint(0, 0, pltdata[0], false);

                for (int i = 1; i < pltdata.length; i++) {
                    plt.addPoint(0, i / 8000.0, pltdata[i], true);
                }
            }
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.