APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.javafx.tk.quantum

pack-priv Class PrismImageLoader2

extends Object
implements ImageLoader
Class Inheritance
All Implemented Interfaces
com.sun.javafx.tk.ImageLoader
Imports
java.io.InputStream, com.sun.javafx.iio.ImageFrame, .ImageLoadListener, .ImageLoader, .ImageMetadata, .ImageStorage, .ImageStorageException, com.sun.javafx.runtime.async.AbstractRemoteResource, .AsyncOperationListener, com.sun.javafx.tk.PlatformImage, com.sun.prism.Image, com.sun.prism.impl.PrismSettings, java.util.concurrent.ExecutorService, .Executors, .ThreadFactory, .ThreadPoolExecutor, .TimeUnit, com.sun.javafx.logging.PlatformLogger

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
private class

Field Summary

Modifier and TypeField and Description
private int[]
private Exception
private double
private static PlatformLogger
private Image[]
private int
private float
private double

Constructor Summary

AccessConstructor and Description
public
PrismImageLoader2(String url, double width, double height, boolean preserveRatio, float pixelScale, boolean smooth)

public
PrismImageLoader2(InputStream stream, double width, double height, boolean preserveRatio, boolean smooth)

Method Summary

Modifier and TypeMethod and Description
private void
convertAll(ImageFrame[] imgFrames)

public Exception
public PlatformImage
public int
public int
public double
private static synchronized PlatformLogger
getImageioLogger()

Returns the PlatformLogger for logging imageio-related activities.

public int
public double
private void
private void
handleException(final Exception exception)

private void
loadAll(String url, double w, double h, boolean preserveRatio, float pixelScale, boolean smooth)

private void
loadAll(InputStream stream, double w, double h, boolean preserveRatio, boolean smooth)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delayTimesback to summary
private int[] delayTimes
exceptionback to summary
private Exception exception
heightback to summary
private double height
imageioLoggerback to summary
private static PlatformLogger imageioLogger
imagesback to summary
private Image[] images
loopCountback to summary
private int loopCount
pixelScaleback to summary
private float pixelScale
widthback to summary
private double width

Constructor Detail

PrismImageLoader2back to summary
public PrismImageLoader2(String url, double width, double height, boolean preserveRatio, float pixelScale, boolean smooth)
PrismImageLoader2back to summary
public PrismImageLoader2(InputStream stream, double width, double height, boolean preserveRatio, boolean smooth)

Method Detail

convertAllback to summary
private void convertAll(ImageFrame[] imgFrames)
getExceptionback to summary
public Exception getException()

Implements com.sun.javafx.tk.ImageLoader.getException.

Annotations
@Override
getFrameback to summary
public PlatformImage getFrame(int index)

Implements com.sun.javafx.tk.ImageLoader.getFrame.

Annotations
@Override
getFrameCountback to summary
public int getFrameCount()

Implements com.sun.javafx.tk.ImageLoader.getFrameCount.

Annotations
@Override
getFrameDelayback to summary
public int getFrameDelay(int index)

Implements com.sun.javafx.tk.ImageLoader.getFrameDelay.

Annotations
@Override
getHeightback to summary
public double getHeight()

Implements com.sun.javafx.tk.ImageLoader.getHeight.

Annotations
@Override
getImageioLoggerback to summary
private static synchronized PlatformLogger getImageioLogger()

Returns the PlatformLogger for logging imageio-related activities.

getLoopCountback to summary
public int getLoopCount()

Implements com.sun.javafx.tk.ImageLoader.getLoopCount.

Annotations
@Override
getWidthback to summary
public double getWidth()

Implements com.sun.javafx.tk.ImageLoader.getWidth.

Annotations
@Override
handleExceptionback to summary
private void handleException(final ImageStorageException isException)
handleExceptionback to summary
private void handleException(final Exception exception)
loadAllback to summary
private void loadAll(String url, double w, double h, boolean preserveRatio, float pixelScale, boolean smooth)
loadAllback to summary
private void loadAll(InputStream stream, double w, double h, boolean preserveRatio, boolean smooth)
com.sun.javafx.tk.quantum back to summary

