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

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

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

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

  1. @Override
  2. public void putAction(String name, Action action) {
  3. if (action.getUnderlyingImpl(prefuse.action.Action.class) != null) {
  4. vis.putAction(name, (prefuse.action.Action)
  5. action.getUnderlyingImpl(prefuse.action.Action.class));
  6. } else {
  7. throw new ObviousRuntimeException("The following action : "
  8. + action.toString() + " is not supported");
  9. }
  10. }

代码示例来源:origin: apache/chukwa

  1. ActionList legenddraw = new ActionList();
  2. legenddraw.add(legend_sa1);
  3. this.viz.putAction(legendshapegroup, legenddraw);
  4. ActionList legendlabelsdraw = new ActionList();
  5. legendlabelsdraw.add(legendlabels_sl1);
  6. this.viz.putAction(legendgroup,legendlabelsdraw);
  7. ActionList legenddraw = new ActionList();
  8. legenddraw.add(legend_sa2);
  9. this.viz.putAction(addinfoshapegroup, legenddraw);
  10. ActionList legendlabelsdraw = new ActionList();
  11. legendlabelsdraw.add(legendlabels_sl2);
  12. this.viz.putAction(addinfogroup,legendlabelsdraw);

代码示例来源:origin: apache/chukwa

  1. this.viz.putAction("xlabels",xlabels);
  2. AxisLabelLayout ylabels = new AxisLabelLayout("ylab", yaxis, ylabBound);
  3. this.viz.putAction("ylabels",ylabels);
  4. ActionList labeldraw = new ActionList();
  5. labeldraw.add(sl);
  6. this.viz.putAction(labelgroup, labeldraw);
  7. this.viz.putAction(legendshapegroup, legenddraw);
  8. ActionList legendlabelsdraw = new ActionList();
  9. legendlabelsdraw.add(legendlabels_sl);
  10. this.viz.putAction(legendgroup,legendlabelsdraw);
  11. this.viz.putAction("draw",draw);

代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseTree

  1. ItemAction textColor = new ColorAction(treeNodes,
  2. VisualItem.TEXTCOLOR, ColorLib.rgb(0,0,0));
  3. m_vis.putAction("textColor", textColor);
  4. repaint.add(nodeColor);
  5. repaint.add(new RepaintAction());
  6. m_vis.putAction("repaint", repaint);
  7. m_vis.putAction("fullPaint", fullPaint);
  8. animatePaint.add(new ColorAnimator(treeNodes));
  9. animatePaint.add(new RepaintAction());
  10. m_vis.putAction("animatePaint", animatePaint);
  11. m_orientation, 50, 0, 8);
  12. treeLayout.setLayoutAnchor(new Point2D.Double(25,300));
  13. m_vis.putAction("treeLayout", treeLayout);
  14. m_vis.putAction("subLayout", subLayout);
  15. filter.add(nodeColor);
  16. filter.add(edgeColor);
  17. m_vis.putAction("filter", filter);
  18. animate.add(new ColorAnimator(treeNodes));
  19. animate.add(new RepaintAction());
  20. m_vis.putAction("animate", animate);
  21. m_vis.alwaysRunAfter("filter", "animate");

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

  1. m_vis.putAction(LAYOUT, LayoutProvider.forceLayout(m_vis, this, lookAndFeel));
  2. m_vis.putAction(REPAINT, LayoutProvider.repaintLayout(lookAndFeel));

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

  1. m_vis.putAction( "textColor", textColor );
  2. repaint.add( nodeColor );
  3. repaint.add( new RepaintAction() );
  4. m_vis.putAction( REPAINT_ACTION, repaint );
  5. m_vis.putAction( FULL_PAINT_ACTION, fullPaint );
  6. animatePaint.add( new ColorAnimator( GRAPH_NODES ) );
  7. animatePaint.add( new RepaintAction() );
  8. m_vis.putAction( ANIMATE_PAINT_ACTION, animatePaint );
  9. m_vis.putAction( LAYOUT_ACTION, treeLayout );
  10. m_vis.putAction( SUB_LAYOUT_ACTION, subLayout );
  11. filter.add( usesColor );
  12. filter.add( usesArrow );
  13. m_vis.putAction( FILTER_ACTION, filter );
  14. animate.add( new ColorAnimator( GRAPH_NODES ) );
  15. animate.add( new RepaintAction() );
  16. m_vis.putAction( ANIMATE_ACTION, animate );
  17. m_vis.alwaysRunAfter( FILTER_ACTION, ANIMATE_ACTION );
  18. m_vis.putAction( AUTO_ZOOM_ACTION, new AutoZoomAction() );

代码示例来源:origin: apache/chukwa

  1. ActionList gl_list = new ActionList();
  2. gl_list.add(gl);
  3. this.viz.putAction("gridlayout",gl_list);
  4. this.viz.run("gridlayout");

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

  1. vis.putAction("draw", draw);
  2. vis.putAction("layout", layout);

代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseGraph

  1. m_vis.putAction(DRAW, draw);
  2. m_vis.putAction(LAYOUT, animate);

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

  1. colors.add( usesColor );
  2. colors.add( usesArrow );
  3. m_vis.putAction( COLORS_ACTION, colors );
  4. autoPan.add( new AutoPanAction() );
  5. autoPan.add( new RepaintAction() );
  6. m_vis.putAction( AUTO_PAN_ACTION, autoPan );
  7. layout.add( new LabelLayout( LABELS ) );
  8. layout.add( autoPan );
  9. m_vis.putAction( LAYOUT_ACTION, layout );

相关文章