FreeHEP API
Version v1.2

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.3 2003/05/14 04:10:14 duns Exp $
Author:
Charles Loomis, Mark Donszelmann

Field Summary
static String A3
           
static String A4
           
static String A5
           
static String A6
           
static String BACKGROUND
           
static String BACKGROUND_COLOR
           
static String BEST_FIT
           
static String EXECUTIVE
           
static String FIT_TO_PAGE
           
static String INTERNATIONAL
           
static String LANDSCAPE
           
static String LARGE
           
static String LEDGER
           
static String LEGAL
           
static String LETTER
           
static String MEDIUM
           
static String ORIENTATION
           
static String PAGE_MARGINS
           
static String PAGE_SIZE
           
static String PORTRAIT
           
static String SMALL
           
static String TRANSPARENT
           
 
Method Summary
static Insets getMargins(String size)
           
static Insets getMargins(String size, String orientation)
           
static String[] getMarginsList()
           
static String[] getOrientationList()
           
static Dimension getSize(String size)
           
static Dimension getSize(String size, String orientation)
           
static String[] getSizeList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIENTATION

public static final String ORIENTATION
See Also:
Constant Field Values

PORTRAIT

public static final String PORTRAIT
See Also:
Constant Field Values

LANDSCAPE

public static final String LANDSCAPE
See Also:
Constant Field Values

BEST_FIT

public static final String BEST_FIT
See Also:
Constant Field Values

PAGE_SIZE

public static final String PAGE_SIZE
See Also:
Constant Field Values

INTERNATIONAL

public static final String INTERNATIONAL
See Also:
Constant Field Values

A3

public static final String A3
See Also:
Constant Field Values

A4

public static final String A4
See Also:
Constant Field Values

A5

public static final String A5
See Also:
Constant Field Values

A6

public static final String A6
See Also:
Constant Field Values

LETTER

public static final String LETTER
See Also:
Constant Field Values

LEGAL

public static final String LEGAL
See Also:
Constant Field Values

EXECUTIVE

public static final String EXECUTIVE
See Also:
Constant Field Values

LEDGER

public static final String LEDGER
See Also:
Constant Field Values

PAGE_MARGINS

public static final String PAGE_MARGINS
See Also:
Constant Field Values

SMALL

public static final String SMALL
See Also:
Constant Field Values

MEDIUM

public static final String MEDIUM
See Also:
Constant Field Values

LARGE

public static final String LARGE
See Also:
Constant Field Values

FIT_TO_PAGE

public static final String FIT_TO_PAGE
See Also:
Constant Field Values

TRANSPARENT

public static final String TRANSPARENT
See Also:
Constant Field Values

BACKGROUND

public static final String BACKGROUND
See Also:
Constant Field Values

BACKGROUND_COLOR

public static final String BACKGROUND_COLOR
See Also:
Constant Field Values
Method Detail

getOrientationList

public static final String[] getOrientationList()

getSizeList

public static final String[] getSizeList()

getSize

public static final Dimension getSize(String size)

getSize

public static final Dimension getSize(String size,
                                      String orientation)

getMarginsList

public static final String[] getMarginsList()

getMargins

public static final Insets getMargins(String size)

getMargins

public static final Insets getMargins(String size,
                                      String orientation)

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.