Class SaveImageOnClick

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

    public class SaveImageOnClick
    extends java.awt.event.MouseAdapter
    Renders what's currently visible in the component and saves to disk. Opens a dialog to let the user know what's going on and provides the open to silently save in the future.
    • Constructor Summary

      Constructors 
      Constructor Description
      SaveImageOnClick​(java.awt.Component parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.awt.image.BufferedImage getBufferedImage()  
      void mouseClicked​(java.awt.event.MouseEvent e)  
      • Methods inherited from class java.awt.event.MouseAdapter

        mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
      • Methods inherited from class java.lang.Object

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

      • SaveImageOnClick

        public SaveImageOnClick​(java.awt.Component parent)
    • Method Detail

      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
        Overrides:
        mouseClicked in class java.awt.event.MouseAdapter
      • getBufferedImage

        protected java.awt.image.BufferedImage getBufferedImage()