qx.io.image
Class Preloader

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.io.image.Preloader

public class Preloader
extends Target

This class preloads one image and provides information about this image after it is loaded.

This class should not be used directly. Better use PreloaderManager:

qx.io.image.PreloaderManager.getInstance().create(imageUrl)


Constructor Summary
Preloader()
           
Preloader(java.lang.String imageUrl)
           
 
Method Summary
 java.lang.Integer getHeight()
          Return the height of the image in pixel.
 boolean getIsPng()
          Check whether the image format if PNG
 java.lang.String getSource()
          Get the full URI of the image
 java.lang.String getUri()
          Get the full URI of the image
 java.lang.Integer getWidth()
          Return the width of the image in pixel.
 boolean isErroneous()
          Check whether the loading of the image failed
 boolean isLoaded()
          Check whether the image is already loaded
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Preloader

public Preloader()

Preloader

public Preloader(java.lang.String imageUrl)
Method Detail

getHeight

public java.lang.Integer getHeight()

Return the height of the image in pixel.


getIsPng

public boolean getIsPng()

Check whether the image format if PNG


getSource

public java.lang.String getSource()

Get the full URI of the image


getUri

public java.lang.String getUri()

Get the full URI of the image


getWidth

public java.lang.Integer getWidth()

Return the width of the image in pixel.


isErroneous

public boolean isErroneous()

Check whether the loading of the image failed


isLoaded

public boolean isLoaded()

Check whether the image is already loaded



Copyright © 2008 1&1. All Rights Reserved.