JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCPrintEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.table.JCPrintEvent
All Implemented Interfaces:
Serializable

public class JCPrintEvent
extends EventObject

The event posted for each page during printing.

See Also:
JCPrintListener, Serialized Form

Field Summary
protected  Graphics gc
           
protected  int numPages
           
protected  int page
           
static int PRINT_BODY
           
static int PRINT_FOOTER
           
static int PRINT_HEADER
           
protected  com.klg.jclass.table.JCPrintTable printTable
           
protected  int type
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCPrintEvent(Object source, Graphics gc, int page, int numPages, int type, com.klg.jclass.table.JCPrintTable printTable)
           
 
Method Summary
 Graphics getGraphics()
          Gets the graphics for the current page.
 int getMarginUnits()
          Gets the units for margins.
 int getNumHorizontalPages()
          Gets the number of horizontal pages required to print all of the columns in the table.
 int getNumPages()
          Gets the number of pages required to print the table.
 int getNumVerticalPages()
          Gets the number of vertical pages required to print all of the rows in the table.
 int getPage()
          Gets the page number.
 Dimension getPageDimensions()
          Gets the page dimensions.
 Insets getPageMargins()
          Gets the page margins.
 int getPageResolution()
          Gets the page resolution.
 Dimension getTableDimensions()
          Gets the dimension required to print the table on the current page.
 int getType()
          Gets the event type.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRINT_HEADER

public static final int PRINT_HEADER
See Also:
Constant Field Values

PRINT_BODY

public static final int PRINT_BODY
See Also:
Constant Field Values

PRINT_FOOTER

public static final int PRINT_FOOTER
See Also:
Constant Field Values

gc

protected Graphics gc

page

protected int page

numPages

protected int numPages

type

protected int type

printTable

protected com.klg.jclass.table.JCPrintTable printTable
Constructor Detail

JCPrintEvent

public JCPrintEvent(Object source,
                    Graphics gc,
                    int page,
                    int numPages,
                    int type,
                    com.klg.jclass.table.JCPrintTable printTable)
Method Detail

getGraphics

public Graphics getGraphics()
Gets the graphics for the current page.

Returns:

getMarginUnits

public int getMarginUnits()
Gets the units for margins. Valid unit are JCPrintTable.MARGIN_IN_INCHES and JCPrintTable.MARGIN_IN_PIXELS.

Returns:

getNumHorizontalPages

public int getNumHorizontalPages()
Gets the number of horizontal pages required to print all of the columns in the table.

Returns:

getNumPages

public int getNumPages()
Gets the number of pages required to print the table.

Returns:

getNumVerticalPages

public int getNumVerticalPages()
Gets the number of vertical pages required to print all of the rows in the table. Use getNumPages to obtain the total number of pages required to print the entire table.

Returns:

getPage

public int getPage()
Gets the page number.

Returns:

getPageDimensions

public Dimension getPageDimensions()
Gets the page dimensions.

Returns:

getPageMargins

public Insets getPageMargins()
Gets the page margins.

Returns:

getPageResolution

public int getPageResolution()
Gets the page resolution.

Returns:

getTableDimensions

public Dimension getTableDimensions()
Gets the dimension required to print the table on the current page.

Returns:

getType

public int getType()
Gets the event type.

Returns:

Copyright © 2004 Quest Software Inc..
All rights reserved.