Examples of removeAllPoints()


Examples of info.monitorenter.gui.chart.traces.Trace2DSimple.removeAllPoints()

                            // Read the next chunk of data from the TargetDataLine.
                            numBytesRead =  line.read(data, 0, data.length);
                            // Save this chunk of data.
                            // out.write(data, 0, numBytesRead);
                            try {
                                g.removeAllPoints();
                                int i = new AudioInputStream(line).read(data);
                                ExtensionGUI.Input = data;
                                for (int j = 0; j < numBytesRead; j++)
                                    if (j % 100 == 0)
                                        g.addPoint(j/(float)i, data[j]);
View Full Code Here

Examples of org.eclipse.draw2d.Polyline.removeAllPoints()

    }
  }

  protected void refreshFigure() {
    final Polyline polyline = (Polyline) getFigure();
    polyline.removeAllPoints();
    for (final MapNodeRef ref : ((MapObjectNodes) getModel()).getObject().getNodes()) {
      final MapNode node = ref.getNode();
      final Point p = getCoordinateSystem().toPoint(node.getPosition());
      polyline.addPoint(p);
    }
View Full Code Here

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

    private static final PrecisionPoint A_POINT = new PrecisionPoint();

    @Override
    public void route(Connection conn) {
        PointList points = conn.getPoints();
        points.removeAllPoints();

        List<Bendpoint> bendpoints = (List<Bendpoint>) getConstraint(conn);
        if (bendpoints == null)
            bendpoints = new ArrayList<Bendpoint>();
View Full Code Here

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

    }
    if (list1.size() == list2.size())
    {
      Point pt1 = new Point(), pt2 = new Point();
      PointList points = conn.getPoints();
      points.removeAllPoints();
      for (int i = 0; i < list1.size(); i++)
      {
        list1.getPoint(pt2, i);
        list2.getPoint(pt1, i);
        pt1.x = (int) Math
View Full Code Here

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

  private Map<Connection, BendConstraint> constraints = Maps.newHashMap();

  @Override
  public void route(final Connection connection) {
    PointList points = connection.getPoints();
    points.removeAllPoints();
    Point startPoint = getStartPoint(connection);
    connection.translateToRelative(startPoint);
    points.addPoint(startPoint);
    Point endPoint = getEndPoint(connection);
    connection.translateToRelative(endPoint);
View Full Code Here

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

  private static double MAX_CONTROLPT_DIST = 36;
 
  public void route(Connection conn)
  {
        PointList points = conn.getPoints();
        points.removeAllPoints();
   
    Point ref1, ref2;
    ref1 = conn.getTargetAnchor().getReferencePoint();
    ref2 = conn.getSourceAnchor().getReferencePoint();
        PrecisionPoint startPoint = new PrecisionPoint(conn.getSourceAnchor().getLocation(ref1));
View Full Code Here

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

      return true;
    }
    if (list1.size() == list2.size()) {
      Point pt1 = new Point(), pt2 = new Point();
      PointList points = conn.getPoints();
      points.removeAllPoints();
      for (int i = 0; i < list1.size(); i++) {
        list1.getPoint(pt2, i);
        list2.getPoint(pt1, i);
        pt1.x = (int) Math.round(pt1.x * progress + (1 - progress) * pt2.x);
        pt1.y = (int) Math.round(pt1.y * progress + (1 - progress) * pt2.y);
 
View Full Code Here

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

            return true;
        }
        if (list1.size() == list2.size()) {
            Point pt1 = new Point(), pt2 = new Point();
            PointList points = conn.getPoints();
            points.removeAllPoints();
            for (int i = 0; i < list1.size(); i++) {
                list1.getPoint(pt2, i);
                list2.getPoint(pt1, i);
                pt1.x = (int) Math.round(pt1.x * progress + (1 - progress)
                        * pt2.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.