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

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

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

mxGraph.clearSelection介绍

暂无

代码示例

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

  1. /**
  2. * Uses the given cell as the root of the displayed cell hierarchy. If no
  3. * cell is specified then the selection cell is used. The cell is only used
  4. * if <isValidRoot> returns true.
  5. *
  6. * @param cell
  7. */
  8. public void enterGroup(Object cell)
  9. {
  10. if (cell == null)
  11. {
  12. cell = getSelectionCell();
  13. }
  14. if (cell != null && isValidRoot(cell))
  15. {
  16. view.setCurrentRoot(cell);
  17. clearSelection();
  18. }
  19. }

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

  1. /**
  2. * Uses the given cell as the root of the displayed cell hierarchy. If no
  3. * cell is specified then the selection cell is used. The cell is only used
  4. * if <isValidRoot> returns true.
  5. *
  6. * @param cell
  7. */
  8. public void enterGroup(Object cell)
  9. {
  10. if (cell == null)
  11. {
  12. cell = getSelectionCell();
  13. }
  14. if (cell != null && isValidRoot(cell))
  15. {
  16. view.setCurrentRoot(cell);
  17. clearSelection();
  18. }
  19. }

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

  1. /**
  2. *
  3. */
  4. public Object[] selectRegion(Rectangle rect, MouseEvent e)
  5. {
  6. Object[] cells = getCells(rect);
  7. if (cells.length > 0)
  8. {
  9. selectCellsForEvent(cells, e);
  10. }
  11. else if (!graph.isSelectionEmpty() && !e.isConsumed())
  12. {
  13. graph.clearSelection();
  14. }
  15. return cells;
  16. }

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

  1. graph.clearSelection();

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

  1. /**
  2. *
  3. */
  4. public Object[] selectRegion(Rectangle rect, MouseEvent e)
  5. {
  6. Object[] cells = getCells(rect);
  7. if (cells.length > 0)
  8. {
  9. selectCellsForEvent(cells, e);
  10. }
  11. else if (!graph.isSelectionEmpty() && !e.isConsumed())
  12. {
  13. graph.clearSelection();
  14. }
  15. return cells;
  16. }

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

  1. graph.clearSelection();

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

  1. && !graphComponent.getGraph().isSelectionEmpty())
  2. graphComponent.getGraph().clearSelection();

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

  1. && !graphComponent.getGraph().isSelectionEmpty())
  2. graphComponent.getGraph().clearSelection();

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

  1. graphComponent.getGraph().clearSelection();

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

  1. graphComponent.getGraph().clearSelection();

代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn

  1. graphComponent.getGraph().clearSelection();

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

  1. lGraph.clearSelection(); // JYT I did this to

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

  1. lGraph.clearSelection(); // JYT I did this to

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

  1. graph.clearSelection();

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

  1. graph.clearSelection();

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

  1. clearSelection();

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

  1. clearSelection();

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

  1. clearSelection();
  2. removeStateForCell(((mxRootChange) change).getPrevious());

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

  1. clearSelection();
  2. removeStateForCell(((mxRootChange) change).getPrevious());

相关文章

mxGraph类方法