|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
帳票印刷が可能なコンポーネントインターフェイス。
帳票印刷が可能なコンポーネントはこのインターフェイスの実装となる。
フィールドの概要 |
インタフェース java.awt.print.Printable から継承したフィールド |
NO_SUCH_PAGE, PAGE_EXISTS |
メソッドの概要 | |
void |
addPaperElement(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
帳票要素を追加する。 |
void |
addPaperPage()
帳票のページを追加。 |
void |
addPaperPage(int pageno)
帳票のページを追加。 |
int |
getGridSize()
グリッド線の間隔を取得する。 |
float |
getPaperDrawHeight()
帳票の描画縦幅を取得する。 |
float |
getPaperDrawWidth()
帳票の描画横幅を取得する。 |
jp.go.aist.dmrc.platform.base.print.PFPaperElement |
getPaperElement(int index)
帳票要素を取得する。 |
int |
getPaperElementCount()
帳票要素数を取得する。 |
int |
getPaperElementIndex(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
帳票要素の位置を取得する。 |
float |
getPaperHeight()
帳票の縦幅を取得する。 |
int |
getPaperOrientation()
帳票方向を取得する。 |
int |
getPaperPageCount()
帳票のページ数を取得。 |
int |
getPaperSize()
帳票サイズを取得する。 |
float |
getPaperWidth()
帳票の横幅を取得する。 |
float |
getPrintBottomMargin()
帳票の下余白を取得する。 |
float |
getPrintLeftMargin()
帳票の左余白を取得する。 |
float |
getPrintRightMargin()
帳票の右余白を取得する。 |
float |
getPrintTopMargin()
帳票の上余白を取得する。 |
void |
movePaperElement(jp.go.aist.dmrc.platform.base.print.PFPaperElement element,
int index)
帳票要素を移動する。 |
void |
movePaperElementBottom(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
帳票要素を最背面に移動する。 |
void |
movePaperElementTop(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
帳票要素を最前面に移動する。 |
void |
previewPaper(java.awt.Component parent)
帳票をプレビューする。 |
void |
printPaper()
帳票を印刷する。 |
void |
printPaper(boolean showDialog)
帳票を印刷する。 |
void |
removePaperElement(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
帳票要素を削除する。 |
void |
removePaperPage()
帳票のページを削除。 |
void |
removePaperPage(int pageno)
帳票のページを削除。 |
void |
setGridSize(int gridSize)
グリッド線の間隔を設定する。 |
void |
setPaperHeight(float height)
帳票の縦幅を設定する。 |
void |
setPaperOrientation(int orientation)
帳票方向を設定する。 |
void |
setPaperPageCount(int num)
帳票のページ数を設定する。 |
void |
setPaperSize(float width,
float height)
帳票サイズを設定する。 |
void |
setPaperSize(int size)
帳票サイズを設定する。 |
void |
setPaperWidth(float width)
帳票の横幅を設定する。 |
void |
setPrintBottomMargin(float bottom)
帳票の下余白を設定する。 |
void |
setPrintLeftMargin(float left)
帳票の左余白を設定する。 |
void |
setPrintMargin(float top,
float bottom,
float left,
float right)
帳票の余白を設定する。 |
void |
setPrintRightMargin(float right)
帳票の右余白を設定する。 |
void |
setPrintTopMargin(float top)
帳票の上余白を設定する。 |
インタフェース jp.go.aist.dmrc.platform.base.PFComponent から継承したメソッド |
getComponentID, getComponentKey, getComponentName, getComponentPublicName, getComponentString, isAllowPullTransfer, isAllowPushTransfer, isAllowRemoteInvocation, localeUpdated, setAllowPullTransfer, setAllowPushTransfer, setAllowRemoteInvocation, setComponentID, setComponentKey, setComponentPublicName |
インタフェース java.awt.print.Printable から継承したメソッド |
print |
メソッドの詳細 |
public int getPaperElementCount()
public jp.go.aist.dmrc.platform.base.print.PFPaperElement getPaperElement(int index)
index
- 取得対象インデックス
public void addPaperElement(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
element
- 帳票要素public void removePaperElement(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
element
- 帳票要素public void printPaper()
public void printPaper(boolean showDialog)
showDialog
- 印刷ダイアログ表示public void previewPaper(java.awt.Component parent)
parent
- 親コンポーネントpublic void setPaperSize(int size)
size
- 帳票サイズpublic int getPaperSize()
public void setPaperSize(float width, float height) throws PFComponentException
width
- 帳票横幅(単位:mm)height
- 帳票縦幅(単位:mm)
PFComponentException
- 指定されたサイズの値が正しくないpublic float getPaperWidth()
public float getPaperHeight()
public void setPaperWidth(float width) throws PFComponentException
width
- 帳票横幅(単位:mm)
PFComponentException
- 指定されたサイズの値が正しくないpublic void setPaperHeight(float height) throws PFComponentException
height
- 帳票縦幅(単位:mm)
PFComponentException
- 指定されたサイズの値が正しくないpublic void setPaperOrientation(int orientation)
orientation
- 帳票方向(横長:PAPER_ORIENTATION_LANDSCAPE、縦長:PAPER_ORIENTATION_PORTRAIT)public int getPaperOrientation()
public void setPrintMargin(float top, float bottom, float left, float right) throws PFComponentException
top
- 上余白(単位:mm)bottom
- 下余白(単位:mm)left
- 左余白(単位:mm)right
- 右余白(単位:mm)
PFComponentException
- 指定された余白の値が正しくないpublic float getPrintTopMargin()
public float getPrintBottomMargin()
public float getPrintLeftMargin()
public float getPrintRightMargin()
public void setPrintTopMargin(float top) throws PFComponentException
top
- 上余白(単位:mm)
PFComponentException
- 指定された余白の値が正しくないpublic void setPrintBottomMargin(float bottom) throws PFComponentException
bottom
- 下余白(単位:mm)
PFComponentException
- 指定された余白の値が正しくないpublic void setPrintLeftMargin(float left) throws PFComponentException
left
- 左余白(単位:mm)
PFComponentException
- 指定された余白の値が正しくないpublic void setPrintRightMargin(float right) throws PFComponentException
right
- 右余白(単位:mm)
PFComponentException
- 指定された余白の値が正しくないpublic float getPaperDrawWidth()
public float getPaperDrawHeight()
public void setGridSize(int gridSize)
gridSize
- グリッド線の間隔public int getGridSize()
public void movePaperElement(jp.go.aist.dmrc.platform.base.print.PFPaperElement element, int index)
element
- 帳票要素index
- 移動位置public void movePaperElementBottom(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
element
- 帳票要素public void movePaperElementTop(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
element
- 帳票要素public int getPaperElementIndex(jp.go.aist.dmrc.platform.base.print.PFPaperElement element)
element
- 帳票要素
public void setPaperPageCount(int num)
num
- ページ数public int getPaperPageCount()
public void addPaperPage(int pageno)
pageno
- ページ番号public void addPaperPage()
public void removePaperPage()
public void removePaperPage(int pageno)
pageno
- ページ番号
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |