org.jplot2d.renderer
Class GraphicsConfigurationCompatibleImageFactory
- java.lang.Object
-
- org.jplot2d.renderer.GraphicsConfigurationCompatibleImageFactory
-
- All Implemented Interfaces:
- ImageFactory
public class GraphicsConfigurationCompatibleImageFactory extends java.lang.Object implements ImageFactory
A factory to create GraphicsConfiguration compatible images.
-
-
Field Summary
-
Fields inherited from interface org.jplot2d.renderer.ImageFactory
TRANSPARENT_COLOR
-
-
Constructor Summary
Constructors Constructor and Description GraphicsConfigurationCompatibleImageFactory(java.awt.GraphicsConfiguration gconf, java.awt.Color bgColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcacheImage(java.awt.image.BufferedImage image)Put the given buffered image into local cache for next usage.java.awt.image.BufferedImagecreateImage(int width, int height)Create a buffered image.java.awt.image.BufferedImagecreateTransparentImage(int width, int height)Create a transparent buffered image.
-
-
-
Constructor Detail
-
GraphicsConfigurationCompatibleImageFactory
public GraphicsConfigurationCompatibleImageFactory(java.awt.GraphicsConfiguration gconf, java.awt.Color bgColor)- Parameters:
gconf- a GraphicsConfiguration associated with an AWT ComponentbgColor- background color
-
-
Method Detail
-
createTransparentImage
public java.awt.image.BufferedImage createTransparentImage(int width, int height)Description copied from interface:ImageFactoryCreate a transparent buffered image. The image is used by component renderer.- Specified by:
createTransparentImagein interfaceImageFactory- Returns:
- a BufferedImage
-
createImage
public java.awt.image.BufferedImage createImage(int width, int height)Description copied from interface:ImageFactoryCreate a buffered image. The image is the final image to draw everything.- Specified by:
createImagein interfaceImageFactory- Returns:
- a BufferedImage
-
cacheImage
public void cacheImage(java.awt.image.BufferedImage image)
Description copied from interface:ImageFactoryPut the given buffered image into local cache for next usage.- Specified by:
cacheImagein interfaceImageFactory
-
-
DMelt 3.0 © DataMelt by jWork.ORG