Documentation of 'org.jplot2d.renderer.BufferedImageFactory' Java class
BufferedImageFactory
org.jplot2d.renderer

Class BufferedImageFactory

  • All Implemented Interfaces:
    ImageFactory


    public class BufferedImageFactory
    extends java.lang.Object
    implements ImageFactory
    A factory to create buffered images.
    • Constructor Summary

      Constructors 
      Constructor and Description
      BufferedImageFactory(int imageType, java.awt.Color bgColor) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void cacheImage(java.awt.image.BufferedImage image)
      Put the given buffered image into local cache for next usage.
      java.awt.image.BufferedImage createImage(int width, int height)
      Create a buffered image.
      java.awt.image.BufferedImage createTransparentImage(int width, int height)
      Create a transparent buffered image.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BufferedImageFactory

        public BufferedImageFactory(int imageType,
                                    java.awt.Color bgColor)
        Parameters:
        imageType - type of the created image
        bgColor - background color
    • Method Detail

      • createTransparentImage

        public java.awt.image.BufferedImage createTransparentImage(int width,
                                                                   int height)
        Description copied from interface: ImageFactory
        Create a transparent buffered image. The image is used by component renderer.
        Specified by:
        createTransparentImage in interface ImageFactory
        Returns:
        a BufferedImage
      • createImage

        public java.awt.image.BufferedImage createImage(int width,
                                                        int height)
        Description copied from interface: ImageFactory
        Create a buffered image. The image is the final image to draw everything.
        Specified by:
        createImage in interface ImageFactory
        Returns:
        a BufferedImage
      • cacheImage

        public void cacheImage(java.awt.image.BufferedImage image)
        Description copied from interface: ImageFactory
        Put the given buffered image into local cache for next usage.
        Specified by:
        cacheImage in interface ImageFactory

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.