javax.swing.JComponent.imageUpdate()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(111)

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

JComponent.imageUpdate介绍

暂无

代码示例

代码示例来源:origin: org.fudaa.framework.ebli/ebli-graphe

public boolean imageUpdate(final Image _img, final int _infoflags, final int _x, final int _y, final int _width,
  final int _height) {
 if (Fu.DEBUG && FuLog.isDebug()) {
  FuLog.debug("EGR: imageUpdate : " + _infoflags + CtuluLibString.ESPACE + _x + CtuluLibString.VIR + _y
    + CtuluLibString.ESPACE + _width + "x" + _height + CtuluLibString.ESPACE + _img);
 }
 return super.imageUpdate(_img, _infoflags, _x, _y, _width, _height);
}

代码示例来源:origin: ru.sbtqa/monte-media

/**
   * XXX Netscape gets very slow when painting all SOMEBITS of an image.
   *
   * @param flags TODO
   * @return TODO
   */
  @Override
  public boolean imageUpdate(Image img, int flags,
     int x, int y, int w, int h) {
    if (flags == SOMEBITS) {
      // suppress painting of SOMEBITS.
      return true;
    } else {
      return super.imageUpdate(img, flags, x, y, w, h);
    }
  }
}

代码示例来源:origin: RPTools/maptool

/**
 * This makes sure that any image updates get refreshed. This could be a
 * little smarter.
 */
@Override
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) {
  repaint();
  return super.imageUpdate(img, infoflags, x, y, w, h);
}

代码示例来源:origin: net.sf.sfac/sfac-core

/**
 * Overridden to notify image producer to stop notifications (return false) for an old (animated) image.
 */
@Override
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {
  if (isShowing() && isComponentImage(img)) return super.imageUpdate(img, infoflags, x, y, width, height);
  return false;
}

相关文章

JComponent类方法