public void mouseClicked(MouseEvent e) { Point mouseLoc = new Point(e.getX(), e.getY()); for (TrackedFace cur : feedManager.getTrackedFaces()) { cur.setSelection(false); } for (TrackedFace cur : feedManager.getTrackedFaces()) { if (cur.isInside(mouseLoc)) { cur.setSelection(true); break; } } }
public Mouse(FeedManager fM) { feedManager = fM; targetPoint = fM.getTargetPoint(); }
@Override protected String doInBackground(String... params) { return FeedManager.getFeed(params[0]); }