示例#1
0
  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;
      }
    }
  }
示例#2
0
 public Mouse(FeedManager fM) {
   feedManager = fM;
   targetPoint = fM.getTargetPoint();
 }
示例#3
0
 @Override
 protected String doInBackground(String... params) {
   return FeedManager.getFeed(params[0]);
 }