Package java.awt

Examples of java.awt.Point.clone()


            pointVec.add(sPoint1.clone());
            pointVec.add(ePoint1.clone());
           
            if (numArrows > 1) {
                pointVec.add(sPoint2.clone());
                pointVec.add(ePoint2.clone());
            }
           
        }

        Point[] ret = new Point[pointVec.size()];
View Full Code Here


            public Fixation getFixation() {
                return new Fixation() {

                    @Override
                    public Point getCenter() {
                        return (Point) center.clone();
                    }

                    @Override
                    public List<EyeTrackingEvent> getTrackingEvents() {
                        return Collections.unmodifiableList(myTrackingEvents);
View Full Code Here

        return new TrackingEventWrapper(event) {

            @Override
            public Point getGazeCenter() {
                return (Point) result.clone();
            }
        };
    }

    /**
 
View Full Code Here

            /* (non-Javadoc)
             * @see de.dfki.km.augmentedtext.services.trackingdevices.util.wrapper.TrackingEventWrapper#getGazeCenter()
             */
            @Override
            public Point getGazeCenter() {
                return (Point) rval.clone();
            }
        };
    }

    /**
 
View Full Code Here

        return new TrackingEventWrapper(event) {

            @Override
            public Point getGazeCenter() {
                return (Point) rval.clone();
            }
        };
    }

    /**
 
View Full Code Here

    propertySupport.removePropertyChangeListener(propertyName, listener);
  }
 
  public static Point getLocation(Window win) {
    Point ret = frameLocations.get(win);
    return ret == null ? null : (Point) ret.clone();
  }
}
View Full Code Here

            // Cloned via Drag and Drop
            if (nested != null) {
              if (p != null && bounds != null) {
                Point2D insert = graph.fromScreen(graph
                    .snap((Point2D) p.clone()));
                dx = insert.getX() - bounds.getX();
                dy = insert.getY() - bounds.getY();

                // Cloned via Clipboard
              } else {
View Full Code Here

        return;
      }

      Point2D zero = new Point(20, 0);
      while (overlapping.length > 0) {
        Point2D last = (Point2D) zero.clone();
        for (Object element : overlapping) {
          if (element instanceof JmtCell && element != cell && inGroup) {
            Rectangle2D b2 = GraphConstants.getBounds(((JmtCell) element).getAttributes());
            if (b2.intersects(bounds)) {
              if (b2.getMaxX() > last.getX()) {
View Full Code Here

        propertySupport.removePropertyChangeListener(propertyName, listener);
    }

    public static Point getLocation(Window win) {
        Point ret = frameLocations.get(win);
        return ret == null ? null : (Point) ret.clone();
    }
}
View Full Code Here

        rval.add(new TaskSolver<Data>("clone.plain", new F1<Data, Object>() {
            @Override
            public Object f(Data x) {
                Point p = new Point();
                for(int i = 0; i<1000000; i++) {
                    p.x += ((Point) p.clone()).x;
                }
                return Integer.valueOf(p.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.