Package it.tidalwave.image.java2d
Class ImplementationFactoryJ2D
- java.lang.Object
-
- it.tidalwave.image.op.ImplementationFactory
-
- it.tidalwave.image.java2d.ImplementationFactoryJ2D
-
public class ImplementationFactoryJ2D extends ImplementationFactory
- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description ImplementationFactoryJ2D()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvertFrom(java.lang.Class imageClass)
Return true if we can convert the given imageClass into our specific image class.boolean
canConvertTo(java.lang.Class imageClass)
ImageModel
convertFrom(java.lang.Object image)
Converts the given image into our specific image representation.java.lang.Object
convertTo(java.lang.Object image)
ImageModel
createImageModel(java.awt.image.BufferedImage bufferedImage)
static ImplementationFactory
getDefault()
-
Methods inherited from class it.tidalwave.image.op.ImplementationFactory
findImplementation, registerImplementation, unregisterImplementation
-
-
-
-
Method Detail
-
getDefault
@Nonnull public static ImplementationFactory getDefault()
-
createImageModel
@Nonnull public ImageModel createImageModel(@Nonnull java.awt.image.BufferedImage bufferedImage)
- Overrides:
createImageModel
in classImplementationFactory
-
canConvertFrom
public boolean canConvertFrom(@Nonnull java.lang.Class imageClass)
Return true if we can convert the given imageClass into our specific image class.- Specified by:
canConvertFrom
in classImplementationFactory
-
convertFrom
@Nonnull public ImageModel convertFrom(@Nonnull java.lang.Object image)
Converts the given image into our specific image representation.- Specified by:
convertFrom
in classImplementationFactory
-
canConvertTo
public boolean canConvertTo(@Nonnull java.lang.Class imageClass)
- Specified by:
canConvertTo
in classImplementationFactory
-
convertTo
@Nonnull public java.lang.Object convertTo(@Nonnull java.lang.Object image)
- Specified by:
convertTo
in classImplementationFactory
-
-