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 CENTER_MARGIN
          Key for the center margin.
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 SHOW_FOOTER_LINE
          Key for the footer line.
static java.lang.String SHOW_HEADER_LINE
          Key for the header line.
static java.lang.String TABLE_PRINT_AREA
          Key for the table print area.
static java.lang.String TABLE_SHOW_COLUMN_HEADER
          Key for the table column header.
static java.lang.String TABLE_SHOW_GRID_LINE
          Key for the table grid line.
static java.lang.String TABLE_SHOW_ROW_HEADER
          Key for the table row header.
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


CENTER_MARGIN

public static final java.lang.String CENTER_MARGIN
Key for the center margin.

Type: java.awt.Insets

Since:
JDataGrid 1.2

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:


SHOW_HEADER_LINE

public static final java.lang.String SHOW_HEADER_LINE
Key for the header line.

Type: java.lang.Boolean

Since:
JDataGrid 1.2

SHOW_FOOTER_LINE

public static final java.lang.String SHOW_FOOTER_LINE
Key for the footer line.

Type: java.lang.Boolean

Since:
JDataGrid 1.2

TABLE_SHOW_ROW_HEADER

public static final java.lang.String TABLE_SHOW_ROW_HEADER
Key for the table row header.

Type: java.lang.Boolean

Since:
JDataGrid 1.2

TABLE_SHOW_COLUMN_HEADER

public static final java.lang.String TABLE_SHOW_COLUMN_HEADER
Key for the table column header.

Type: java.lang.Boolean

Since:
JDataGrid 1.2

TABLE_SHOW_GRID_LINE

public static final java.lang.String TABLE_SHOW_GRID_LINE
Key for the table grid line.

Type: java.lang.Boolean

Since:
JDataGrid 1.2

TABLE_PRINT_AREA

public static final java.lang.String TABLE_PRINT_AREA
Key for the table print area.

Type: com.zfqjava.swing.cell.Cell

Since:
JDataGrid 1.2
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.