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

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

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

Visualization.setInteractive介绍

[英]Sets the interactivity status for all items in a given data group matching a given filter predicate.
[中]设置给定数据组中与给定筛选器谓词匹配的所有项的交互状态。

代码示例

代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage

  1. @Override
  2. public void run( Graph graph )
  3. {
  4. m_vis.add( GRAPH, graph );
  5. run();
  6. m_vis.run( AUTO_ZOOM_ACTION );
  7. // disable edges interactive
  8. m_vis.setInteractive( GRAPH_EDGES, null, false );
  9. }

代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage

  1. @Override
  2. public void run( Graph graph )
  3. {
  4. // add the GRAPH to the visualization
  5. m_vis.add( GRAPH, graph );
  6. // hide edges
  7. Predicate edgesPredicate = (Predicate) ExpressionParser.parse( "ingroup('graph.edges') AND [" + USES_EDGES + "]==false", true );
  8. m_vis.setVisible( GRAPH_EDGES, edgesPredicate, false );
  9. m_vis.setInteractive( GRAPH_EDGES, null, false );
  10. // make node interactive
  11. m_vis.setInteractive( GRAPH_NODES, null, true );
  12. // add LABELS to the visualization
  13. Predicate labelP = (Predicate) ExpressionParser.parse( "VISIBLE()" );
  14. m_vis.addDecorators( LABELS, GRAPH_NODES, labelP, LABEL_SCHEMA );
  15. run();
  16. }

代码示例来源: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: es.ucm.fdi.gaia/jCOLIBRI

  1. vis.setInteractive(EDGES, null, false);

代码示例来源:origin: neueda/jetbrains-plugin-graph-database-support

  1. m_vis.setInteractive(EDGES, null, false);
  2. m_vis.setValue(NODES, null, VisualItem.SHAPE, SHAPE_ELLIPSE);

相关文章