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

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

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

Visualization.invalidate介绍

[英]Invalidate the bounds of all VisualItems in the given group. This will cause the bounds to be recomputed for all items upon the next redraw.
[中]使给定组中所有Visualitem的边界无效。这将导致在下次重画时重新计算所有项目的边界。

代码示例

代码示例来源:origin: de.sciss/prefuse-core

  1. /**
  2. * Invalidate the bounds of all VisualItems in this visualization. This
  3. * will cause the bounds to be recomputed for all items upon the next
  4. * redraw.
  5. */
  6. public void invalidateAll() {
  7. invalidate(ALL_ITEMS);
  8. }

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

  1. @Override
  2. public void run()
  3. {
  4. if( isInProgress() )
  5. {
  6. return;
  7. }
  8. // perform layout
  9. m_vis.invalidate( GRAPH_NODES );
  10. activity = m_vis.run( LAYOUT_ACTION );
  11. }

相关文章