jigcell.compare.impl
Class PDFPrinterDataSource
java.lang.Object
javax.swing.TransferHandler
jigcell.compare.impl.Transferer
jigcell.compare.impl.DataSource
jigcell.compare.impl.OwnedDataSource
jigcell.compare.impl.PrinterDataSource
jigcell.compare.impl.PDFPrinterDataSource
- All Implemented Interfaces:
- java.awt.datatransfer.Transferable, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, IDataSource, IWriteableDataSource
- Direct Known Subclasses:
- CellCycleReportGenerator
public class PDFPrinterDataSource
- extends PrinterDataSource
A data source that prints tables to a PDF file.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
- Author:
- Nicholas Allen
- See Also:
- Serialized Form
| Fields inherited from class jigcell.compare.impl.Transferer |
CSV_FOOTER, CSV_LINEPOSTPEND, CSV_LINEPREPEND, CSV_LINESEPARATOR, HTML_FOOTER, HTML_HEADPOSTPEND, HTML_HEADPREPEND, HTML_HEADSEPARATOR, HTML_LINEPOSTPEND, HTML_LINEPREPEND, HTML_LINESEPARATOR |
| Fields inherited from class javax.swing.TransferHandler |
COPY, COPY_OR_MOVE, MOVE, NONE |
|
Method Summary |
boolean |
configure()
Does whatever configuration this data source requires and returns whether the configuration was completed successfully. |
RawFileDataSource |
getFileSourceOption()
The file that will hold the PDF document. |
protected void |
initializeSource()
Performs any initialization work for the view that must be duplicated for each new instance. |
void |
setFileSourceOption(RawFileDataSource file)
Sets the file that will hold the PDF document. |
void |
write(java.lang.Object data)
Writes data to the source destroying the previous contents if multiple objects are not supported. |
| Methods inherited from class jigcell.compare.impl.DataSource |
addOption, addPropertyChangeListener, addPropertyChangeListener, clone, getName, getOption, getOptions, getOptionType, getPropertyChangeListeners, getPropertyChangeListeners, getReadDescriptionOption, getReadIconOption, getState, getWriteDescriptionOption, getWriteIconOption, persistSource, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setName, setOption, setOptions, setOptionType, setReadDescriptionOption, setReadIconOption, setState, setWriteDescriptionOption, setWriteIconOption, toString, unpersistSource |
| Methods inherited from class jigcell.compare.impl.Transferer |
addExtension, addFlavor, createCSVTable, createFormattedTable, createHTMLTable, getExceptionRecorder, getExpectedClasses, getExpectedClasses, getExpectedClasses, getFlavors, getFlavors, getPreferredExtensions, getPreferredExtensions, getTransferClass, getTransferData, getTransferDataFlavors, getTransferFlavor, isDataFlavorSupported, transfer |
| Methods inherited from class javax.swing.TransferHandler |
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.datatransfer.Transferable |
getTransferData, getTransferDataFlavors, isDataFlavorSupported |
OPTION_FILESOURCE
public static final java.lang.String OPTION_FILESOURCE
- File that will hold the PDF document
- See Also:
- Constant Field Values
DEFAULT_FILECHOOSER
private static final java.lang.String DEFAULT_FILECHOOSER
- Default option for file chooser
- See Also:
- Constant Field Values
FILTER_PDF
private static final SuffixFileFilter FILTER_PDF
- File filter for PDF data files
PDFPrinterDataSource
public PDFPrinterDataSource()
- Creates a new printer that uses PDF files.
configure
public boolean configure()
- Does whatever configuration this data source requires and returns whether the configuration was completed successfully.
- Specified by:
configure in interface IDataSource- Overrides:
configure in class DataSource
getFileSourceOption
public RawFileDataSource getFileSourceOption()
- The file that will hold the PDF document.
setFileSourceOption
public void setFileSourceOption(RawFileDataSource file)
- Sets the file that will hold the PDF document.
- Parameters:
file - File source
write
public void write(java.lang.Object data)
throws java.lang.Exception
- Writes data to the source destroying the previous contents if multiple objects are not supported.
- Parameters:
data - Data
- Throws:
java.lang.Exception
initializeSource
protected void initializeSource()
- Performs any initialization work for the view that must be duplicated for each new instance. This method is called exactly once and only
during object construction.
- Overrides:
initializeSource in class DataSource