本文整理了Java中prefuse.Visualization.repaint()
方法的一些代码示例,展示了Visualization.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Visualization.repaint()
方法的具体详情如下:
包路径:prefuse.Visualization
类名称:Visualization
方法名:repaint
[英]Issue a repaint request, causing all displays associated with this visualization to be repainted.
[中]发出重新绘制请求,导致重新绘制与此可视化相关的所有显示。
代码示例来源:origin: de.sciss/prefuse-core
/**
* Calls the {@link prefuse.Visualization#repaint()} method on
* this Action's associated Visualization.
*/
public void run(double frac) {
getVisualization().repaint();
}
代码示例来源:origin: es.ucm.fdi.gaia/jCOLIBRI
public void tupleSetChanged(TupleSet t, Tuple[] add, Tuple[] rem) {
vis.run("draw");
vis.repaint();
}
});
代码示例来源:origin: de.sciss/prefuse-core
/**
* @see prefuse.controls.Control#itemDragged(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
*/
public void itemDragged(VisualItem item, MouseEvent e) {
if (!SwingUtilities.isLeftMouseButton(e)) return;
if ( !(item instanceof NodeItem) ) return;
Display d = (Display)e.getComponent();
tmp = d.getAbsoluteCoordinate(e.getPoint(), tmp);
double dx = tmp.getX()-down.getX();
double dy = tmp.getY()-down.getY();
updateLocations((NodeItem)item, dx, dy);
down.setLocation(tmp);
item.getVisualization().repaint();
}
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
@Override
public void itemEntered( VisualItem item, MouseEvent evt )
{
item.setStrokeColor( OUTLINE_FOCUS_COLOR );
item.getVisualization().repaint();
}
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
@Override
public void itemExited( VisualItem item, MouseEvent evt )
{
item.setStrokeColor( item.getEndStrokeColor() );
item.getVisualization().repaint();
}
}
代码示例来源:origin: es.ucm.fdi.gaia/jCOLIBRI
public void actionPerformed(ActionEvent e) {
boolean first = true;
for (Iterator<?> it=vis.getGroup(Visualization.SEARCH_ITEMS).tuples();it.hasNext(); ) {
VisualItem item = (VisualItem) it.next();
if (first){
vis.getGroup(Visualization.FOCUS_ITEMS).setTuple(item);
first = false;
}else{
vis.getGroup(Visualization.FOCUS_ITEMS).addTuple(item);
}
item.setFixed(false);
// System.out.println("Object: "+((VisualItem) it.next()).getRow());
}
vis.repaint();
}
});
代码示例来源:origin: de.sciss/prefuse-core
/**
* @see prefuse.controls.Control#itemDragged(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
*/
public void itemDragged(VisualItem item, MouseEvent e) {
if (!SwingUtilities.isLeftMouseButton(e)) return;
dragged = true;
Display d = (Display)e.getComponent();
d.getAbsoluteCoordinate(e.getPoint(), temp);
double dx = temp.getX()-down.getX();
double dy = temp.getY()-down.getY();
double x = item.getX();
double y = item.getY();
item.setStartX(x); item.setStartY(y);
item.setX(x+dx); item.setY(y+dy);
item.setEndX(x+dx); item.setEndY(y+dy);
if ( repaint )
item.getVisualization().repaint();
down.setLocation(temp);
if ( action != null )
d.getVisualization().run(action);
}
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
@Override
public final void itemClicked( VisualItem anItem, MouseEvent anEvent )
{
// update the display
anItem.getVisualization().repaint();
if( !anItem.canGet( USER_OBJECT, Object.class ) )
{
return;
}
Object object = anItem.get( USER_OBJECT );
LinkEvent evt = new LinkEvent( StackedGraphDisplay.this, object );
fireLinkActivated( evt );
}
}
内容来源于网络,如有侵权,请联系作者删除!