com.miginfocom.util.print
Class PrintUtil

java.lang.Object
  extended by com.miginfocom.util.print.PrintUtil

public class PrintUtil
extends java.lang.Object

This class has public methods as a implmentation side effect. Do not use.


Method Summary
static java.awt.Dimension getPageCount(java.lang.Integer horPages, java.lang.Integer verPages, double componentRatio, double pageRatio)
           
static void printComponent(java.awt.Graphics2D g2, javax.swing.JComponent root, java.awt.Dimension targetSize)
          Prints a component by basically expanding any JScrollPanes to its view and not painting JScrollBars.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPageCount

public static java.awt.Dimension getPageCount(java.lang.Integer horPages,
                                              java.lang.Integer verPages,
                                              double componentRatio,
                                              double pageRatio)

printComponent

public static void printComponent(java.awt.Graphics2D g2,
                                  javax.swing.JComponent root,
                                  java.awt.Dimension targetSize)
Prints a component by basically expanding any JScrollPanes to its view and not painting JScrollBars.

Parameters:
g2 - The graphics object to paint in.
root - The root component that will be painted (one level).
targetSize - The size of the component. Used to draw the border.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.