docs/javadoc/reference/com/facebook/drawee/generic/GenericDraweeHierarchy.html
|
|
Summary: Methods | Inherited Methods | [Expand All]
public class
extends Object
implements SettableDraweeHierarchy
| java.lang.Object | | ↳ | com.facebook.drawee.generic.GenericDraweeHierarchy |
A SettableDraweeHierarchy that displays placeholder image until the actual image is set. If provided, failure image will be used in case of failure (placeholder otherwise). If provided, retry image will be used in case of failure when retrying is enabled. If provided, progressbar will be displayed until fully loaded. Each image can be displayed with a different scale type (or no scaling at all). Fading between the layers is supported. Rounding is supported.
Example hierarchy with a placeholder, retry, failure and the actual image:
o RootDrawable (top level drawable)
|
+--o FadeDrawable
|
+--o ScaleTypeDrawable (placeholder branch, optional)
| |
| +--o Drawable (placeholder image)
|
+--o ScaleTypeDrawable (actual image branch)
| |
| +--o ForwardingDrawable (actual image wrapper)
| |
| +--o Drawable (actual image)
|
+--o null (progress bar branch, optional)
|
+--o Drawable (retry image branch, optional)
|
+--o ScaleTypeDrawable (failure image branch, optional)
|
+--o Drawable (failure image)
Note:
| Public Methods |
|---|
| void |
| Gets the non-cropped post-scaling bounds of the actual image. |
| PointF |
| ScalingUtils.ScaleType |
| Rect |
| int |
| Gets the fade duration. |
| RoundingParams |
| Gets the rounding params. |
| Drawable |
| Returns the top level drawable in the corresponding hierarchy. |
| boolean |
| boolean |
| void |
| Called by controller when the hierarchy should be reset to its initial state. |
| void |
| Sets the color filter to be applied on the actual image. |
| void |
| Sets the actual image focus point. |
| void |
| Sets the actual image scale type. |
| void |
| Sets the background image if allowed. |
| void |
| Called by controller if it needs to display some controller overlay. |
| void |
| Sets the fade duration. |
| void |
| Called by controller when the future that provides the actual image completes with failure. |
| void |
| Sets a new failure drawable with old scale type. |
| void |
| Sets a new failure drawable with scale type. |
| void |
| Sets a new failure drawable with scale type. |
| void |
| Sets a new failure drawable with old scale type. |
| void |
| Called by controller when the future that provides the actual image completes successfully. |
| void |
| void |
| Sets a new overlay image at the specified index. |
| void |
| Sets the overlay image if allowed. |
| void |
| Sets a new placeholder drawable with old scale type. |
| void |
| Sets a new placeholder drawable with scale type. |
| void |
| Sets a new placeholder drawable with scale type. |
| void |
| Sets a new placeholder drawable with old scale type. |
| void |
| Sets the placeholder image focus point. |
| void |
| Called by controller to update the progress. |
| void |
| Sets a new progress bar drawable with scale type. |
| void |
| Sets a new progress bar drawable with old scale type. |
| void |
| Sets a new progress bar drawable with scale type. |
| void |
| Sets a new progress bar drawable with old scale type. |
| void |
| Called by controller when the future that provides the actual image completes with failure, but the controller is prepared to kick off a retry when the user clicks on the image. |
| void |
| Sets a new retry drawable with scale type. |
| void |
| Sets a new retry drawable with old scale type. |
| void |
| Sets a new retry drawable with scale type. |
| void |
| Sets a new retry drawable with old scale type. |
| void |
| Sets the rounding params. |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
| | From interface com.facebook.drawee.interfaces.DraweeHierarchy
| abstract Rect | getBounds() | | abstract Drawable | getTopLevelDrawable() Returns the top level drawable in the corresponding hierarchy. |
| | From interface com.facebook.drawee.interfaces.SettableDraweeHierarchy
| abstract void | reset() Called by controller when the hierarchy should be reset to its initial state. | | abstract void | setControllerOverlay(Drawable drawable) Called by controller if it needs to display some controller overlay. | | abstract void | setFailure(Throwable throwable) Called by controller when the future that provides the actual image completes with failure. | | abstract void | setImage(Drawable drawable, float progress, boolean immediate) Called by controller when the future that provides the actual image completes successfully. | | abstract void | setProgress(float progress, boolean immediate) Called by controller to update the progress. | | abstract void | setRetry(Throwable throwable) Called by controller when the future that provides the actual image completes with failure, but the controller is prepared to kick off a retry when the user clicks on the image. |
|
Gets the non-cropped post-scaling bounds of the actual image.
Gets the fade duration.
Gets the rounding params.
Returns the top level drawable in the corresponding hierarchy. Hierarchy should always have the same instance of its top level drawable.
Called by controller when the hierarchy should be reset to its initial state. Any image previously set by setImage should be detached and not used anymore.
Sets the color filter to be applied on the actual image.
Sets the actual image focus point.
Sets the actual image scale type.
Sets the background image if allowed.
Called by controller if it needs to display some controller overlay.
| drawable | drawable to be displayed as controller overlay |
Sets the fade duration.
Called by controller when the future that provides the actual image completes with failure. Hierarchy can choose to display between different images based on cause of failure.
| throwable | cause of failure |
Sets a new failure drawable with old scale type.
Sets a new failure drawable with scale type.
Sets a new failure drawable with scale type.
| resourceId | an identifier of an Android drawable or color resource. |
Sets a new failure drawable with old scale type.
| resourceId | an identifier of an Android drawable or color resource. |
Called by controller when the future that provides the actual image completes successfully. Hierarchy should display the actual image.
| drawable | drawable to be set as the temporary image | | progress | number in range [0, 1] that indicates progress | | immediate | if true, image will be shown immediately (without fade effect) |
Sets a new overlay image at the specified index.
This method will throw if the given index is out of bounds.
| drawable | background image |
Sets the overlay image if allowed.
Sets a new placeholder drawable with old scale type.
Sets a new placeholder drawable with scale type.
| resourceId | an identifier of an Android drawable or color resource. |
Sets a new placeholder drawable with scale type.
Sets a new placeholder drawable with old scale type.
| resourceId | an identifier of an Android drawable or color resource. |
Sets the placeholder image focus point.
Called by controller to update the progress. Hierarchy can choose to hide the progressbar when progress is set to its final value of 1.
| progress | number in range [0, 1] that indicates progress | | immediate | if true, progressbar will be shown/hidden immediately (without fade effect) |
Sets a new progress bar drawable with scale type.
| resourceId | an identifier of an Android drawable or color resource. |
Sets a new progress bar drawable with old scale type.
Sets a new progress bar drawable with scale type.
Sets a new progress bar drawable with old scale type.
| resourceId | an identifier of an Android drawable or color resource. |
Called by controller when the future that provides the actual image completes with failure, but the controller is prepared to kick off a retry when the user clicks on the image. Hierarchy can choose to display a retry image.
| throwable | cause of failure |
Sets a new retry drawable with scale type.
| resourceId | an identifier of an Android drawable or color resource. |
Sets a new retry drawable with old scale type.
| resourceId | an identifier of an Android drawable or color resource. |
Sets a new retry drawable with scale type.
Sets a new retry drawable with old scale type.
Sets the rounding params.
+Generated by Doclava. +