Class ExportToJPEGAction

java.lang.Object
javax.swing.AbstractAction
org.jfree.chart3d.graphics3d.swing.ExportToJPEGAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class ExportToJPEGAction
extends AbstractAction
An action that handles saving the content of a panel to a JPEG image.

NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
Since:
1.2
See Also:
Serialized Form
  • Constructor Details

    • ExportToJPEGAction

      public ExportToJPEGAction​(Panel3D panel)
      Creates a new action instance.
      Parameters:
      panel - the panel (null not permitted).
  • Method Details

    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Writes the content of the panel to a PNG image, using Java's ImageIO.
      Parameters:
      e - the event.