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

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

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

mxGraph.removeStateForCell介绍

[英]Removes all cached information for the given cell and its descendants. This is called when a cell was removed from the model.
[中]删除给定单元格及其子体的所有缓存信息。当从模型中删除单元时,将调用此函数。

代码示例

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

  1. /**
  2. * Removes all cached information for the given cell and its descendants.
  3. * This is called when a cell was removed from the model.
  4. *
  5. * @param cell Cell that was removed from the model.
  6. */
  7. protected void removeStateForCell(Object cell)
  8. {
  9. int childCount = model.getChildCount(cell);
  10. for (int i = 0; i < childCount; i++)
  11. {
  12. removeStateForCell(model.getChildAt(cell, i));
  13. }
  14. view.invalidate(cell);
  15. view.removeState(cell);
  16. }

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

  1. /**
  2. * Removes all cached information for the given cell and its descendants.
  3. * This is called when a cell was removed from the model.
  4. *
  5. * @param cell Cell that was removed from the model.
  6. */
  7. protected void removeStateForCell(Object cell)
  8. {
  9. int childCount = model.getChildCount(cell);
  10. for (int i = 0; i < childCount; i++)
  11. {
  12. removeStateForCell(model.getChildAt(cell, i));
  13. }
  14. view.invalidate(cell);
  15. view.removeState(cell);
  16. }

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

  1. removeStateForCell(((mxRootChange) change).getPrevious());
  2. removeStateForCell(cc.getChild());
  3. removeStateForCell(cell);
  4. removeStateForCell(cell);

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

  1. removeStateForCell(((mxRootChange) change).getPrevious());
  2. removeStateForCell(cc.getChild());
  3. removeStateForCell(cell);
  4. removeStateForCell(cell);

相关文章

mxGraph类方法