Class ImageableJComponentAdapter

  • All Implemented Interfaces:
    Imageable

    public class ImageableJComponentAdapter
    extends Object
    implements Imageable
    Adapts a JComponent to an Imageable.
    Author:
    Nick Collier
    • Constructor Detail

      • ImageableJComponentAdapter

        public ImageableJComponentAdapter​(JComponent comp)
        Constructs a ImageableJComponentAdapter that adapts the specified JComponent.
        Parameters:
        comp - the component to adapt.
    • Method Detail

      • getImage

        public BufferedImage getImage()
        Gets a BufferedImage that displays the contents of the JComponent.
        Specified by:
        getImage in interface Imageable
        Returns:
        a BufferedImage that displays the contents of the JComponent.