本文整理了Java中java.awt.Canvas.imageUpdate()
方法的一些代码示例,展示了Canvas.imageUpdate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.imageUpdate()
方法的具体详情如下:
包路径:java.awt.Canvas
类名称:Canvas
方法名:imageUpdate
暂无
代码示例来源:origin: edu.ucar/grib
return super.imageUpdate(img,infoflags,x,y,w,h);
代码示例来源:origin: edu.ucar/jj2000
return super.imageUpdate(img,infoflags,x,y,w,h);
代码示例来源:origin: org.w3c.jigsaw/jigsaw
public boolean imageUpdate(Image img, int flaginfo,
int x, int y, int width, int height) {
initSize();
Container parent = getParent();
if(parent != null)
parent.doLayout();
return super.imageUpdate(img, flaginfo, x, y, width, height);
}
代码示例来源:origin: org.w3c.jigsaw/jigsaw
/**
* called when more informations about the image are available.
* When the size is available, the ImageButton notifies its container
* that the size may have changed.
* @see java.awt.image.ImageObserver
*/
public boolean imageUpdate(Image img, int flaginfo,
int x, int y, int width, int height) {
// if ((flaginfo & (HEIGHT|WIDTH)) != 0) {
// this.width = width;
// this.height = height;
// Container parent = getParent();
// if(parent != null)
// parent.doLayout();
// }
initSize();
Container parent = getParent();
if(parent != null)
parent.doLayout();
return super.imageUpdate(img, flaginfo, x, y, width, height);
}
内容来源于网络,如有侵权,请联系作者删除!