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

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

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

Visualization.add介绍

[英]Add a data set to this visualization, using the given data group name. A visual abstraction of the data will be created and registered with the visualization. An exception will be thrown if the group name is already in use.
[中]使用给定的数据组名称将数据集添加到此可视化中。将创建数据的可视化抽象,并在可视化中注册。如果组名已在使用中,将引发异常。

代码示例

代码示例来源:origin: de.sciss/prefuse-core

  1. /**
  2. * Add a data set to this visualization, using the given data group name.
  3. * A visual abstraction of the data will be created and registered with
  4. * the visualization. An exception will be thrown if the group name is
  5. * already in use.
  6. * @param group the data group name for the visualized data
  7. * @param data the data to visualize
  8. * @return a visual abstraction of the input data, a VisualTupleSet
  9. * instance
  10. */
  11. public synchronized VisualTupleSet add(String group, TupleSet data) {
  12. return add(group, data, null);
  13. }

代码示例来源: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: nz.ac.waikato.cms.weka/prefuseTree

  1. super(new Visualization());
  2. m_vis.add(tree, t);

代码示例来源: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: com.googlecode.obvious/obvious-prefuse

  1. this.getPrefVisualization().add(groupName, getPrefuseTable());
  2. ShapeRenderer mShapeR = new ShapeRenderer(2);
  3. DefaultRendererFactory rf = new DefaultRendererFactory(mShapeR);

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

  1. this.getPrefVisualization().add(groupName, getPrefuseNetwork());
  2. LabelRenderer r = new LabelRenderer(label);
  3. final int cornerRoundDim = 8;

相关文章