FreeHEP API
Version v1.1

org.freehep.graphicsio
Class PageConstants

java.lang.Object
  |
  +--org.freehep.graphicsio.PageConstants

public class PageConstants
extends Object

This class defines a set of constants which describe a page. Convenience objects are provided for various margins, orientations, rescaling, and standard page sizes.

Version:
$Id: PageConstants.java,v 1.1 2002/07/30 19:11:15 duns Exp $
Author:
Charles Loomis

Field Summary
static Dimension A3_SIZE
          A3 paper size (in points) defined for convenience.
static Dimension A4_SIZE
          A4 paper size (in points) defined for convenience.
static Dimension A5_SIZE
          A5 paper size (in points) defined for convenience.
static Dimension A6_SIZE
          A6 paper size (in points) defined for convenience.
static int EMBED_FONTS_TYPE1
          Convenience object for embedding of fonts as type 1 fonts.
static int EMBED_FONTS_TYPE3
          Convenience object for embedding of fonts as type 3 fonts.
static Dimension EXECUTIVE_SIZE
          Executive paper size (in points) defined for convenience.
static boolean FIT_TO_PAGE
          Convenience object to indicate that the image should be enlarged to fit the page.
static Dimension INTERNATIONAL_SIZE
          International paper size (A4xLetter) (in points) defined for convenience.
static boolean LANDSCAPE
          Convenience object for landscape orientation.
static Insets LARGE_MARGINS
          Convenience object for medium (40pt) margins.
static Dimension LEDGER_SIZE
          Ledger paper size (in points) defined for convenience.
static Dimension LEGAL_SIZE
          Legal paper size (in points) defined for convenience.
static Dimension LETTER_SIZE
          Letter paper size (in points) defined for convenience.
static Insets MEDIUM_MARGINS
          Convenience object for medium (30pt) margins.
static boolean NATURAL_SIZE
          Convenience object to indicate that the image should be printed at its natural size.
static int NO_FONT_EMBEDDING
          Convenience object for no embedding of fonts.
static boolean PORTRAIT
          Convenience object for portrait orientation.
static Insets SMALL_MARGINS
          Convenience object for small (20pt) margins.
 
Constructor Summary
PageConstants()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNATIONAL_SIZE

public static final Dimension INTERNATIONAL_SIZE
International paper size (A4xLetter) (in points) defined for convenience.


A3_SIZE

public static final Dimension A3_SIZE
A3 paper size (in points) defined for convenience.


A4_SIZE

public static final Dimension A4_SIZE
A4 paper size (in points) defined for convenience.


A5_SIZE

public static final Dimension A5_SIZE
A5 paper size (in points) defined for convenience.


A6_SIZE

public static final Dimension A6_SIZE
A6 paper size (in points) defined for convenience.


LETTER_SIZE

public static final Dimension LETTER_SIZE
Letter paper size (in points) defined for convenience.


LEGAL_SIZE

public static final Dimension LEGAL_SIZE
Legal paper size (in points) defined for convenience.


EXECUTIVE_SIZE

public static final Dimension EXECUTIVE_SIZE
Executive paper size (in points) defined for convenience.


LEDGER_SIZE

public static final Dimension LEDGER_SIZE
Ledger paper size (in points) defined for convenience.


SMALL_MARGINS

public static final Insets SMALL_MARGINS
Convenience object for small (20pt) margins.


MEDIUM_MARGINS

public static final Insets MEDIUM_MARGINS
Convenience object for medium (30pt) margins.


LARGE_MARGINS

public static final Insets LARGE_MARGINS
Convenience object for medium (40pt) margins.


PORTRAIT

public static final boolean PORTRAIT
Convenience object for portrait orientation.

See Also:
Constant Field Values

LANDSCAPE

public static final boolean LANDSCAPE
Convenience object for landscape orientation.

See Also:
Constant Field Values

FIT_TO_PAGE

public static final boolean FIT_TO_PAGE
Convenience object to indicate that the image should be enlarged to fit the page.

See Also:
Constant Field Values

NATURAL_SIZE

public static final boolean NATURAL_SIZE
Convenience object to indicate that the image should be printed at its natural size. (Image will always be reduced if the image is too large for the paper.)

See Also:
Constant Field Values

NO_FONT_EMBEDDING

public static final int NO_FONT_EMBEDDING
Convenience object for no embedding of fonts.

See Also:
Constant Field Values

EMBED_FONTS_TYPE3

public static final int EMBED_FONTS_TYPE3
Convenience object for embedding of fonts as type 3 fonts.

See Also:
Constant Field Values

EMBED_FONTS_TYPE1

public static final int EMBED_FONTS_TYPE1
Convenience object for embedding of fonts as type 1 fonts.

See Also:
Constant Field Values
Constructor Detail

PageConstants

public PageConstants()

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.