org.freehep.graphicsio
Class PageConstants
java.lang.Object
org.freehep.graphicsio.PageConstants
public class PageConstants
- extends java.lang.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 10233 2007-01-03 18:59:24Z duns $
- Author:
- Charles Loomis, Mark Donszelmann
Method Summary |
static java.awt.Insets |
getMargins(java.awt.Insets insets,
java.lang.String orientation)
|
static java.awt.Insets |
getMargins(java.lang.String size)
|
static java.lang.String[] |
getOrientationList()
|
static java.awt.Dimension |
getSize(java.lang.String size)
|
static java.awt.Dimension |
getSize(java.lang.String size,
java.lang.String orientation)
|
static java.lang.String[] |
getSizeList()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORIENTATION
public static final java.lang.String ORIENTATION
- See Also:
- Constant Field Values
PORTRAIT
public static final java.lang.String PORTRAIT
- See Also:
- Constant Field Values
LANDSCAPE
public static final java.lang.String LANDSCAPE
- See Also:
- Constant Field Values
BEST_FIT
public static final java.lang.String BEST_FIT
- See Also:
- Constant Field Values
PAGE_SIZE
public static final java.lang.String PAGE_SIZE
- See Also:
- Constant Field Values
INTERNATIONAL
public static final java.lang.String INTERNATIONAL
- See Also:
- Constant Field Values
A3
public static final java.lang.String A3
- See Also:
- Constant Field Values
A4
public static final java.lang.String A4
- See Also:
- Constant Field Values
A5
public static final java.lang.String A5
- See Also:
- Constant Field Values
A6
public static final java.lang.String A6
- See Also:
- Constant Field Values
CUSTOM_PAGE_SIZE
public static final java.lang.String CUSTOM_PAGE_SIZE
- Value for CUSTOM_PAGE_SIZE and Key for a Dimension
object if custom size is used
- See Also:
- Constant Field Values
LETTER
public static final java.lang.String LETTER
- See Also:
- Constant Field Values
LEGAL
public static final java.lang.String LEGAL
- See Also:
- Constant Field Values
EXECUTIVE
public static final java.lang.String EXECUTIVE
- See Also:
- Constant Field Values
LEDGER
public static final java.lang.String LEDGER
- See Also:
- Constant Field Values
PAGE_MARGINS
public static final java.lang.String PAGE_MARGINS
- See Also:
- Constant Field Values
SMALL
public static final java.lang.String SMALL
- See Also:
- Constant Field Values
MEDIUM
public static final java.lang.String MEDIUM
- See Also:
- Constant Field Values
LARGE
public static final java.lang.String LARGE
- See Also:
- Constant Field Values
FIT_TO_PAGE
public static final java.lang.String FIT_TO_PAGE
- See Also:
- Constant Field Values
TRANSPARENT
public static final java.lang.String TRANSPARENT
- See Also:
- Constant Field Values
BACKGROUND
public static final java.lang.String BACKGROUND
- See Also:
- Constant Field Values
BACKGROUND_COLOR
public static final java.lang.String BACKGROUND_COLOR
- See Also:
- Constant Field Values
getOrientationList
public static final java.lang.String[] getOrientationList()
getSizeList
public static final java.lang.String[] getSizeList()
getSize
public static final java.awt.Dimension getSize(java.lang.String size)
getSize
public static final java.awt.Dimension getSize(java.lang.String size,
java.lang.String orientation)
getMargins
public static final java.awt.Insets getMargins(java.lang.String size)
getMargins
public static final java.awt.Insets getMargins(java.awt.Insets insets,
java.lang.String orientation)
Copyright © 2000-2007 FreeHEP. All Rights Reserved.