Class ExportPDFAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- ptolemy.vergil.basic.export.itextpdf.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)
-
-
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
-
-
-
-
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.
-
-