Package org.jgraph.graph

Examples of org.jgraph.graph.CellView.intersects()


    for (int i = (reverse) ? cells.length - 1 : 0; i >= 0
        && i < cells.length; i += (reverse) ? -1 : +1) {
      CellView view = getGraphLayoutCache().getMapping(cells[i], false);
      if (view != null
          && (!leafsOnly || view.isLeaf())
          && ((view.isLeaf() && view.intersects(this, r)) || (!view
              .isLeaf() && view.getBounds().contains(x, y))))
        return view;
    }
    return null;
  }
View Full Code Here


    for (int i = (reverse) ? cells.length - 1 : 0; i >= 0
        && i < cells.length; i += (reverse) ? -1 : +1) {
      CellView view = getGraphLayoutCache().getMapping(cells[i], false);
      if (view != null
          && (!leafsOnly || view.isLeaf())
          && ((view.isLeaf() && view.intersects(this, r)) || (!view
              .isLeaf() && view.getBounds().contains(x, y))))
        return view;
    }
    return null;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.