Class ComponentToImageConverter


  • public class ComponentToImageConverter
    extends java.lang.Object
    Converts a GUI component to an image.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.RenderedImage grab()  
      static java.awt.image.RenderedImage grab​(java.awt.Component component)
      Creates a new image and calls the print method to paint the contents of the component to this image.
      • Methods inherited from class java.lang.Object

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

      • ComponentToImageConverter

        public ComponentToImageConverter​(java.awt.Component component)
    • Method Detail

      • grab

        public static java.awt.image.RenderedImage grab​(java.awt.Component component)
        Creates a new image and calls the print method to paint the contents of the component to this image.
        Parameters:
        component -
        Returns:
        rendered image
      • grab

        public java.awt.image.RenderedImage grab()