本文整理汇总了Java中prefuse.visual.VisualItem.setFixed方法的典型用法代码示例。如果您正苦于以下问题:Java VisualItem.setFixed方法的具体用法?Java VisualItem.setFixed怎么用?Java VisualItem.setFixed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类prefuse.visual.VisualItem
的用法示例。
在下文中一共展示了VisualItem.setFixed方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: run
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
/**
* @see prefuse.action.Action#run(double)
*/
public void run(double frac) {
Iterator iter = m_vis.items(m_group);
while ( iter.hasNext() ) {
VisualItem item = (VisualItem)iter.next();
try {
if ( m_xfield != null )
setX(item, null, item.getDouble(m_xfield));
if ( m_yfield != null )
setY(item, null, item.getDouble(m_yfield));
if ( m_fixedfield != null )
item.setFixed(item.getBoolean(m_fixedfield));
} catch ( Exception e ) {
}
}
}
示例2: itemPressed
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
/**
* @see Control#itemPressed(VisualItem, MouseEvent)
*/
public void itemPressed( VisualItem item, MouseEvent e )
{
if ( !UILib.isButtonPressed( e, button ) )
return;
if ( !( item instanceof NodeItem ) )
return;
Display d = (Display)e.getComponent();
down = d.getAbsoluteCoordinate( e.getPoint(), down );
wasFixed = item.isFixed();
item.setFixed( true );
}
示例3: itemReleased
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
/**
* @see Control#itemReleased(VisualItem, MouseEvent)
*/
public void itemReleased( VisualItem item, MouseEvent e )
{
if ( !UILib.isButtonPressed( e, button ) )
return;
if ( !( item instanceof NodeItem ) )
return;
item.setFixed( wasFixed );
}
示例4: setFixed
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
protected static void setFixed(VisualItem item, boolean fixed) {
if ( item instanceof AggregateItem ) {
Iterator items = ((AggregateItem)item).items();
while ( items.hasNext() ) {
setFixed((VisualItem)items.next(), fixed);
}
} else {
item.setFixed(fixed);
}
}
示例5: setGraph
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
/**
* Sets visual graph.
*
* @param g the (non-visual) model graph
*/
private void setGraph(Graph g) {
// update graph
inInitialization = true;
visualization.removeGroup(graph);
visualGraph = visualization.addGraph(graph, g);
if (visualGraph.getNodeCount() > 1) {
VisualItem f = (VisualItem) visualGraph.getNode(1);
visualization.getGroup(Visualization.FOCUS_ITEMS).setTuple(f);
f.setFixed(true);
((VisualItem) visualGraph.getNode(0)).setFixed(true);
}
inInitialization = false;
}
示例6: setFix
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
/**
* Sets fix property of all visual nodes.
*
* @param fix the property value
*/
public void setFix(boolean fix) {
synchronized (visualization) {
for (int i = visualGraph.getNodeCount() - 1; i >= 0; --i) {
VisualItem n = (VisualItem) visualGraph.getNode(i);
n.setFixed(fix);
}
}
}
示例7: setGraph
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
public void setGraph(Graph g, String label) {
// update labeling
DefaultRendererFactory drf = (DefaultRendererFactory)
m_vis.getRendererFactory();
((LabelRenderer)drf.getDefaultRenderer()).setTextField(label);
// update graph
m_vis.removeGroup(graph);
VisualGraph vg = m_vis.addGraph(graph, g);
m_vis.setValue(edges, null, VisualItem.INTERACTIVE, Boolean.FALSE);
VisualItem f = (VisualItem)vg.getNode(0);
m_vis.getGroup(Visualization.FOCUS_ITEMS).setTuple(f);
f.setFixed(false);
}
示例8: setFixed
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
protected static void setFixed(VisualItem item, boolean fixed) {
if ( item instanceof AggregateItem ) {
Iterator<?> items = ((AggregateItem)item).items();
while ( items.hasNext() ) {
setFixed((VisualItem)items.next(), fixed);
}
} else {
item.setFixed(fixed);
}
}
示例9: setFixed
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
protected static void setFixed(VisualItem item, boolean fixed) {
if ( item instanceof AggregateItem ) {
Iterator<?> items = ((AggregateItem)item).items();
while ( items.hasNext() ) {
setFixed((VisualItem)items.next(), fixed);
}
} else {
item.setFixed(fixed);
}
}
示例10: setFixed
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
protected static void setFixed(VisualItem item, boolean fixed) {
if (item instanceof AggregateItem) {
Iterator<?> items = ((AggregateItem) item).items();
while (items.hasNext()) {
setFixed((VisualItem) items.next(), fixed);
}
} else {
item.setFixed(fixed);
}
}
示例11: setFixed
import prefuse.visual.VisualItem; //导入方法依赖的package包/类
protected static void setFixed(VisualItem item, boolean fixed) {
if (item instanceof AggregateItem) {
Iterator items = ((AggregateItem) item).items();
while (items.hasNext()) {
setFixed((VisualItem) items.next(), fixed);
}
} else {
item.setFixed(fixed);
}
}