Examples of Polyline


Examples of com.google.gwt.maps.client.overlay.Polyline

  private void createPolyline() {
    PolyStyleOptions style = PolyStyleOptions.newInstance(color, weight,
        opacity);

    final Polyline poly = new Polyline(new LatLng[0]);
    lastPolyline = poly;
    map.addOverlay(poly);
    poly.setDrawingEnabled();
    poly.setStrokeStyle(style);
    message2.setText("");
    poly.addPolylineLineUpdatedHandler(new PolylineLineUpdatedHandler() {

      public void onUpdate(PolylineLineUpdatedEvent event) {
        message2.setText(message2.getText() + " : Line Updated");
      }
    });

    poly.addPolylineCancelLineHandler(new PolylineCancelLineHandler() {

      public void onCancel(PolylineCancelLineEvent event) {
        message2.setText(message2.getText() + " : Line Canceled");
      }
    });

    poly.addPolylineEndLineHandler(new PolylineEndLineHandler() {

      public void onEnd(PolylineEndLineEvent event) {
        message2.setText(message2.getText() + " : Line End at "
            + event.getLatLng() + ".  Bounds="
            + poly.getBounds().getNorthEast() + ","
            + poly.getBounds().getSouthWest() + " length=" + poly.getLength()
            + "m");
      }
    });
  }
View Full Code Here

Examples of com.google.gwt.maps.client.overlay.Polyline

  public void onShow() {
    map.addOverlay(marker);
    if (firstTime) {
      computeAtlantaTriangle();
      polygon = new Polygon(ATLANTA_TRIANGLE1);
      polyline = new Polyline(ATLANTA_TRIANGLE2);
      firstTime = false;
    }
  }
View Full Code Here

Examples of com.google.gwt.maps.client.overlay.Polyline

    String color = polyUIDL.getStringAttribute("color");
    int weight = polyUIDL.getIntAttribute("weight");
    double opacity = polyUIDL.getDoubleAttribute("opacity");
    boolean clickable = polyUIDL.getBooleanAttribute("clickable");

    return new Polyline(points, color, weight, opacity,
        PolylineOptions.newInstance(clickable, false));
  }
View Full Code Here

Examples of gov.nasa.worldwind.render.Polyline

      if (this.measureShapeType.equals(SHAPE_LINE) || this.measureShapeType.equals(SHAPE_PATH))
      {
         if (this.positions.size() > 1 && this.line == null)
         {
            // Init polyline
            this.line = new Polyline();
            this.line.setFollowTerrain(true);
            this.line.setLineWidth(this.getLineWidth());
            this.line.setColor(this.getLineColor());
            this.line.setPathType(polylinePathTypeFromKey(this.getPathType()));
View Full Code Here

Examples of gov.nasa.worldwind.render.Polyline

    @Override
    public void _createNewEntry()
    {
       ((GfrEditorObjShpSegWiseTool) super._epe).setArmed(true);
      
       Polyline polygon = GfrFactoryObjShpSegWiseYes.s_getInstance().create(
                super._glcWwd,
                super.isResizeNewShapesToViewport());
       
        /*polygon.setColor(Color.yellow);
        polygon.setLineWidth(2d);
        polygon.setFollowTerrain(true);*/
       
       
        ArrayList<Position> alt = (ArrayList<Position>) polygon.getPositions();
                     
        ((GfrEditorObjShpSegWiseTool) super._epe).addControlPoint(alt.get(0));
        ((GfrEditorObjShpSegWiseTool) super._epe).addControlPoint(alt.get(1));
       
        ((GfrEditorObjShpSegWiseTool) super._epe).setArmed(false);
View Full Code Here

Examples of gov.nasa.worldwind.render.Polyline

   


    public Polyline create(WorldWindow wwd, boolean blnFitObjectToViewport)
    {
        Polyline poly = new Polyline();
        //poly.setAttributes(GfrFactoryObjShpPlnAbs._s_getDefaultAttributes());
        poly.setValue(AVKey.DISPLAY_NAME, GfrFactoryObjShpSegWiseYes._s_getNextName_(toString()));
        this._initializePolygon_(wwd, poly, blnFitObjectToViewport);

        return poly;
    }
View Full Code Here

Examples of gov.nasa.worldwind.render.Polyline

      {

         public void actionPerformed(ActionEvent actionEvent)
         {
            shapeCombo.setSelectedIndex(1);
            measureTool.setMeasureShape(new Polyline(PATH));
         }

      });
      presetPanel.add(bt);
View Full Code Here

Examples of gps.garmin.img.structure.data.Polyline

        seek(treFatBlock.getSubfileOffset() + treHeader.getPolylineOverviewSectionOffset());
        int numberOfPolylines =
            treHeader.getPolylineOverviewSectionLength() /
            treHeader.getPolylineOverviewRecordsSize();
        for (int i = 0; i < numberOfPolylines; i++) {
            Polyline polyline = new Polyline();
            polyline.setNumber(i + 1);

            // Polyline type
            nextByte()// fixme, siempre es por default? no se usa el byte?
            polyline.setType(PolylineType.DEFAULT);

            // Maximum level
            polyline.setMaximumLevelWherePresent(nextByte());

            if (treHeader.getPolylineOverviewRecordsSize() == 3) {
                skipBytes(1);
            }
View Full Code Here

Examples of javafx.scene.shape.Polyline

                .scaleX(0.6)
                .scaleY(0.6)
                .image(PrezImages.HEADER_LOGO.get())
                .build();

        final Polyline pl = PolylineBuilder.create()
                .strokeWidth(3)
                .stroke(Color.BLACK)
                .points(684.0, 12.0, 946.0, 12.0, 946.0, 107.0)
                .build();
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.controls.PolyLine

     * Draws a polyline.
     */
    public static PolyLine drawPolyLine(JPanel form, Array_Of_DataPoint<DataPoint> points,
            int penColor, int lineStyle, int lineWeight) {
        setForm(form);
        PolyLine line = new PolyLine();
        line.setPointArray(points);
        line.setLineStyle(lineStyle);
        line.setLineWeight(lineWeight);
        line.setVisible(true);
        DataPoint lastPoint = points.get(points.size()-1);
        ColourChange.setForeground(line, penColor);
        Parent.set(line, form);
        processActions();
        setXPen(form, lastPoint.X);
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.