-
public interface DrawableFactoryDrawable factory to create Drawables for given images.
-
-
Method Summary
Modifier and Type Method Description abstract BooleansupportsImageType(CloseableImage image)Returns true if the factory can create a Drawable for the given image. abstract DrawablecreateDrawable(CloseableImage image)Create a drawable for the given image. -
-
Method Detail
-
supportsImageType
abstract Boolean supportsImageType(CloseableImage image)
Returns true if the factory can create a Drawable for the given image.
- Parameters:
image- the image to check
-
createDrawable
abstract Drawable createDrawable(CloseableImage image)
Create a drawable for the given image. It is guaranteed that this method is only called if supportsImageType(CloseableImage) returned true.
- Parameters:
image- the image to create the drawable for
-
-
-
-