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

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

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

mxGraph.getSelectionCell介绍

暂无

代码示例

代码示例来源: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 void startEditingAtCell(Object cell, EventObject evt)
  5. {
  6. if (cell == null)
  7. {
  8. cell = graph.getSelectionCell();
  9. if (cell != null && !graph.isCellEditable(cell))
  10. {
  11. cell = null;
  12. }
  13. }
  14. if (cell != null)
  15. {
  16. eventSource.fireEvent(new mxEventObject(mxEvent.START_EDITING,
  17. "cell", cell, "event", evt));
  18. cellEditor.startEditing(cell, evt);
  19. }
  20. }

代码示例来源:origin: stackoverflow.com

  1. System.out.println(graph.getSelectionCell());

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

  1. /**
  2. *
  3. */
  4. public void startEditingAtCell(Object cell, EventObject evt)
  5. {
  6. if (cell == null)
  7. {
  8. cell = graph.getSelectionCell();
  9. if (cell != null && !graph.isCellEditable(cell))
  10. {
  11. cell = null;
  12. }
  13. }
  14. if (cell != null)
  15. {
  16. eventSource.fireEvent(new mxEventObject(mxEvent.START_EDITING,
  17. "cell", cell, "event", evt));
  18. cellEditor.startEditing(cell, evt);
  19. }
  20. }

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

  1. Object cell = getSelectionCell();

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

  1. Object cell = getSelectionCell();

相关文章

mxGraph类方法