Class ComponentPrintable
java.lang.Object
net.thevpc.echo.swing.print.ComponentPrintable
-
Field Summary
Fields inherited from interface Pageable
UNKNOWN_NUMBER_OF_PAGESFields inherited from interface Printable
NO_SUCH_PAGE, PAGE_EXISTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidintgetPageFormat(int pageIndex) getPrintable(int pageIndex) static doublegetScaleFactor(int iMasterSize, int iTargetSize) static doublegetScaleFactorToFit(Dimension original, Dimension toFit) voidprint()intprint(Graphics g, PageFormat pageFormat, int pageIndex)
-
Constructor Details
-
ComponentPrintable
-
-
Method Details
-
getScaleFactorToFit
-
getScaleFactor
public static double getScaleFactor(int iMasterSize, int iTargetSize) -
disableDoubleBuffering
-
enableDoubleBuffering
-
print
public void print() -
print
-
getNumberOfPages
public int getNumberOfPages()- Specified by:
getNumberOfPagesin interfacePageable
-
getPageFormat
- Specified by:
getPageFormatin interfacePageable
-
getPrintable
- Specified by:
getPrintablein interfacePageable
-