Examples of Polyline


Examples of DisplayProject.controls.PolyLine

        }
        return qq_poly;
    }

    public void setqq_poly(PolyLine value) {
        PolyLine oldValue = qq_poly;
        qq_poly = value;
        this.qq_Listeners.firePropertyChange("qq_poly", oldValue, value);
    }
View Full Code Here

Examples of 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

Examples of DisplayProject.controls.PolyLine

        l.setFocusable(false);
        l.setOpaque(false);
        return l;
    }
    public static PolyLine newPolyLine(int x, int y){
        PolyLine l = new PolyLine();
        l.setFocusable(false);
        l.setOpaque(false);
        l.setLocation(x, y);
        return l;
    }
View Full Code Here

Examples of 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

Examples of DisplayProject.controls.PolyLine

        l.setFocusable(false);
        l.setOpaque(false);
        return l;
    }
    public static PolyLine newPolyLine(int x, int y){
        PolyLine l = new PolyLine();
        l.setFocusable(false);
        l.setOpaque(false);
        l.setLocation(x, y);
        return l;
    }
View Full Code Here

Examples of ch.epfl.lbd.database.spatial.PolyLine

      else if(value.getClass() == Polygon.class){
        //TODO: insert statements for polygons
      }
     
      else if(value.getClass() == PolyLine.class){
        PolyLine val = (PolyLine)value;
        String ptList = "";
        for(LatLngPoint pt : val.getPoints())ptList += pt.getLat()+" "+pt.getLng()+",";
        ptList = ptList.substring(0, ptList.length()-1);
        statement = "GeometryFromText('LINESTRING("+ptList+")',4030)";
      }
     
      else if(value.getClass() == Line.class){
View Full Code Here

Examples of ch.epfl.lbd.database.spatial.PolyLine

 
  private GPSPoint first;
 
  public Move(){
    super();
    geom = new PolyLine();

  }
View Full Code Here

Examples of ch.epfl.lbd.database.spatial.PolyLine

    if(other.getClass().equals(Move.class)){
      if(geom == null){
        LatLngPoint[] points = new LatLngPoint[2];
        points[0] = first;
        points[1] = (GPSPoint)((Move)other).first;
        geom = new PolyLine(points);
      }
      LatLngPoint point = (LatLngPoint)((Move)other).first;
      ((PolyLine)this.geom).addPoint(point);

      return true;
View Full Code Here

Examples of com.badlogic.gdx.math.Polyline

          for (int i = 0; i < points.length; i++) {
            String[] point = points[i].split(",");
            vertices[i * 2] = Float.parseFloat(point[0]) * scaleX;
            vertices[i * 2 + 1] = -Float.parseFloat(point[1]) * scaleY;
          }
          Polyline polyline = new Polyline(vertices);
          polyline.setPosition(x, y);
          object = new PolylineMapObject(polyline);
        } else if ((child = element.getChildByName("ellipse")) != null) {
          object = new EllipseMapObject(x, y - height, width, height);
        }
      }
View Full Code Here

Examples of com.esri.core.geometry.Polyline

      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    try {
      Polyline mPolyline = new Polyline();

      int arg_idx=0;
      for (List<DoubleWritable> multipath : multipaths)
        {
          if (multipath.size() %2 != 0){
            LogUtils.Log_VariableArgumentLengthXY(LOG, arg_idx);
            return null;
          }

          mPolyline.startPath(multipath.get(0).get(), multipath.get(1).get());

          for (int i=2;i<multipath.size();i+=2){
            mPolyline.lineTo(multipath.get(i).get(), multipath.get(i+1).get());
          }
          arg_idx++;
        }

      return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(mPolyline, null, 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.