本文整理了Java中prefuse.Visualization.setInteractive()
方法的一些代码示例,展示了Visualization.setInteractive()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Visualization.setInteractive()
方法的具体详情如下:
包路径:prefuse.Visualization
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!