public Paint transform(E e) {
   if (pi.isPicked(e)) {
     return picked_paint;
   } else {
     return draw_paint;
   }
 }
Beispiel #2
0
 @Override
 public Paint transform(V arg0) {
   if (pi.isPicked(arg0)) {
     return Color.yellow;
   } else if (kids.contains(arg0)) {
     return Color.green;
   } else {
     return Color.red;
   }
 }