java.lang.Object
org.jhotdraw8.draw.io.AbstractExportOutputFormat
org.jhotdraw8.draw.io.PrinterExportFormat
- All Implemented Interfaces:
ExportOutputFormat
PrinterExportFormat.
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from interface org.jhotdraw8.draw.io.ExportOutputFormat
EXPORT_DRAWING_DPI_KEY, EXPORT_DRAWING_KEY, EXPORT_PAGES_DPI_KEY, EXPORT_PAGES_KEY, EXPORT_SLICES_DPI_KEY, EXPORT_SLICES_KEY, EXPORT_SLICES_RESOLUTION_2X_KEY, EXPORT_SLICES_RESOLUTION_3X_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.print.PaperfindPaper(CssDimension2D paperSize) protected Stringprotected booleanvoidprotected voidwritePage(Path file, Page page, javafx.scene.Node node, int pageCount, int pageNumber, int internalPageNumber) Writes a page.protected booleanwriteSlice(Path file, Slice slice, javafx.scene.Node node, double dpi) Writes the node to the specified file as a Slice.Methods inherited from class org.jhotdraw8.draw.io.AbstractExportOutputFormat
getOptions, isExportDrawing, isExportPages, isExportSlices, isExportSlices2x, isExportSlices3x, setOptions, writePages, writePages, writeSlices
-
Constructor Details
-
PrinterExportFormat
public PrinterExportFormat()
-
-
Method Details
-
getExtension
- Specified by:
getExtensionin classAbstractExportOutputFormat
-
isResolutionIndependent
protected boolean isResolutionIndependent()- Specified by:
isResolutionIndependentin classAbstractExportOutputFormat
-
findPaper
-
writePage
protected void writePage(Path file, Page page, javafx.scene.Node node, int pageCount, int pageNumber, int internalPageNumber) throws IOException Description copied from class:AbstractExportOutputFormatWrites a page.- Specified by:
writePagein classAbstractExportOutputFormat- Parameters:
file- the output file or nullpage- the page figurenode- the node of the drawingpageCount- the page countpageNumber- the page numberinternalPageNumber- the internal page number of the page figure- Throws:
IOException- if writing fails
-
writeSlice
protected boolean writeSlice(Path file, Slice slice, javafx.scene.Node node, double dpi) throws IOException Description copied from class:AbstractExportOutputFormatWrites the node to the specified file as a Slice. May destroy the state of the node in the process!- Specified by:
writeSlicein classAbstractExportOutputFormat- Parameters:
file- a fileslice- the Slicenode- a nodedpi- dots per inch- Returns:
- returns true if the state of the node was destroyed
- Throws:
IOException- in case of failure
-
print
- Throws:
IOException
-