@Override
 public void mouseMoved(MouseEvent e) {
   if (isAboveLink(e) || isAboveRoots(e)) {
     setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
   } else {
     performAction(e, GraphAction.Type.MOUSE_OVER);
   }
 }
 @Override
 public void mouseMoved(MouseEvent e) {
   Component component = e.getComponent();
   if (component != null) {
     if (getRootColumnOrNull(e) != null) {
       component.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
     } else {
       component.setCursor(null);
     }
   }
 }
示例#3
0
 @Override
 public void mouseMoved(MouseEvent e) {
   if (isAboveLink(e)) {
     setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
   } else {
     performAction(
         e,
         new PairFunction<Integer, Point, GraphAction>() {
           @Override
           public GraphAction fun(Integer row, Point point) {
             return new MouseOverAction(row, point);
           }
         });
   }
 }