コード例 #1
0
  private void selectCategory(CategoryHandle category, VisualConnection node) {

    if (!node.equals(root) && node.getNode().getToCategory().equals(category))
      for (VisualConnection child : node.getChildren()) selectDown(child);
    else for (VisualConnection child : node.getChildren()) selectCategory(category, child);
  }
コード例 #2
0
 public void findCategoryBarNode(CategoryHandle category, VisualConnection node) {
   if (!node.equals(root) && node.getNode().getToCategory().equals(category)) {
     test = node;
   } else for (VisualConnection child : node.getChildren()) findCategoryBarNode(category, child);
 }
コード例 #3
0
  private void selectUp(VisualConnection connection) {

    connection.setSelected(true);

    if (!connection.equals(root)) selectUp(connection.getParent());
  }