Пример #1
0
    public ArrayList<Datum> getHoveredDatums() {
      ArrayList<Datum> toReturn = new ArrayList<Datum>();
      for (Node n : fdg.getNodes()) {
        if (n.containsPoint(mouseX, mouseY)) {
          for (Datum d : n.datumsEncapsulated) {
            toReturn.add(d);
          }
        }
      }

      return toReturn;
    }
Пример #2
0
 private int getNodeColor(Node n) {
   return n.containsPoint(mouseX, mouseY) ? MOUSED_NODE_COLOR : EMPTY_NODE_COLOR;
 }