|
|
@ -10,7 +10,7 @@ import com.sun.javafx.iio.gif.GIFImageLoaderFactory; |
|
|
|
import com.sun.javafx.tk.PlatformImage; |
|
|
|
import com.sun.javafx.tk.PlatformImage; |
|
|
|
import com.sun.prism.Image; |
|
|
|
import com.sun.prism.Image; |
|
|
|
import com.sun.prism.impl.PrismSettings; |
|
|
|
import com.sun.prism.impl.PrismSettings; |
|
|
|
import sun.util.logging.PlatformLogger; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.io.InputStream; |
|
|
@ -22,8 +22,6 @@ import java.io.InputStream; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class PrismImageLoader2 implements com.sun.javafx.tk.ImageLoader { |
|
|
|
class PrismImageLoader2 implements com.sun.javafx.tk.ImageLoader { |
|
|
|
|
|
|
|
|
|
|
|
private static PlatformLogger imageioLogger = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Image[] images; |
|
|
|
private Image[] images; |
|
|
|
private int[] delayTimes; |
|
|
|
private int[] delayTimes; |
|
|
|
private int width; |
|
|
|
private int width; |
|
|
@ -174,21 +172,11 @@ class PrismImageLoader2 implements com.sun.javafx.tk.ImageLoader { |
|
|
|
return image; |
|
|
|
return image; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Returns the PlatformLogger for logging imageio-related activities. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private static synchronized PlatformLogger getImageioLogger() { |
|
|
|
|
|
|
|
if (imageioLogger == null) { |
|
|
|
|
|
|
|
imageioLogger = PlatformLogger.getLogger("imageio"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return imageioLogger; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private class PrismLoadListener implements ImageLoadListener { |
|
|
|
private class PrismLoadListener implements ImageLoadListener { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void imageLoadWarning(ImageLoader loader, String message) { |
|
|
|
public void imageLoadWarning(ImageLoader loader, String message) { |
|
|
|
getImageioLogger().warning(message); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|