com.alee.extended.tree
Class NodeImageObserver
java.lang.Object
com.alee.extended.tree.NodeImageObserver
- All Implemented Interfaces:
- java.awt.image.ImageObserver
public class NodeImageObserver
- extends java.lang.Object
- implements java.awt.image.ImageObserver
Custom image observer class for animated loader icons.
- Author:
- Mikle Garin
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
boolean |
imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int w,
int h)
Updates loader icon view in tree cell. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tree
protected WebAsyncTree tree
- Asynchronous tree.
node
protected AsyncUniqueNode node
- Observed node.
NodeImageObserver
public NodeImageObserver(WebAsyncTree tree,
AsyncUniqueNode node)
- Constructs default node observer.
- Parameters:
tree
- asynchronous treenode
- observed node
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int w,
int h)
- Updates loader icon view in tree cell.
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver
- Parameters:
img
- image being observedflags
- bitwise inclusive OR of flagsx
- x coordinatey
- y coordinatew
- widthh
- height
- Returns:
- false if the infoflags indicate that the image is completely loaded, true otherwise