com.crionics.jpdf.creator
Class JPdfPageFormat

java.lang.Object
  extended by java.awt.print.PageFormat
      extended by com.crionics.jpdf.creator.JPdfPageFormat
All Implemented Interfaces:
java.lang.Cloneable

public class JPdfPageFormat
extends java.awt.print.PageFormat

Defines all the standard page size values. PDF has its own margin definition - for this reason the java paper margins or set to 0.


Field Summary
static java.awt.print.PageFormat _11X17
           
static java.awt.print.PageFormat A0
           
static java.awt.print.PageFormat A1
           
static java.awt.print.PageFormat A10
           
static java.awt.print.PageFormat A2
           
static java.awt.print.PageFormat A3
           
static java.awt.print.PageFormat A4
           
static java.awt.print.PageFormat A5
           
static java.awt.print.PageFormat A6
           
static java.awt.print.PageFormat A7
           
static java.awt.print.PageFormat A8
           
static java.awt.print.PageFormat A9
           
static java.awt.print.PageFormat ARCH_A
           
static java.awt.print.PageFormat ARCH_B
           
static java.awt.print.PageFormat ARCH_C
           
static java.awt.print.PageFormat ARCH_D
           
static java.awt.print.PageFormat ARCH_E
           
static java.awt.print.PageFormat B0
           
static java.awt.print.PageFormat B1
           
static java.awt.print.PageFormat B2
           
static java.awt.print.PageFormat B3
           
static java.awt.print.PageFormat B4
           
static java.awt.print.PageFormat B5
           
static java.awt.print.PageFormat FLSA
           
static java.awt.print.PageFormat FLSE
           
static java.awt.print.PageFormat HALFLETTER
           
static java.awt.print.PageFormat LEDGER
           
static java.awt.print.PageFormat LEGAL
           
static java.awt.print.PageFormat LETTER
           
static java.awt.print.PageFormat NOTE
           
 
Fields inherited from class java.awt.print.PageFormat
LANDSCAPE, PORTRAIT, REVERSE_LANDSCAPE
 
Constructor Summary
JPdfPageFormat(float width, float height)
          Creates a new PageFormat
JPdfPageFormat(float width, float height, float marginLeft, float marginRight, float marginTop, float marginBottom)
          Creates a new PageFormat
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.awt.print.PageFormat
clone, getHeight, getImageableHeight, getImageableWidth, getImageableX, getImageableY, getMatrix, getOrientation, getPaper, getWidth, setOrientation, setPaper
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LETTER

public static final java.awt.print.PageFormat LETTER

NOTE

public static final java.awt.print.PageFormat NOTE

LEGAL

public static final java.awt.print.PageFormat LEGAL

A0

public static final java.awt.print.PageFormat A0

A1

public static final java.awt.print.PageFormat A1

A2

public static final java.awt.print.PageFormat A2

A3

public static final java.awt.print.PageFormat A3

A4

public static final java.awt.print.PageFormat A4

A5

public static final java.awt.print.PageFormat A5

A6

public static final java.awt.print.PageFormat A6

A7

public static final java.awt.print.PageFormat A7

A8

public static final java.awt.print.PageFormat A8

A9

public static final java.awt.print.PageFormat A9

A10

public static final java.awt.print.PageFormat A10

B0

public static final java.awt.print.PageFormat B0

B1

public static final java.awt.print.PageFormat B1

B2

public static final java.awt.print.PageFormat B2

B3

public static final java.awt.print.PageFormat B3

B4

public static final java.awt.print.PageFormat B4

B5

public static final java.awt.print.PageFormat B5

ARCH_E

public static final java.awt.print.PageFormat ARCH_E

ARCH_D

public static final java.awt.print.PageFormat ARCH_D

ARCH_C

public static final java.awt.print.PageFormat ARCH_C

ARCH_B

public static final java.awt.print.PageFormat ARCH_B

ARCH_A

public static final java.awt.print.PageFormat ARCH_A

FLSA

public static final java.awt.print.PageFormat FLSA

FLSE

public static final java.awt.print.PageFormat FLSE

HALFLETTER

public static final java.awt.print.PageFormat HALFLETTER

_11X17

public static final java.awt.print.PageFormat _11X17

LEDGER

public static final java.awt.print.PageFormat LEDGER
Constructor Detail

JPdfPageFormat

public JPdfPageFormat(float width,
                      float height)
Creates a new PageFormat

Parameters:
width - page width
height - page height

JPdfPageFormat

public JPdfPageFormat(float width,
                      float height,
                      float marginLeft,
                      float marginRight,
                      float marginTop,
                      float marginBottom)
Creates a new PageFormat

Parameters:
width - page width
height - page height
marginLeft - left margin
marginRight - right margin
marginTop - top margin
marginBottom - bottom margin
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1999-2007 Crionics. All Rights Reserved.