java.awt.Canvas.imageUpdate()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(322)

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

Canvas.imageUpdate介绍

暂无

代码示例

代码示例来源:origin: edu.ucar/grib

  1. return super.imageUpdate(img,infoflags,x,y,w,h);

代码示例来源:origin: edu.ucar/jj2000

  1. return super.imageUpdate(img,infoflags,x,y,w,h);

代码示例来源:origin: org.w3c.jigsaw/jigsaw

  1. public boolean imageUpdate(Image img, int flaginfo,
  2. int x, int y, int width, int height) {
  3. initSize();
  4. Container parent = getParent();
  5. if(parent != null)
  6. parent.doLayout();
  7. return super.imageUpdate(img, flaginfo, x, y, width, height);
  8. }

代码示例来源:origin: org.w3c.jigsaw/jigsaw

  1. /**
  2. * called when more informations about the image are available.
  3. * When the size is available, the ImageButton notifies its container
  4. * that the size may have changed.
  5. * @see java.awt.image.ImageObserver
  6. */
  7. public boolean imageUpdate(Image img, int flaginfo,
  8. int x, int y, int width, int height) {
  9. // if ((flaginfo & (HEIGHT|WIDTH)) != 0) {
  10. // this.width = width;
  11. // this.height = height;
  12. // Container parent = getParent();
  13. // if(parent != null)
  14. // parent.doLayout();
  15. // }
  16. initSize();
  17. Container parent = getParent();
  18. if(parent != null)
  19. parent.doLayout();
  20. return super.imageUpdate(img, flaginfo, x, y, width, height);
  21. }

相关文章