PageConstants

Inheritance: java.lang.Object

public class PageConstants

このクラスは、ページを記述する定数のセットを定義します。さまざまな余白、向き、リスケーリング、標準ページサイズ用の便利なオブジェクトが提供されています。

フィールド

フィールド説明
BACKGROUND背景キー
BACKGROUND_COLOR背景色キー
FIT_TO_PAGEコンテンツをページに合わせるキー
MARGINS_LARGE“Large"ページ余白の値
MARGINS_MEDIUM“Medium"ページ余白の値
MARGINS_SMALL“Small"ページ余白の値
MARGINS_ZERO“Zero"ページ余白の値
ORIENTATIONページの向き(Portrait または Landscape)を指定するキー。
ORIENTATION_BEST_FIT“Best fit"向きの値
ORIENTATION_LANDSCAPE“Landscape"向きの値
ORIENTATION_PORTRAIT“Portrait"向きの値
PAGE_MARGINSページ余白キー
PAGE_SIZEページサイズキー
SIZE_A3“A3” ページサイズの値
SIZE_A4“A4” ページサイズの値
SIZE_A5“A5” ページサイズの値
SIZE_A6“A6” ページサイズの値
SIZE_EXECUTIVE“Executive” ページサイズの値
SIZE_INTERNATIONAL“International” ページサイズの値
SIZE_LEDGER“Ledger” ページサイズの値
SIZE_LEGAL“Legal” ページサイズの値
SIZE_LETTER“Letter” ページサイズの値
TRANSPARENT透明な背景キー
VIEWING_ORIENTATIONページ上のコンテンツの向きを区別する回転行列のための表示向きキー。

メソッド

メソッド説明
equals(Object arg0)
getClass()
getMargins(Insets insets, String orientation)指定された向きでページ余白を計算する
getMargins(String size)
getOrientationList()
getSize(Dimension size, String orientation)指定されたページ向きでページサイズを計算する
getSize(String size)“Portrait” ページ向きでページサイズを計算する
getSize(String size, String orientation)指定されたページ向きでページサイズを計算する
getSizeList()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

BACKGROUND

public static final String BACKGROUND

背景キー

BACKGROUND_COLOR

public static final String BACKGROUND_COLOR

背景色キー

FIT_TO_PAGE

public static final String FIT_TO_PAGE

コンテンツをページに合わせるキー

MARGINS_LARGE

public static final String MARGINS_LARGE

“Large"ページ余白の値

MARGINS_MEDIUM

public static final String MARGINS_MEDIUM

“Medium"ページ余白の値

MARGINS_SMALL

public static final String MARGINS_SMALL

“Small"ページ余白の値

MARGINS_ZERO

public static final String MARGINS_ZERO

“Zero"ページ余白の値

ORIENTATION

public static final String ORIENTATION

ページの向き(Portrait または Landscape)を指定するキー。

ORIENTATION_BEST_FIT

public static final String ORIENTATION_BEST_FIT

“Best fit"向きの値

ORIENTATION_LANDSCAPE

public static final String ORIENTATION_LANDSCAPE

“Landscape"向きの値

ORIENTATION_PORTRAIT

public static final String ORIENTATION_PORTRAIT

“Portrait"向きの値

PAGE_MARGINS

public static final String PAGE_MARGINS

ページ余白キー

PAGE_SIZE

public static final String PAGE_SIZE

ページサイズキー

SIZE_A3

public static final String SIZE_A3

“A3” ページサイズの値

SIZE_A4

public static final String SIZE_A4

“A4” ページサイズの値

SIZE_A5

public static final String SIZE_A5

“A5” ページサイズの値

SIZE_A6

public static final String SIZE_A6

“A6” ページサイズの値

SIZE_EXECUTIVE

public static final String SIZE_EXECUTIVE

“Executive” ページサイズの値

SIZE_INTERNATIONAL

public static final String SIZE_INTERNATIONAL

“International” ページサイズの値

SIZE_LEDGER

public static final String SIZE_LEDGER

“Ledger” ページサイズの値

public static final String SIZE_LEGAL

“Legal” ページサイズの値

SIZE_LETTER

public static final String SIZE_LETTER

“Letter” ページサイズの値

TRANSPARENT

public static final String TRANSPARENT

透明な背景キー

VIEWING_ORIENTATION

public static final String VIEWING_ORIENTATION

ページ上のコンテンツの向きを区別する回転行列のための表示向きキー。デフォルトの表示向き行列は単位行列です。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメータ説明
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getMargins(Insets insets, String orientation)

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

指定された向きでページ余白を計算する

Parameters:

パラメータ説明
インセットjava.awt.Insets元の余白
向きjava.lang.Stringページの向き

Returns: java.awt.Insets - 指定された向きの事前定義されたページ余白

getMargins(String size)

public static final Insets getMargins(String size)

Parameters:

パラメータ説明
sizejava.lang.String事前定義されたページサイズ

Returns: java.awt.Insets - 事前定義されたページ余白

getOrientationList()

public static final String[] getOrientationList()

Returns: java.lang.String[] - 利用可能な向きの値

getSize(Dimension size, String orientation)

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

指定されたページ向きでページサイズを計算する

Parameters:

パラメータ説明
sizejava.awt.Dimension元のページサイズ
向きjava.lang.Stringページの向き

Returns: java.awt.Dimension - 計算されたページサイズ

getSize(String size)

public static final Dimension getSize(String size)

“Portrait” ページ向きでページサイズを計算する

Parameters:

パラメータ説明
sizejava.lang.String事前定義されたページサイズ

Returns: java.awt.Dimension - 計算されたページサイズ

getSize(String size, String orientation)

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

指定されたページ向きでページサイズを計算する

Parameters:

パラメータ説明
sizejava.lang.String事前定義されたページサイズ
向きjava.lang.Stringページの向き

Returns: java.awt.Dimension - 計算されたページサイズ

getSizeList()

public static final String[] getSizeList()

Returns: java.lang.String[] - 利用可能なページサイズの値

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

パラメータ説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメータ説明
arg0long
arg1int