|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nostra13.universalimageloader.core.imageaware.NonViewAware
public class NonViewAware
ImageAware which provides needed info for processing of original image but do nothing for displaying image. It's used when user need just load and decode image and get it in callback.
| Field Summary | |
|---|---|
protected ImageSize |
imageSize
|
protected String |
imageUri
|
protected ViewScaleType |
scaleType
|
| Constructor Summary | |
|---|---|
NonViewAware(ImageSize imageSize,
ViewScaleType scaleType)
|
|
NonViewAware(String imageUri,
ImageSize imageSize,
ViewScaleType scaleType)
|
|
| Method Summary | |
|---|---|
int |
getHeight()
Returns height of image aware view. |
int |
getId()
Returns ID of image aware view. |
ViewScaleType |
getScaleType()
Returns scale type which is used for scaling image for this image aware view. |
int |
getWidth()
Returns width of image aware view. |
android.view.View |
getWrappedView()
Returns wrapped Android View. |
boolean |
isCollected()
Returns a flag whether image aware view is collected by GC or whatsoever. |
boolean |
setImageBitmap(android.graphics.Bitmap bitmap)
Sets image bitmap into this image aware view. |
boolean |
setImageDrawable(android.graphics.drawable.Drawable drawable)
Sets image drawable into this image aware view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String imageUri
protected final ImageSize imageSize
protected final ViewScaleType scaleType
| Constructor Detail |
|---|
public NonViewAware(ImageSize imageSize,
ViewScaleType scaleType)
public NonViewAware(String imageUri,
ImageSize imageSize,
ViewScaleType scaleType)
| Method Detail |
|---|
public int getWidth()
ImageAware
getWidth in interface ImageAwarepublic int getHeight()
ImageAware
getHeight in interface ImageAwarepublic ViewScaleType getScaleType()
ImageAware
getScaleType in interface ImageAwarepublic android.view.View getWrappedView()
ImageAwareView. Can return null if no view is wrapped or view was
collected by GC.
getWrappedView in interface ImageAwarepublic boolean isCollected()
ImageAwareImageLoadingListener#onLoadingCancelled(String, View) callback.
isCollected in interface ImageAwarepublic int getId()
ImageAware
getId in interface ImageAwarepublic boolean setImageDrawable(android.graphics.drawable.Drawable drawable)
ImageAwareBitmapDisplayer.< br />
Is called on UI thread if ImageLoader was called on UI thread. Otherwise - on background thread.
setImageDrawable in interface ImageAwarepublic boolean setImageBitmap(android.graphics.Bitmap bitmap)
ImageAwareBitmap in this image view aware.
Actually it's used only in
BitmapDisplayer.< br />
Is called on UI thread if ImageLoader was called on UI thread. Otherwise - on background thread.
setImageBitmap in interface ImageAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||