Package shapes

Examples of shapes.Line2DExt


    color = new Color(source.color.getRGB());

    start = source.start;
    end = source.end;
   
    shape = new Line2DExt(source.shape);
    from = new Point2DExt(source.from);

    vehicleSelection = new TypeSelection<VehicleType>(source.vehicleSelection);

    SetDependencies();
View Full Code Here


  public void setStart(Edge start) {
    this.start = start;
  }

  public void setTo(Point2D.Double to) {
    shape = new Line2DExt(from, to);
  }
View Full Code Here

    if (isSelected) {
      g.setColor(Color.GREEN);
    }
   
    // Draw the shape
    Line2DExt l1= new Line2DExt(new Point2DExt(location.x-10,location.y-10),new Point2DExt(location.x+10,location.y+10));
    Line2DExt l2= new Line2DExt(new Point2DExt(location.x-10,location.y+10),new Point2DExt(location.x+10,location.y-10));
   
    Stroke previousStroke = g.getStroke();
   
    g.setStroke(new BasicStroke(6,BasicStroke.CAP_ROUND,BasicStroke.JOIN_MITER));
    g.draw(l1);
View Full Code Here

        lineStart.y = (previousLanePoints.get(dp).y + previousLanePoints.get(dp + 1).y) / 2;

        lineEnd.x = (nextLanePoints.get(dp).x + nextLanePoints.get(dp + 1).x) / 2;
        lineEnd.y = (nextLanePoints.get(dp).y + nextLanePoints.get(dp + 1).y) / 2;

        dividers.add(new Line2DExt(lineStart, lineEnd));
      }

      // Find the center of the previous and next points
      previousCenter = PointsCenter(previousLanePoints);
      nextCenter = PointsCenter(nextLanePoints);
View Full Code Here

   
    name = "Area Flow " + String.valueOf(increment++);

    startArea = new Ellipse2DExt();
    endArea = new Ellipse2DExt();
    arrow = new Line2DExt();

    // Assign a possibility of 1 to the default vehicle type
    vehicleSelection = new TypeSelection<VehicleType>();
    vehicleSelection.add(new Pair<VehicleType, Float>(Project.getCurrentlyLoadedProject().getDefaultVehicleType(), 1.f));
  }
View Full Code Here

    endArea = new Ellipse2DExt(source.endArea);
    endAreaCenter = new Point2DExt(source.endAreaCenter);
    endAreaRadiusX = source.endAreaRadiusX;
    endAreaRadiusY = source.endAreaRadiusY;
   
    arrow = new Line2DExt(source.arrow);

    vehicleSelection = new TypeSelection<VehicleType>(source.vehicleSelection);
  }
View Full Code Here

TOP

Related Classes of shapes.Line2DExt

Copyright © 2018 www.massapicom. 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.