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

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

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

mxGraph.splitEdge介绍

暂无

代码示例

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

  1. /**
  2. *
  3. */
  4. public Object splitEdge(Object edge, Object[] cells)
  5. {
  6. return splitEdge(edge, cells, null, 0, 0);
  7. }

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

  1. /**
  2. *
  3. */
  4. public Object splitEdge(Object edge, Object[] cells)
  5. {
  6. return splitEdge(edge, cells, null, 0, 0);
  7. }

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

  1. /**
  2. *
  3. */
  4. public Object splitEdge(Object edge, Object[] cells, double dx, double dy)
  5. {
  6. return splitEdge(edge, cells, null, dx, dy);
  7. }

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

  1. /**
  2. *
  3. */
  4. public Object splitEdge(Object edge, Object[] cells, double dx, double dy)
  5. {
  6. return splitEdge(edge, cells, null, dx, dy);
  7. }

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

  1. /**
  2. * Gets a drop target using getDropTarget and imports the cells using
  3. * mxGraph.splitEdge or mxGraphComponent.importCells depending on the
  4. * drop target and the return values of mxGraph.isSplitEnabled and
  5. * mxGraph.isSplitTarget. Selects and returns the cells that have been
  6. * imported.
  7. */
  8. protected Object[] importCells(mxGraphComponent graphComponent,
  9. mxGraphTransferable gt, double dx, double dy)
  10. {
  11. Object target = getDropTarget(graphComponent, gt);
  12. mxGraph graph = graphComponent.getGraph();
  13. Object[] cells = gt.getCells();
  14. cells = graphComponent.getImportableCells(cells);
  15. if (graph.isSplitEnabled() && graph.isSplitTarget(target, cells))
  16. {
  17. graph.splitEdge(target, cells, dx, dy);
  18. }
  19. else
  20. {
  21. cells = graphComponent.importCells(cells, dx, dy, target, location);
  22. graph.setSelectionCells(cells);
  23. }
  24. return cells;
  25. }

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

  1. /**
  2. * Gets a drop target using getDropTarget and imports the cells using
  3. * mxGraph.splitEdge or mxGraphComponent.importCells depending on the
  4. * drop target and the return values of mxGraph.isSplitEnabled and
  5. * mxGraph.isSplitTarget. Selects and returns the cells that have been
  6. * imported.
  7. */
  8. protected Object[] importCells(mxGraphComponent graphComponent,
  9. mxGraphTransferable gt, double dx, double dy)
  10. {
  11. Object target = getDropTarget(graphComponent, gt);
  12. mxGraph graph = graphComponent.getGraph();
  13. Object[] cells = gt.getCells();
  14. cells = graphComponent.getImportableCells(cells);
  15. if (graph.isSplitEnabled() && graph.isSplitTarget(target, cells))
  16. {
  17. graph.splitEdge(target, cells, dx, dy);
  18. }
  19. else
  20. {
  21. cells = graphComponent.importCells(cells, dx, dy, target, location);
  22. graph.setSelectionCells(cells);
  23. }
  24. return cells;
  25. }

代码示例来源:origin: sc.fiji/TrackMate_

  1. lGraph.splitEdge( target, cells, dx, dy );

代码示例来源:origin: fiji/TrackMate

  1. lGraph.splitEdge( target, cells, dx, dy );

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

  1. && graph.isSplitTarget(target, cells))
  2. graph.splitEdge(target, cells, dx, dy);

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

  1. && graph.isSplitTarget(target, cells))
  2. graph.splitEdge(target, cells, dx, dy);

相关文章

mxGraph类方法