Class ImageableJComponentAdapter

java.lang.Object
repast.simphony.ui.ImageableJComponentAdapter
All Implemented Interfaces:
Imageable

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

    • ImageableJComponentAdapter

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

    • 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.