public class ExportPDFAction
extends javax.swing.AbstractAction
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.
Modifier and Type | Field and Description |
---|---|
(package private) Top |
_frame
The top-level window of the contents to be exported.
|
Constructor and Description |
---|
ExportPDFAction(Top frame)
Create a new action to export PDF.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Export PDF.
|