Class ExportPDFAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class ExportPDFAction
    extends javax.swing.AbstractAction
    An Action to Export PDF using iText PDF.

    This implementation uses iText PDF, which is under the Affero General Public License (AGPL). Thus, use of this package is optional. To add the "Export PDF" menu choice to the GraphEditor, add the following to the configuration

      <property name="_exportPDFClassName"
                class="ptolemy.data.expr.StringParameter"
                value="ptolemy.vergil.basic.export.itextpdf.ExportPDFAction"/>
     
    BasicGraphFrame checks for this parameter and adds the "Export PDF" menu choice if the class named by that parameter exists.

    The $PTII/ptolemy/configs/defaultFullConfiguration.xml file already has this parameter. The ptiny configuration does not have this parameter so that we have a smaller download and have a non-GPL executable.

    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Edward A. Lee, Christopher Brooks
    See Also:
    Serialized Form
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Field Summary

      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Constructor Summary

      Constructors 
      Constructor Description
      ExportPDFAction​(Top frame)
      Create a new action to export PDF.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)
      Export PDF.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Constructor Detail

      • ExportPDFAction

        public ExportPDFAction​(Top frame)
        Create a new action to export PDF.
        Parameters:
        frame - The Frame which to which this action is added.
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Export PDF.