library-wpoi
b2007093001

org.phosphoresce.library.wpoi.util
クラス PoiPrintConfig

java.lang.Object
  拡張org.phosphoresce.library.wpoi.util.PoiPrintConfig
すべての実装インタフェース:
java.io.Serializable

public final class PoiPrintConfig
extends java.lang.Object
implements java.io.Serializable

POIシート印刷環境設定クラス。
HSSFSheetが提供するシートに対する環境設定情報のみを保持する。

作成者:
last modified by: Kitagawa
LastUpdate: 2006/01/25
関連項目:
直列化された形式

フィールドの概要
static short PAPER_A4
          用紙サイズ(A4)
static short PAPER_A5
          用紙サイズ(A5)
 
コンストラクタの概要
PoiPrintConfig()
           
 
メソッドの概要
 short getCopies()
          印刷部数を取得します。
 short getDpi()
          印刷品質(dpi)を取得します。
 short getFitPageHorizontalCount()
          指定縦横数改ページ印刷方式での横方向のページ数を取得します。
 short getFitPageVerticalCount()
          指定縦横数改ページ印刷方式での縦方向のページ数を取得します。
 java.lang.String getFooterCenterString()
          フッター中央文字列を取得します。
 java.lang.String getFooterLeftString()
          フッター左部文字列を取得します。
 java.lang.String getFooterRightString()
          フッター右部文字列を取得します。
 java.lang.String getHeaderCenterString()
          ヘッダー中央文字列を取得します。
 java.lang.String getHeaderLeftString()
          ヘッダー左部文字列を取得します。
 java.lang.String getHeaderRightString()
          ヘッダー右部文字列を取得します。
 double getMarginOfBottom()
          ページ印刷マージン下部を取得します。
 double getMarginOfFooter()
          フッターマージンを取得します。
 double getMarginOfHeader()
          ヘッダーマージンを取得します。
 double getMarginOfLeft()
          ページ印刷マージン左部を取得します。
 double getMarginOfRight()
          ページ印刷マージン右部を取得します。
 double getMarginOfTop()
          ページ印刷マージン上部を取得します。
 short getPaperSize()
          用紙サイズを取得します。
 short getScale()
          印刷倍率を取得します。
 short getStartPage()
          先頭ページを取得します。
 boolean isAutobreaks()
          拡大縮小印刷方法を取得します。
 boolean isDraft()
          簡易印刷を取得します。
 boolean isHorizontallyCenter()
          ページ中央印刷(水平方向)方法を取得します。
 boolean isLandscape()
          印刷方向を取得します。
 boolean isMonoPrint()
          白黒印刷を取得します。
 boolean isPrintComment()
          コメント印刷設定を取得します。
 boolean isPrintTopToDown()
          印刷方向(上から下)設定を取得します。
 boolean isVerticallyCenter()
          ページ中央印刷(垂直方向)方法を取得します。
 void setAutobreaks(boolean autobreaks)
          拡大縮小印刷方法を設定します。
 void setCopies(short copies)
          印刷部数を設定します。
 void setDpi(short dpi)
          印刷品質(dpi)を設定します。
 void setDraft(boolean draft)
          簡易印刷を設定します。
 void setFitPageHorizontalCount(short fitPageHorizontalCount)
          指定縦横数改ページ印刷方式での横方向のページ数を設定します。
 void setFitPageVerticalCount(short fitPageVerticalCount)
          指定縦横数改ページ印刷方式での縦方向のページ数を設定します。
 void setFooterCenterString(java.lang.String footerCenterString)
          フッター中央文字列を設定します。
 void setFooterLeftString(java.lang.String footerLeftString)
          フッター左部文字列を設定します。
 void setFooterRightString(java.lang.String footerRightString)
          フッター右部文字列を設定します。
 void setHeaderCenterString(java.lang.String headerCenterString)
          ヘッダー中央文字列を設定します。
 void setHeaderLeftString(java.lang.String headerLeftString)
          ヘッダー左部文字列を設定します。
 void setHeaderRightString(java.lang.String headerRightString)
          ヘッダー右部文字列を設定します。
 void setHorizontallyCenter(boolean horizontallyCenter)
          ページ中央印刷(水平方向)方法を設定します。
 void setLandscape(boolean landscape)
          印刷方向を設定します。
 void setMarginOfBottom(double marginOfBottom)
          ページ印刷マージン下部を設定します。
 void setMarginOfFooter(double marginOfFooter)
          フッターマージンを設定します。
 void setMarginOfHeader(double marginOfHeader)
          ヘッダーマージンを設定します。
 void setMarginOfLeft(double marginOfLeft)
          ページ印刷マージン左部を設定します。
 void setMarginOfRight(double marginOfRight)
          ページ印刷マージン右部を設定します。
 void setMarginOfTop(double marginOfTop)
          ページ印刷マージン上部を設定します。
 void setMonoPrint(boolean monoPrint)
          白黒印刷を設定します。
 void setPaperSize(short paperSize)
          用紙サイズを設定します。
 void setPrintComment(boolean printComment)
          コメント印刷設定を設定します。
 void setPrintTopToDown(boolean printTopToDown)
          印刷方向(上から下)設定を設定します。
 void setScale(short scale)
          印刷倍率を設定します。
 void setStartPage(short startPage)
          先頭ページを設定します。
 void setVerticallyCenter(boolean verticallyCenter)
          ページ中央印刷(垂直方向)方法を設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

