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

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

本文整理了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

@Override
public void run( Graph graph )
{
  m_vis.add( GRAPH, graph );
  run();
  m_vis.run( AUTO_ZOOM_ACTION );
  // disable edges interactive
  m_vis.setInteractive( GRAPH_EDGES, null, false );
}

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

@Override
public void run( Graph graph )
{
  // add the GRAPH to the visualization
  m_vis.add( GRAPH, graph );
  // hide edges
  Predicate edgesPredicate = (Predicate) ExpressionParser.parse( "ingroup('graph.edges') AND [" + USES_EDGES + "]==false", true );
  m_vis.setVisible( GRAPH_EDGES, edgesPredicate, false );
  m_vis.setInteractive( GRAPH_EDGES, null, false );
  // make node interactive
  m_vis.setInteractive( GRAPH_NODES, null, true );
  // add LABELS to the visualization
  Predicate labelP = (Predicate) ExpressionParser.parse( "VISIBLE()" );
  m_vis.addDecorators( LABELS, GRAPH_NODES, labelP, LABEL_SCHEMA );
  run();
}

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

/**
 *  Updating the graph
 */
public void setGraph(Graph g){
 vis.cancel("layout");
 vis.removeGroup(GRAPH);
 vis.getGroup(Visualization.SEARCH_ITEMS).clear();
 this.remove(spanel);
 vis.addGraph(GRAPH, g);
 addSearchPanel();
 vis.setInteractive(EDGES, null, false);
 setFocus(0);
 stop.setText("Stop");
 vis.run("layout");
 
}

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

vis.setInteractive(EDGES, null, false);

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

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

相关文章