本文整理了Java中prefuse.Visualization.putAction()
方法的一些代码示例,展示了Visualization.putAction()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Visualization.putAction()
方法的具体详情如下:
包路径:prefuse.Visualization
类名称:Visualization
方法名:putAction
[英]Add a data processing Action to this Visualization. The Action will be updated to use this Visualization in its data processing.
[中]将数据处理操作添加到此可视化中。该行动将被更新,以便在其数据处理中使用这种可视化。
代码示例来源:origin: com.googlecode.obvious/obvious-prefuse
@Override
public void putAction(String name, Action action) {
if (action.getUnderlyingImpl(prefuse.action.Action.class) != null) {
vis.putAction(name, (prefuse.action.Action)
action.getUnderlyingImpl(prefuse.action.Action.class));
} else {
throw new ObviousRuntimeException("The following action : "
+ action.toString() + " is not supported");
}
}
代码示例来源:origin: apache/chukwa
ActionList legenddraw = new ActionList();
legenddraw.add(legend_sa1);
this.viz.putAction(legendshapegroup, legenddraw);
ActionList legendlabelsdraw = new ActionList();
legendlabelsdraw.add(legendlabels_sl1);
this.viz.putAction(legendgroup,legendlabelsdraw);
ActionList legenddraw = new ActionList();
legenddraw.add(legend_sa2);
this.viz.putAction(addinfoshapegroup, legenddraw);
ActionList legendlabelsdraw = new ActionList();
legendlabelsdraw.add(legendlabels_sl2);
this.viz.putAction(addinfogroup,legendlabelsdraw);
代码示例来源:origin: apache/chukwa
this.viz.putAction("xlabels",xlabels);
AxisLabelLayout ylabels = new AxisLabelLayout("ylab", yaxis, ylabBound);
this.viz.putAction("ylabels",ylabels);
ActionList labeldraw = new ActionList();
labeldraw.add(sl);
this.viz.putAction(labelgroup, labeldraw);
this.viz.putAction(legendshapegroup, legenddraw);
ActionList legendlabelsdraw = new ActionList();
legendlabelsdraw.add(legendlabels_sl);
this.viz.putAction(legendgroup,legendlabelsdraw);
this.viz.putAction("draw",draw);
代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseTree
ItemAction textColor = new ColorAction(treeNodes,
VisualItem.TEXTCOLOR, ColorLib.rgb(0,0,0));
m_vis.putAction("textColor", textColor);
repaint.add(nodeColor);
repaint.add(new RepaintAction());
m_vis.putAction("repaint", repaint);
m_vis.putAction("fullPaint", fullPaint);
animatePaint.add(new ColorAnimator(treeNodes));
animatePaint.add(new RepaintAction());
m_vis.putAction("animatePaint", animatePaint);
m_orientation, 50, 0, 8);
treeLayout.setLayoutAnchor(new Point2D.Double(25,300));
m_vis.putAction("treeLayout", treeLayout);
m_vis.putAction("subLayout", subLayout);
filter.add(nodeColor);
filter.add(edgeColor);
m_vis.putAction("filter", filter);
animate.add(new ColorAnimator(treeNodes));
animate.add(new RepaintAction());
m_vis.putAction("animate", animate);
m_vis.alwaysRunAfter("filter", "animate");
代码示例来源:origin: neueda/jetbrains-plugin-graph-database-support
m_vis.putAction(LAYOUT, LayoutProvider.forceLayout(m_vis, this, lookAndFeel));
m_vis.putAction(REPAINT, LayoutProvider.repaintLayout(lookAndFeel));
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
m_vis.putAction( "textColor", textColor );
repaint.add( nodeColor );
repaint.add( new RepaintAction() );
m_vis.putAction( REPAINT_ACTION, repaint );
m_vis.putAction( FULL_PAINT_ACTION, fullPaint );
animatePaint.add( new ColorAnimator( GRAPH_NODES ) );
animatePaint.add( new RepaintAction() );
m_vis.putAction( ANIMATE_PAINT_ACTION, animatePaint );
m_vis.putAction( LAYOUT_ACTION, treeLayout );
m_vis.putAction( SUB_LAYOUT_ACTION, subLayout );
filter.add( usesColor );
filter.add( usesArrow );
m_vis.putAction( FILTER_ACTION, filter );
animate.add( new ColorAnimator( GRAPH_NODES ) );
animate.add( new RepaintAction() );
m_vis.putAction( ANIMATE_ACTION, animate );
m_vis.alwaysRunAfter( FILTER_ACTION, ANIMATE_ACTION );
m_vis.putAction( AUTO_ZOOM_ACTION, new AutoZoomAction() );
代码示例来源:origin: apache/chukwa
ActionList gl_list = new ActionList();
gl_list.add(gl);
this.viz.putAction("gridlayout",gl_list);
this.viz.run("gridlayout");
代码示例来源:origin: es.ucm.fdi.gaia/jCOLIBRI
vis.putAction("draw", draw);
vis.putAction("layout", layout);
代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseGraph
m_vis.putAction(DRAW, draw);
m_vis.putAction(LAYOUT, animate);
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
colors.add( usesColor );
colors.add( usesArrow );
m_vis.putAction( COLORS_ACTION, colors );
autoPan.add( new AutoPanAction() );
autoPan.add( new RepaintAction() );
m_vis.putAction( AUTO_PAN_ACTION, autoPan );
layout.add( new LabelLayout( LABELS ) );
layout.add( autoPan );
m_vis.putAction( LAYOUT_ACTION, layout );
内容来源于网络,如有侵权,请联系作者删除!