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

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

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

/**
 * 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.
 * @param group the data group name for the visualized data
 * @param data the data to visualize
 * @return a visual abstraction of the input data, a VisualTupleSet
 * instance
 */
public synchronized VisualTupleSet add(String group, TupleSet data) {
  return add(group, data, null);
}

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

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

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

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

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

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

相关文章