?? customimageobserver.java
字號:
/*
* Created on May 25, 2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.l2fprod.gui.plaf.skin;
import java.awt.Image;
import java.awt.image.ImageObserver;
/**
* @author sebastien
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
final class CustomImageObserver implements ImageObserver {
/* (non-Javadoc)
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
*/
public boolean imageUpdate(
Image img,
int infoflags,
int x,
int y,
int width,
int height) {
boolean toreturn = true;
if (width > 0 && height > 0)
toreturn = false;
if (!toreturn) {
synchronized (this) {
this.notifyAll();
}
}
return toreturn;
}
public CustomImageObserver() {
super();
}
public Object getLock() {
return this;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -