本文整理了Java中javax.swing.JPanel.imageUpdate()
方法的一些代码示例,展示了JPanel.imageUpdate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.imageUpdate()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:imageUpdate
暂无
代码示例来源:origin: RPTools/maptool
@Override
public boolean imageUpdate(final Image img, int infoflags, int x, int y, int w, int h) {
if (infoflags == ALLBITS) {
EventQueue.invokeLater(new Runnable() {
public void run() {
updateSize(img);
}
});
}
return super.imageUpdate(img, infoflags, x, y, w, h);
}
代码示例来源:origin: MegaMek/megamek
@Override
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) {
// If FRAMEBITS is set, then new frame from a multi-frame image is ready
// This indicates an animated image, which shouldn't be cached
if ((flags & ImageObserver.FRAMEBITS) != 0) {
animatedImages.add(img.hashCode());
}
return super.imageUpdate(img, flags, x, y, w, h);
}
代码示例来源:origin: RPTools/maptool
@Override
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) {
if (infoflags == ImageObserver.ALLBITS) {
flush();
resize();
getParent().doLayout();
repaint();
}
return super.imageUpdate(img, infoflags, x, y, w, h);
}
内容来源于网络,如有侵权,请联系作者删除!