com.zfqjava.swing
Class PrintFactory

java.lang.Object
  |
  +--com.zfqjava.swing.PrintFactory

public class PrintFactory
extends java.lang.Object

PrintFactory create Printable for print.

Since:
JDataGrid 1.1

Field Summary
static java.lang.String FOOTER_ALIGNMENT
          Key for the footer alignment.
static java.lang.String FOOTER_FONT
          Key for the footer font.
static java.lang.String FOOTER_FORMAT
          Key for the footer format.
static java.lang.String FOOTER_MARGIN
          Key for the footer margin.
static java.lang.String HEADER_ALIGNMENT
          Key for the header alignment.
static java.lang.String HEADER_FONT
          Key for the header font.
static java.lang.String HEADER_FORMAT
          Key for the header format.
static java.lang.String HEADER_MARGIN
          Key for the header margin.
static java.lang.String HORIZONTAL_ALIGNMENT
          Key for the page horizontal alignment.
static java.lang.String MARGIN
          Key for the page margin.
static java.lang.String ORIENTATION
          Key for the page orientation.
static java.lang.String VERTICAL_ALIGNMENT
          Key for the page vertical alignment.
 
Method Summary
static java.awt.print.Printable createPrintable(java.awt.Component comp, java.util.Map map)
          Creates a Printable for the specified component.
static java.awt.print.Printable createPrintable(java.awt.Image image, java.util.Map map)
          Creates a Printable for the specified image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARGIN

public static final java.lang.String MARGIN
Key for the page margin. Type: java.awt.Insets

ORIENTATION

public static final java.lang.String ORIENTATION
Key for the page orientation. Value:

HORIZONTAL_ALIGNMENT

public static final java.lang.String HORIZONTAL_ALIGNMENT
Key for the page horizontal alignment. Value:

VERTICAL_ALIGNMENT

public static final java.lang.String VERTICAL_ALIGNMENT
Key for the page vertical alignment. Value:

HEADER_MARGIN

public static final java.lang.String HEADER_MARGIN
Key for the header margin. Type: java.awt.Insets

FOOTER_MARGIN

public static final java.lang.String FOOTER_MARGIN
Key for the footer margin. Type: java.awt.Insets

HEADER_FONT

public static final java.lang.String HEADER_FONT
Key for the header font. Type: java.awt.Font

FOOTER_FONT

public static final java.lang.String FOOTER_FONT
Key for the footer font. Type: java.awt.Font

HEADER_FORMAT

public static final java.lang.String HEADER_FORMAT
Key for the header format. Type: java.text.MessageFormat

FOOTER_FORMAT

public static final java.lang.String FOOTER_FORMAT
Key for the footer format. Type: java.text.MessageFormat

HEADER_ALIGNMENT

public static final java.lang.String HEADER_ALIGNMENT
Key for the header alignment. Value:

FOOTER_ALIGNMENT

public static final java.lang.String FOOTER_ALIGNMENT
Key for the footer alignment. Value:
Method Detail

createPrintable

public static java.awt.print.Printable createPrintable(java.awt.Image image,
                                                       java.util.Map map)
Creates a Printable for the specified image.
Parameters:
image - the specified image
map - the print properties
Returns:
the Printable for print

createPrintable

public static java.awt.print.Printable createPrintable(java.awt.Component comp,
                                                       java.util.Map map)
Creates a Printable for the specified component.
Parameters:
comp - the specified component
map - the print properties
Returns:
the Printable for print


Copyright © 2001-2003 Extreme Component, Inc. All rights reserved.