本文整理了Java中prefuse.Visualization.getAction()
方法的一些代码示例,展示了Visualization.getAction()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Visualization.getAction()
方法的具体详情如下:
包路径:prefuse.Visualization
类名称:Visualization
方法名:getAction
[英]Get the data processing Action with the given name.
[中]获取具有给定名称的数据处理操作。
代码示例来源:origin: de.sciss/prefuse-core
/**
* Remove a data processing Action registered with this visualization.
* If the removed action is currently running, it will be canceled.
* The visualization reference held by the removed Action will be set to
* null.<br>
* <strong>NOTE:</strong> Errors may occur if the removed Action is
* included in an "always run after" relation with another registered
* Action that has not been removed from this visualization. It is the
* currently the responsibility of clients to avoid this situation.
* @param name the name of the Action
* @return the removed Action, or null if no action was found
*/
public Action removeAction(String name) {
// TODO: create registry of always run after relations to automatically
// resolve action references?
Action a = getAction(name);
if ( a != null ) {
a.cancel();
m_actions.remove(name);
a.setVisualization(null);
}
return a;
}
代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseTree
public void setOrientation(int orientation) {
NodeLinkTreeLayout rtl
= (NodeLinkTreeLayout)m_vis.getAction("treeLayout");
CollapsedSubtreeLayout stl
= (CollapsedSubtreeLayout)m_vis.getAction("subLayout");
switch ( orientation ) {
case Constants.ORIENT_LEFT_RIGHT:
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
usesRenderer.setVerticalAlignment1( Constants.BOTTOM );
usesRenderer.setVerticalAlignment2( Constants.CENTER );
NodeLinkTreeLayout rtl = (NodeLinkTreeLayout) m_vis.getAction( LAYOUT_ACTION );
CollapsedSubtreeLayout stl = (CollapsedSubtreeLayout) m_vis.getAction( SUB_LAYOUT_ACTION );
rtl.setOrientation( orientation );
stl.setOrientation( orientation );
内容来源于网络,如有侵权,请联系作者删除!