JComponentPack 1.5.0

com.zfqjava.swing
Class PrintFactory

java.lang.Object
  extended by com.zfqjava.swing.PrintFactory

public class PrintFactory
extends Object

PrintFactory create Printable for print.

Since:
JDataGrid 1.1

Field Summary
static String CENTER_MARGIN
          Key for the center margin.
static String FIT_HEIGHT
          Key for the fit height.
static String FIT_WIDTH
          Key for the fit width.
static String FOOTER_ALIGNMENT
          Key for the footer alignment.
static String FOOTER_FONT
          Key for the footer font.
static String FOOTER_FORMAT
          Key for the footer format.
static String FOOTER_ICON
          Key for the footer icon.
static String FOOTER_ICON_ALIGNMENT
          Key for the footer icon alignment.
static String FOOTER_MARGIN
          Key for the footer margin.
static String FOOTER_TEXT_ALIGNMENT
          Key for the footer text alignment.
static String HEADER_ALIGNMENT
          Key for the header alignment.
static String HEADER_FONT
          Key for the header font.
static String HEADER_FORMAT
          Key for the header format.
static String HEADER_ICON
          Key for the header icon.
static String HEADER_ICON_ALIGNMENT
          Key for the header icon alignment.
static String HEADER_MARGIN
          Key for the header margin.
static String HEADER_TEXT_ALIGNMENT
          Key for the header text alignment.
static String HORIZONTAL_ALIGNMENT
          Key for the page horizontal alignment.
static String KEEP_ASPECT_RADIO
          Identifies keep the aspect radio for fit width or fit height.
static String MARGIN
          Key for the page margin.
static String ORIENTATION
          Key for the page orientation.
static String SHOW_FOOTER_LINE
          Key for the footer line.
static String SHOW_HEADER_LINE
          Key for the header line.
static String TABLE_PRINT_AREA
          Key for the table print area.
static String TABLE_SHOW_COLUMN_HEADER
          Key for the table column header.
static String TABLE_SHOW_GRID_LINE
          Key for the table grid line.
static String TABLE_SHOW_ROW_HEADER
          Key for the table row header.
static String VERTICAL_ALIGNMENT
          Key for the page vertical alignment.
 
Method Summary
static Printable createPrintable(Component comp, Map map)
          Creates a Printable for the specified component.
static Printable createPrintable(Image image, 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 String MARGIN
Key for the page margin.

Type: java.awt.Insets

See Also:
Constant Field Values

ORIENTATION

public static final String ORIENTATION
Key for the page orientation.

Value:

See Also:
Constant Field Values

HORIZONTAL_ALIGNMENT

public static final String HORIZONTAL_ALIGNMENT
Key for the page horizontal alignment.

Value:

See Also:
Constant Field Values

VERTICAL_ALIGNMENT

public static final String VERTICAL_ALIGNMENT
Key for the page vertical alignment.

Value:

See Also:
Constant Field Values

HEADER_MARGIN

public static final String HEADER_MARGIN
Key for the header margin.

Type: java.awt.Insets

See Also:
Constant Field Values

CENTER_MARGIN

public static final String CENTER_MARGIN
Key for the center margin.

Type: java.awt.Insets

Since:
JDataGrid 1.2
See Also:
Constant Field Values

FOOTER_MARGIN

public static final String FOOTER_MARGIN
Key for the footer margin.

Type: java.awt.Insets

See Also:
Constant Field Values

HEADER_FONT

public static final String HEADER_FONT
Key for the header font.

Type: java.awt.Font

See Also:
Constant Field Values

FOOTER_FONT

public static final String FOOTER_FONT
Key for the footer font.

Type: java.awt.Font

See Also:
Constant Field Values

HEADER_FORMAT

public static final String HEADER_FORMAT
Key for the header format.

Type: java.text.MessageFormat

See Also:
Constant Field Values

FOOTER_FORMAT

public static final String FOOTER_FORMAT
Key for the footer format.

Type: java.text.MessageFormat

See Also:
Constant Field Values

HEADER_ICON

public static final String HEADER_ICON
Key for the header icon.

Type: javax.swing.Icon

Since:
JDataGrid 1.5.1
See Also:
Constant Field Values

FOOTER_ICON

public static final String FOOTER_ICON
Key for the footer icon.

Type: javax.swing.Icon

Since:
JDataGrid 1.5.1
See Also:
Constant Field Values

HEADER_ALIGNMENT

public static final String HEADER_ALIGNMENT
Key for the header alignment.

Value:

See Also:
Constant Field Values

FOOTER_ALIGNMENT

public static final String FOOTER_ALIGNMENT
Key for the footer alignment.

Value:

See Also:
Constant Field Values

HEADER_TEXT_ALIGNMENT

public static final String HEADER_TEXT_ALIGNMENT
Key for the header text alignment.

Value:

Since:
JDataGrid 1.5.1
See Also:
Constant Field Values

FOOTER_TEXT_ALIGNMENT

public static final String FOOTER_TEXT_ALIGNMENT
Key for the footer text alignment.

Value:

Since:
JDataGrid 1.5.1
See Also:
Constant Field Values

HEADER_ICON_ALIGNMENT

public static final String HEADER_ICON_ALIGNMENT
Key for the header icon alignment.

Value:

Since:
JDataGrid 1.5.1
See Also:
Constant Field Values

FOOTER_ICON_ALIGNMENT

public static final String FOOTER_ICON_ALIGNMENT
Key for the footer icon alignment.

Value:

Since:
JDataGrid 1.5.1
See Also:
Constant Field Values

SHOW_HEADER_LINE

public static final String SHOW_HEADER_LINE
Key for the header line.

Type: java.lang.Boolean

Since:
JDataGrid 1.2
See Also:
Constant Field Values

SHOW_FOOTER_LINE

public static final String SHOW_FOOTER_LINE
Key for the footer line.

Type: java.lang.Boolean

Since:
JDataGrid 1.2
See Also:
Constant Field Values

TABLE_SHOW_ROW_HEADER

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

Type: java.lang.Boolean

Since:
JDataGrid 1.2
See Also:
Constant Field Values

TABLE_SHOW_COLUMN_HEADER

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

Type: java.lang.Boolean

Since:
JDataGrid 1.2
See Also:
Constant Field Values

TABLE_SHOW_GRID_LINE

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

Type: java.lang.Boolean

Since:
JDataGrid 1.2
See Also:
Constant Field Values

TABLE_PRINT_AREA

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

Type: com.zfqjava.swing.cell.Cell

Since:
JDataGrid 1.2
See Also:
Constant Field Values

FIT_WIDTH

public static final String FIT_WIDTH
Key for the fit width.

Type: java.lang.Boolean

Since:
JDataGrid 1.7
See Also:
Constant Field Values

FIT_HEIGHT

public static final String FIT_HEIGHT
Key for the fit height.

Type: java.lang.Boolean

Since:
JDataGrid 1.7
See Also:
Constant Field Values

KEEP_ASPECT_RADIO

public static final String KEEP_ASPECT_RADIO
Identifies keep the aspect radio for fit width or fit height.

Type: java.lang.Boolean

Since:
JDataGrid 2.0.1
See Also:
Constant Field Values
Method Detail

createPrintable

public static Printable createPrintable(Image image,
                                        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 Printable createPrintable(Component comp,
                                        Map map)
Creates a Printable for the specified component.

Parameters:
comp - the specified component
map - the print properties
Returns:
the Printable for print

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.