PAPER_A4

public static final short PAPER_A4
用紙サイズ(A4)

関連項目:
定数フィールド値

PAPER_A5

public static final short PAPER_A5
用紙サイズ(A5)

関連項目:
定数フィールド値
コンストラクタの詳細

PoiPrintConfig

public PoiPrintConfig()
メソッドの詳細

isLandscape

public boolean isLandscape()
印刷方向を取得します。

戻り値:
印刷方向

setLandscape

public void setLandscape(boolean landscape)
印刷方向を設定します。

パラメータ:
landscape - 印刷方向

isAutobreaks

public boolean isAutobreaks()
拡大縮小印刷方法を取得します。

戻り値:
拡大縮小印刷方法

setAutobreaks

public void setAutobreaks(boolean autobreaks)
拡大縮小印刷方法を設定します。

パラメータ:
autobreaks - 拡大縮小印刷方法

getScale

public short getScale()
印刷倍率を取得します。

戻り値:
印刷倍率

setScale

public void setScale(short scale)
印刷倍率を設定します。

パラメータ:
scale - 印刷倍率

isHorizontallyCenter

public boolean isHorizontallyCenter()
ページ中央印刷(水平方向)方法を取得します。

戻り値:
ページ中央印刷(水平方向)方法

setHorizontallyCenter

public void setHorizontallyCenter(boolean horizontallyCenter)
ページ中央印刷(水平方向)方法を設定します。

パラメータ:
horizontallyCenter - ページ中央印刷(水平方向)方法

isVerticallyCenter

public boolean isVerticallyCenter()
ページ中央印刷(垂直方向)方法を取得します。

戻り値:
ページ中央印刷(垂直方向)方法

setVerticallyCenter

public void setVerticallyCenter(boolean verticallyCenter)
ページ中央印刷(垂直方向)方法を設定します。

パラメータ:
verticallyCenter - ページ中央印刷(垂直方向)方法

getMarginOfBottom

public double getMarginOfBottom()
ページ印刷マージン下部を取得します。

戻り値:
ページ印刷マージン下部

setMarginOfBottom

public void setMarginOfBottom(double marginOfBottom)
ページ印刷マージン下部を設定します。

パラメータ:
marginOfBottom - ページ印刷マージン下部

getMarginOfLeft

public double getMarginOfLeft()
ページ印刷マージン左部を取得します。

戻り値:
ページ印刷マージン左部

setMarginOfLeft

public void setMarginOfLeft(double marginOfLeft)
ページ印刷マージン左部を設定します。

パラメータ:
marginOfLeft - ページ印刷マージン左部

getMarginOfRight

public double getMarginOfRight()
ページ印刷マージン右部を取得します。

戻り値:
ページ印刷マージン右部

setMarginOfRight

public void setMarginOfRight(double marginOfRight)
ページ印刷マージン右部を設定します。

パラメータ:
marginOfRight - ページ印刷マージン右部

getMarginOfTop

public double getMarginOfTop()
ページ印刷マージン上部を取得します。

戻り値:
ページ印刷マージン上部

setMarginOfTop

public void setMarginOfTop(double marginOfTop)
ページ印刷マージン上部を設定します。

パラメータ:
marginOfTop - ページ印刷マージン上部

getFooterCenterString

public java.lang.String getFooterCenterString()
フッター中央文字列を取得します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

戻り値:
フッター中央文字列

setFooterCenterString

public void setFooterCenterString(java.lang.String footerCenterString)
フッター中央文字列を設定します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

パラメータ:
footerCenterString - フッター中央文字列

getFooterLeftString

public java.lang.String getFooterLeftString()
フッター左部文字列を取得します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

戻り値:
フッター左部文字列

setFooterLeftString

public void setFooterLeftString(java.lang.String footerLeftString)
フッター左部文字列を設定します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

パラメータ:
footerLeftString - フッター左部文字列

getFooterRightString

public java.lang.String getFooterRightString()
フッター右部文字列を取得します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

戻り値:
フッター右部文字列

setFooterRightString

public void setFooterRightString(java.lang.String footerRightString)
フッター右部文字列を設定します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

パラメータ:
footerRightString - フッター右部文字列

getHeaderCenterString

