jigcell.compare.impl
Class PrinterDataSource

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by jigcell.compare.impl.Transferer
          extended by jigcell.compare.impl.DataSource
              extended by jigcell.compare.impl.OwnedDataSource
                  extended by jigcell.compare.impl.PrinterDataSource
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, IDataSource, IWriteableDataSource
Direct Known Subclasses:
PDFPrinterDataSource, SystemPrinterDataSource

public abstract class PrinterDataSource
extends OwnedDataSource

A data source that supports writing to a printer.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface jigcell.compare.IDataSource
IDataSource.Option
 
Field Summary
protected static float DEFAULT_PAGEHEIGHT
          Default page height when the paper size is unknown
protected static float DEFAULT_PAGEWIDTH
          Default page width when the paper size is unknown
protected static int DEFAULT_SCREENDPI
          Default resolution when the screen DPI is unknown
protected static java.lang.String DESCRIPTION_WRITE
          Write operation description
protected static java.lang.String MESSAGE_NOFLAVORERROR
          Error message when no transfer flavor is supported
 
Fields inherited from class jigcell.compare.impl.OwnedDataSource
MESSAGE_PACKERROR, MESSAGE_PROXYERROR, OPTION_OWNER, OPTION_TRANSFERCLASS, SIGNATURE_TRANSFER
 
Fields inherited from class jigcell.compare.impl.DataSource
OPTIONS_LOCK, SEPARATOR_PAIR, SEPARATOR_PART, SEPARATORS
 
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
 
Fields inherited from interface jigcell.compare.IWriteableDataSource
OPTION_WRITEDESCRIPTION, OPTION_WRITEICON
 
Fields inherited from interface jigcell.compare.IDataSource
OPTION_NAME
 
Constructor Summary
PrinterDataSource()
          Creates a new data source that writes to a printer.
 
Method Summary
 
Methods inherited from class jigcell.compare.impl.OwnedDataSource
encode, getOwnerOption, getPredictedCompatibility, getPredictedCompatibility, getTransferClassOption, setOwnerOption, setTransferClassOption
 
Methods inherited from class jigcell.compare.impl.DataSource
addOption, addPropertyChangeListener, addPropertyChangeListener, clone, configure, getName, getOption, getOptions, getOptionType, getPropertyChangeListeners, getPropertyChangeListeners, getReadDescriptionOption, getReadIconOption, getState, getWriteDescriptionOption, getWriteIconOption, initializeSource, 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 jigcell.compare.IWriteableDataSource
getWriteDescriptionOption, getWriteIconOption, setWriteDescriptionOption, setWriteIconOption, write
 
Methods inherited from interface jigcell.compare.IDataSource
addOption, clone, configure, getName, getOption, getState, setOption, setState
 
Methods inherited from interface java.awt.datatransfer.Transferable
getTransferData, getTransferDataFlavors, isDataFlavorSupported
 

Field Detail

DEFAULT_PAGEHEIGHT

protected static final float DEFAULT_PAGEHEIGHT
Default page height when the paper size is unknown

See Also:
Constant Field Values

DEFAULT_PAGEWIDTH

protected static final float DEFAULT_PAGEWIDTH
Default page width when the paper size is unknown

See Also:
Constant Field Values

DEFAULT_SCREENDPI

protected static final int DEFAULT_SCREENDPI
Default resolution when the screen DPI is unknown

See Also:
Constant Field Values

DESCRIPTION_WRITE

protected static final java.lang.String DESCRIPTION_WRITE
Write operation description

See Also:
Constant Field Values

MESSAGE_NOFLAVORERROR

protected static final java.lang.String MESSAGE_NOFLAVORERROR
Error message when no transfer flavor is supported

See Also:
Constant Field Values
Constructor Detail

PrinterDataSource

public PrinterDataSource()
Creates a new data source that writes to a printer.