Class PDFExport
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,FileWriter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Serializable
public class PDFExport extends AbstractMultiObjectExportWithPreferredExtensions implements FileWriter
Generates a PDF from the exported objects (first get turned into files).- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PlaceholderFilem_OutputFilethe output file.protected PageOrientationm_PageOrientationthe page orientation.protected PageSizem_PageSizethe page size.protected PdfProclet[]m_Procletsthe PDF processors.-
Fields inherited from class adams.gui.visualization.multiobjectexport.AbstractMultiObjectExportWithPreferredExtensions
m_PreferredExtensions
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description PDFExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected StringdoExport(String[] names, Object[] objects)Performs the actual export of the objects using the given names.protected PdfProclet[]getDefaultProclets()Returns the default proclets to use.PlaceholderFilegetOutputFile()Returns the output file.PageOrientationgetPageOrientation()Returns the page orientation.PageSizegetPageSize()Returns the page size.PdfProclet[]getProclets()Returns the processors in use.StringglobalInfo()Returns a string describing the object.StringoutputFileTipText()Returns the tip text for this property.StringpageOrientationTipText()Returns the tip text for this property.StringpageSizeTipText()Returns the tip text for this property.StringprocletsTipText()Returns the tip text for this property.voidsetOutputFile(PlaceholderFile value)Sets the output file.voidsetPageOrientation(PageOrientation value)Sets the page orientation.voidsetPageSize(PageSize value)Sets the page size.voidsetProclets(PdfProclet[] value)Sets the processors for processing the files.-
Methods inherited from class adams.gui.visualization.multiobjectexport.AbstractMultiObjectExportWithPreferredExtensions
determineExporters, determineExtension, getDefaultPreferredExtensions, getPreferredExtensions, preferredExtensionsTipText, setPreferredExtensions
-
Methods inherited from class adams.gui.visualization.multiobjectexport.AbstractMultiObjectExport
check, disambiguateNames, export, pruneExporters
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_OutputFile
protected PlaceholderFile m_OutputFile
the output file.
-
m_PageSize
protected PageSize m_PageSize
the page size.
-
m_PageOrientation
protected PageOrientation m_PageOrientation
the page orientation.
-
m_Proclets
protected PdfProclet[] m_Proclets
the PDF processors.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractMultiObjectExportWithPreferredExtensions
-
setOutputFile
public void setOutputFile(PlaceholderFile value)
Sets the output file.- Specified by:
setOutputFilein interfaceFileWriter- Parameters:
value- the file
-
getOutputFile
public PlaceholderFile getOutputFile()
Returns the output file.- Specified by:
getOutputFilein interfaceFileWriter- Returns:
- the file
-
outputFileTipText
public String outputFileTipText()
Returns the tip text for this property.- Specified by:
outputFileTipTextin interfaceFileWriter- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPageSize
public void setPageSize(PageSize value)
Sets the page size.- Parameters:
value- the size
-
getPageSize
public PageSize getPageSize()
Returns the page size.- Returns:
- the size
-
pageSizeTipText
public String pageSizeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPageOrientation
public void setPageOrientation(PageOrientation value)
Sets the page orientation.- Parameters:
value- the orientation
-
getPageOrientation
public PageOrientation getPageOrientation()
Returns the page orientation.- Returns:
- the orientation
-
pageOrientationTipText
public String pageOrientationTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultProclets
protected PdfProclet[] getDefaultProclets()
Returns the default proclets to use.- Returns:
- the default
-
setProclets
public void setProclets(PdfProclet[] value)
Sets the processors for processing the files.- Parameters:
value- the processors to use
-
getProclets
public PdfProclet[] getProclets()
Returns the processors in use.- Returns:
- the processors in use
-
procletsTipText
public String procletsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doExport
protected String doExport(String[] names, Object[] objects)
Performs the actual export of the objects using the given names.- Specified by:
doExportin classAbstractMultiObjectExport- Parameters:
names- the names for the objectsobjects- the objects- Returns:
- null if successful, otherwise error message
-
-