com.mxgraph.view.mxGraph.getCellBounds()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中com.mxgraph.view.mxGraph.getCellBounds()方法的一些代码示例,展示了mxGraph.getCellBounds()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getCellBounds()方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getCellBounds

mxGraph.getCellBounds介绍

[英]Returns the bounds of the given cell.
[中]返回给定单元格的边界。

代码示例

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Returns the bounds of the given cell.
  3. */
  4. public mxRectangle getCellBounds(Object cell)
  5. {
  6. return getCellBounds(cell, false);
  7. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Returns the bounds of the given cell including all connected edges
  3. * if includeEdge is true.
  4. */
  5. public mxRectangle getCellBounds(Object cell, boolean includeEdges,
  6. boolean includeDescendants)
  7. {
  8. return getCellBounds(cell, includeEdges, includeDescendants, false);
  9. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Returns the bounds of the given cell including all connected edges
  3. * if includeEdge is true.
  4. */
  5. public mxRectangle getCellBounds(Object cell, boolean includeEdges)
  6. {
  7. return getCellBounds(cell, includeEdges, false);
  8. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Returns the bounds of the given cell including all connected edges
  3. * if includeEdge is true.
  4. */
  5. public mxRectangle getCellBounds(Object cell, boolean includeEdges,
  6. boolean includeDescendants)
  7. {
  8. return getCellBounds(cell, includeEdges, includeDescendants, false);
  9. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Returns the bounds of the given cell including all connected edges
  3. * if includeEdge is true.
  4. */
  5. public mxRectangle getCellBounds(Object cell, boolean includeEdges)
  6. {
  7. return getCellBounds(cell, includeEdges, false);
  8. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Returns the bounds of the given cell.
  3. */
  4. public mxRectangle getCellBounds(Object cell)
  5. {
  6. return getCellBounds(cell, false);
  7. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Returns the bounding box of the given cell including all connected edges
  3. * if includeEdge is true.
  4. */
  5. public mxRectangle getBoundingBox(Object cell, boolean includeEdges,
  6. boolean includeDescendants)
  7. {
  8. return getCellBounds(cell, includeEdges, includeDescendants, true);
  9. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Returns the bounding box of the given cell including all connected edges
  3. * if includeEdge is true.
  4. */
  5. public mxRectangle getBoundingBox(Object cell, boolean includeEdges,
  6. boolean includeDescendants)
  7. {
  8. return getCellBounds(cell, includeEdges, includeDescendants, true);
  9. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Returns the bounds for the given cells.
  3. */
  4. public mxRectangle getBoundsForCells(Object[] cells, boolean includeEdges,
  5. boolean includeDescendants, boolean boundingBox)
  6. {
  7. mxRectangle result = null;
  8. if (cells != null && cells.length > 0)
  9. {
  10. for (int i = 0; i < cells.length; i++)
  11. {
  12. mxRectangle tmp = getCellBounds(cells[i], includeEdges,
  13. includeDescendants, boundingBox);
  14. if (tmp != null)
  15. {
  16. if (result == null)
  17. {
  18. result = new mxRectangle(tmp);
  19. }
  20. else
  21. {
  22. result.add(tmp);
  23. }
  24. }
  25. }
  26. }
  27. return result;
  28. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Returns the bounds for the given cells.
  3. */
  4. public mxRectangle getBoundsForCells(Object[] cells, boolean includeEdges,
  5. boolean includeDescendants, boolean boundingBox)
  6. {
  7. mxRectangle result = null;
  8. if (cells != null && cells.length > 0)
  9. {
  10. for (int i = 0; i < cells.length; i++)
  11. {
  12. mxRectangle tmp = getCellBounds(cells[i], includeEdges,
  13. includeDescendants, boundingBox);
  14. if (tmp != null)
  15. {
  16. if (result == null)
  17. {
  18. result = new mxRectangle(tmp);
  19. }
  20. else
  21. {
  22. result.add(tmp);
  23. }
  24. }
  25. }
  26. }
  27. return result;
  28. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. mxRectangle tmp = getCellBounds(
  2. model.getChildAt(cells[i], j), includeEdges, true,
  3. boundingBox);

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. mxRectangle tmp = getCellBounds(
  2. model.getChildAt(cells[i], j), includeEdges, true,
  3. boundingBox);

相关文章

mxGraph类方法