Class ImageGraphics2D
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.AbstractImage
org.apache.xmlgraphics.image.loader.impl.ImageGraphics2D
- All Implemented Interfaces:
Image
This class is an implementation of the Image interface exposing a Graphics2DImagePainter.
-
Constructor Summary
ConstructorsConstructorDescriptionImageGraphics2D(ImageInfo info, Graphics2DImagePainter painter) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the flavor of the image.Returns the contained Graphics2DImagePainter instance.booleanIndicates whether the Image instance is cacheable in memory.voidSets the Graphics2DImagePainter instance.Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImage
getColorSpace, getICCProfile, getInfo, getSize, toString
-
Constructor Details
-
ImageGraphics2D
Main constructor.- Parameters:
info- the image info objectpainter- the image painter that will paint the Java2D image
-
-
Method Details
-
getFlavor
Returns the flavor of the image.- Returns:
- the image flavor
-
isCacheable
public boolean isCacheable()Indicates whether the Image instance is cacheable in memory.- Returns:
- true if the Image is cacheable
-
getGraphics2DImagePainter
Returns the contained Graphics2DImagePainter instance.- Returns:
- the image painter
-
setGraphics2DImagePainter
Sets the Graphics2DImagePainter instance.- Parameters:
painter- the image painter
-