pack-priv final Class PrismImageLoader2.AsyncImageLoader

extends AbstractRemoteResource<ImageLoader>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final ExecutorService
pack-priv double
pack-priv boolean
pack-priv boolean
pack-priv double

Constructor Summary

AccessConstructor and Description
public
AsyncImageLoader(AsyncOperationListener<ImageLoader> listener, AbstractRemoteResource.SizedStreamSupplier sizedStreamSupplier, double width, double height, boolean preserveRatio, boolean smooth)

Method Summary

Modifier and TypeMethod and Description
private static ExecutorService
protected PrismImageLoader2
public void
Inherited from com.sun.javafx.runtime.async.AbstractRemoteResource:
call

Field Detail

BG_LOADING_EXECUTORback to summary
private static final ExecutorService BG_LOADING_EXECUTOR
heightback to summary
pack-priv double height
preserveRatioback to summary
pack-priv boolean preserveRatio
smoothback to summary
pack-priv boolean smooth
widthback to summary
pack-priv double width

Constructor Detail

AsyncImageLoaderback to summary
public AsyncImageLoader(AsyncOperationListener<ImageLoader> listener, AbstractRemoteResource.SizedStreamSupplier sizedStreamSupplier, double width, double height, boolean preserveRatio, boolean smooth)

Method Detail

createExecutorback to summary
private static ExecutorService createExecutor()
processStreamback to summary
protected PrismImageLoader2 processStream(InputStream stream)

Implements abstract com.sun.javafx.runtime.async.AbstractRemoteResource.processStream.

Annotations
@Override
startback to summary
public void start()

Overrides com.sun.javafx.runtime.async.AbstractAsyncOperation.start.

Implements com.sun.javafx.runtime.async.AsyncOperation.start.

Annotations
@Override
com.sun.javafx.tk.quantum back to summary

private Class PrismImageLoader2.PrismLoadListener

extends Object
implements ImageLoadListener
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.tk.quantum.PrismImageLoader2.PrismLoadListener
All Implemented Interfaces
com.sun.javafx.iio.ImageLoadListener

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
imageLoadMetaData(ImageLoader loader, ImageMetadata metadata)

Implements com.sun.javafx.iio.ImageLoadListener.imageLoadMetaData.

Invoked when the meta data of the loading image is ready.

public void
imageLoadProgress(ImageLoader loader, float percentageComplete)

Implements com.sun.javafx.iio.ImageLoadListener.imageLoadProgress.

Receives updates of progress in image loading.

public void
imageLoadWarning(ImageLoader loader, String message)

Implements com.sun.javafx.iio.ImageLoadListener.imageLoadWarning.

Invoked if a warning occurs.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrismLoadListenerback to summary
private PrismLoadListener()

Method Detail

imageLoadMetaDataback to summary
public void imageLoadMetaData(ImageLoader loader, ImageMetadata metadata)

Implements com.sun.javafx.iio.ImageLoadListener.imageLoadMetaData.

Doc from com.sun.javafx.iio.ImageLoadListener.imageLoadMetaData.

Invoked when the meta data of the loading image is ready.

Annotations
@Override
imageLoadProgressback to summary
public void imageLoadProgress(ImageLoader loader, float percentageComplete)

Implements com.sun.javafx.iio.ImageLoadListener.imageLoadProgress.

Doc from com.sun.javafx.iio.ImageLoadListener.imageLoadProgress.

Receives updates of progress in image loading.

Annotations
@Override
imageLoadWarningback to summary
public void imageLoadWarning(ImageLoader loader, String message)

Implements com.sun.javafx.iio.ImageLoadListener.imageLoadWarning.

Doc from com.sun.javafx.iio.ImageLoadListener.imageLoadWarning.

Invoked if a warning occurs.

Annotations
@Override