shp_renderer.buttonevents
Class SHPExportImageHandler

java.lang.Object
  extended by shp_renderer.buttonevents.SHPExportImageHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class SHPExportImageHandler
extends java.lang.Object
implements java.awt.event.ActionListener

This class this called whenever the user clicks to export an image.

Author:
Tyler Lappe

Constructor Summary
SHPExportImageHandler(SHPViewer initViewer)
          The default constructor for the SHPExportImageHandler.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          The action performed method is what is called when the button is pressed.
static void exportImage()
          This method exports the image on the JPanel as a .png file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SHPExportImageHandler

public SHPExportImageHandler(SHPViewer initViewer)
The default constructor for the SHPExportImageHandler.

Parameters:
initViewer - The viewer to be updated.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
The action performed method is what is called when the button is pressed.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

exportImage

public static void exportImage()
This method exports the image on the JPanel as a .png file.