prefuse.Visualization.removeGroup()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(172)

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

Visualization.removeGroup介绍

[英]Removes a data group from this Visualization. If the group is a focus group, the group will simply be removed, and any subsequent attempts to retrieve the group will return null. If the group is a primary group, it will be removed, and any members of the group will also be removed from any registered focus groups.
[中]从此可视化中删除数据组。如果该组是焦点组,则该组将被删除,随后任何检索该组的尝试都将返回null。如果该组是主要组,则该组将被删除,该组的任何成员也将从任何已注册的焦点组中删除。

代码示例

代码示例来源:origin: com.googlecode.obvious/obvious-prefuse

  1. /**
  2. * Clear the visualization.
  3. */
  4. public void clearVisualization() {
  5. vis.removeGroup(groupName);
  6. }

代码示例来源:origin: es.ucm.fdi.gaia/jCOLIBRI

  1. /**
  2. * Updating the graph
  3. */
  4. public void setGraph(Graph g){
  5. vis.cancel("layout");
  6. vis.removeGroup(GRAPH);
  7. vis.getGroup(Visualization.SEARCH_ITEMS).clear();
  8. this.remove(spanel);
  9. vis.addGraph(GRAPH, g);
  10. addSearchPanel();
  11. vis.setInteractive(EDGES, null, false);
  12. setFocus(0);
  13. stop.setText("Stop");
  14. vis.run("layout");
  15. }

代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseGraph

  1. m_vis.removeGroup(GRAPH);
  2. VisualGraph vg = m_vis.addGraph(GRAPH, graph);
  3. m_vis.setValue(GRAPH_EDGES, null, VisualItem.INTERACTIVE, Boolean.FALSE);

相关文章