public java.lang.String getHeaderCenterString()
ヘッダー中央文字列を取得します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

戻り値:
ヘッダー中央文字列

setHeaderCenterString

public void setHeaderCenterString(java.lang.String headerCenterString)
ヘッダー中央文字列を設定します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

パラメータ:
headerCenterString - ヘッダー中央文字列

getHeaderLeftString

public java.lang.String getHeaderLeftString()
ヘッダー左部文字列を取得します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

戻り値:
ヘッダー左部文字列

setHeaderLeftString

public void setHeaderLeftString(java.lang.String headerLeftString)
ヘッダー左部文字列を設定します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

パラメータ:
headerLeftString - ヘッダー左部文字列

getHeaderRightString

public java.lang.String getHeaderRightString()
ヘッダー右部文字列を取得します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

戻り値:
ヘッダー右部文字列

setHeaderRightString

public void setHeaderRightString(java.lang.String headerRightString)
ヘッダー右部文字列を設定します。
文字列はPoiPrintStringBuilderで提供する装飾文字列に対応する。

パラメータ:
headerRightString - ヘッダー右部文字列

getMarginOfFooter

public double getMarginOfFooter()
フッターマージンを取得します。

戻り値:
marginOfFooter

setMarginOfFooter

public void setMarginOfFooter(double marginOfFooter)
フッターマージンを設定します。

パラメータ:
marginOfFooter - フッターマージン

getMarginOfHeader

public double getMarginOfHeader()
ヘッダーマージンを取得します。

戻り値:
ヘッダーマージン

setMarginOfHeader

public void setMarginOfHeader(double marginOfHeader)
ヘッダーマージンを設定します。

パラメータ:
marginOfHeader - ヘッダーマージン

getFitPageHorizontalCount

public short getFitPageHorizontalCount()
指定縦横数改ページ印刷方式での横方向のページ数を取得します。

戻り値:
指定縦横数改ページ印刷方式での横方向のページ数

setFitPageHorizontalCount

public void setFitPageHorizontalCount(short fitPageHorizontalCount)
指定縦横数改ページ印刷方式での横方向のページ数を設定します。

パラメータ:
fitPageHorizontalCount - 指定縦横数改ページ印刷方式での横方向のページ数

getFitPageVerticalCount

public short getFitPageVerticalCount()
指定縦横数改ページ印刷方式での縦方向のページ数を取得します。

戻り値:
指定縦横数改ページ印刷方式での縦方向のページ数

setFitPageVerticalCount

public void setFitPageVerticalCount(short fitPageVerticalCount)
指定縦横数改ページ印刷方式での縦方向のページ数を設定します。

パラメータ:
fitPageVerticalCount - 指定縦横数改ページ印刷方式での縦方向のページ数

getCopies

public short getCopies()
印刷部数を取得します。

戻り値:
印刷部数

setCopies

public void setCopies(short copies)
印刷部数を設定します。

パラメータ:
copies - 印刷部数

getDpi

public short getDpi()
印刷品質(dpi)を取得します。

戻り値:
印刷品質(dpi)

setDpi

public void setDpi(short dpi)
印刷品質(dpi)を設定します。

パラメータ:
dpi - 印刷品質(dpi)

isDraft

public boolean isDraft()
簡易印刷を取得します。

戻り値:
簡易印刷

setDraft

public void setDraft(boolean draft)
簡易印刷を設定します。

パラメータ:
draft - 簡易印刷

isMonoPrint

public boolean isMonoPrint()
白黒印刷を取得します。

戻り値:
白黒印刷

setMonoPrint

public void setMonoPrint(boolean monoPrint)
白黒印刷を設定します。

パラメータ:
monoPrint - 白黒印刷

getPaperSize

public short getPaperSize()
用紙サイズを取得します。

戻り値:
用紙サイズ

setPaperSize

public void setPaperSize(short paperSize)
用紙サイズを設定します。

パラメータ:
paperSize - 用紙サイズ

isPrintComment

public boolean isPrintComment()
コメント印刷設定を取得します。

戻り値:
コメント印刷設定

setPrintComment

public void setPrintComment(boolean printComment)
コメント印刷設定を設定します。

パラメータ:
printComment - コメント印刷設定

isPrintTopToDown

public boolean isPrintTopToDown()
印刷方向(上から下)設定を取得します。

戻り値:
印刷方向(上から下)設定

setPrintTopToDown

public void setPrintTopToDown(boolean printTopToDown)
印刷方向(上から下)設定を設定します。

パラメータ:
printTopToDown - 印刷方向(上から下)設定

getStartPage

public short getStartPage()
先頭ページを取得します。

戻り値:
先頭ページ

setStartPage

public void setStartPage(short startPage)
先頭ページを設定します。

パラメータ:
startPage - 先頭ページ

library-wpoi
b2007093001