private static final class ImageCursor.DelayedInitialization extends java.lang.Object implements InvalidationListener
| Modifier and Type | Field and Description |
|---|---|
private double |
hotspotX |
private double |
hotspotY |
private Image[] |
images |
private boolean |
initAsSingle |
private ImageCursor |
targetCursor |
private int |
waitForImages |
| Modifier | Constructor and Description |
|---|---|
private |
DelayedInitialization(ImageCursor targetCursor,
Image[] images,
double hotspotX,
double hotspotY,
boolean initAsSingle) |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyTo(ImageCursor imageCursor,
Image[] images,
double hotspotX,
double hotspotY) |
static void |
applyTo(ImageCursor imageCursor,
Image image,
double hotspotX,
double hotspotY) |
private void |
cleanupAndFinishInitialization() |
void |
invalidated(Observable valueModel)
This method needs to be provided by an implementation of
InvalidationListener. |
private void |
start() |
private final ImageCursor targetCursor
private final Image[] images
private final double hotspotX
private final double hotspotY
private final boolean initAsSingle
private int waitForImages
private DelayedInitialization(ImageCursor targetCursor, Image[] images, double hotspotX, double hotspotY, boolean initAsSingle)
public static void applyTo(ImageCursor imageCursor, Image[] images, double hotspotX, double hotspotY)
public static void applyTo(ImageCursor imageCursor, Image image, double hotspotX, double hotspotY)
private void start()
private void cleanupAndFinishInitialization()
public void invalidated(Observable valueModel)
InvalidationListenerInvalidationListener. It is called if an Observable
becomes invalid.
In general is is considered bad practice to modify the observed value in this method.
invalidated in interface InvalidationListenervalueModel - The Observable that became invalid