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

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

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

mxGraph.getBoundingBox介绍

[英]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 getBoundingBox(Object cell)
  5. {
  6. return getBoundingBox(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. {
  7. return getBoundingBox(cell, includeEdges, false);
  8. }

代码示例来源: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. {
  7. return getBoundingBox(cell, includeEdges, false);
  8. }

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

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

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

  1. /**
  2. * Refreshes the cell handler.
  3. */
  4. public void refresh(mxCellState state)
  5. {
  6. this.state = state;
  7. handles = createHandles();
  8. mxGraph graph = graphComponent.getGraph();
  9. mxRectangle tmp = graph.getBoundingBox(state.getCell());
  10. if (tmp != null)
  11. {
  12. bounds = tmp.getRectangle();
  13. if (handles != null)
  14. {
  15. for (int i = 0; i < handles.length; i++)
  16. {
  17. if (isHandleVisible(i))
  18. {
  19. bounds.add(handles[i]);
  20. }
  21. }
  22. }
  23. }
  24. }

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

  1. /**
  2. * Refreshes the cell handler.
  3. */
  4. public void refresh(mxCellState state)
  5. {
  6. this.state = state;
  7. handles = createHandles();
  8. mxGraph graph = graphComponent.getGraph();
  9. mxRectangle tmp = graph.getBoundingBox(state.getCell());
  10. if (tmp != null)
  11. {
  12. bounds = tmp.getRectangle();
  13. if (handles != null)
  14. {
  15. for (int i = 0; i < handles.length; i++)
  16. {
  17. if (isHandleVisible(i))
  18. {
  19. bounds.add(handles[i]);
  20. }
  21. }
  22. }
  23. }
  24. }

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

  1. || model.isEdge(cc.getParent()))
  2. result = getBoundingBox(cc.getParent(), true, true);
  3. result.add(getBoundingBox(cc.getPrevious(), true,
  4. true));
  5. result = getBoundingBox(cc.getPrevious(), true,
  6. true);
  7. result = getBoundingBox(cc.getChild(), true, true);
  8. result = getBoundingBox(cell, true);
  9. result = getBoundingBox(cell);
  10. result = getBoundingBox(cell, true);
  11. result = getBoundingBox(cell, true, true);
  12. result = getBoundingBox(((mxCollapseChange) change).getCell(),
  13. true, true);
  14. result = getBoundingBox(((mxVisibleChange) change).getCell(),
  15. true, true);

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

  1. || model.isEdge(cc.getParent()))
  2. result = getBoundingBox(cc.getParent(), true, true);
  3. result.add(getBoundingBox(cc.getPrevious(), true,
  4. true));
  5. result = getBoundingBox(cc.getPrevious(), true,
  6. true);
  7. result = getBoundingBox(cc.getChild(), true, true);
  8. result = getBoundingBox(cell, true);
  9. result = getBoundingBox(cell);
  10. result = getBoundingBox(cell, true);
  11. result = getBoundingBox(cell, true, true);
  12. result = getBoundingBox(((mxCollapseChange) change).getCell(),
  13. true, true);
  14. result = getBoundingBox(((mxVisibleChange) change).getCell(),
  15. true, true);

相关文章

mxGraph类方法