public class PFPaperTableElement extends PFPaperDataElement
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
COLUMN_DRAWTYPE_BARCODE
列の描画タイプ:バーコード
|
static int |
COLUMN_DRAWTYPE_IMAGEDATA
列の描画タイプ:イメージ
|
static int |
COLUMN_DRAWTYPE_QRCODE
列の描画タイプ:QRコード
|
static int |
COLUMN_DRAWTYPE_STRING
列の描画タイプ:文字列
|
drawHeight, drawWidth, drawX, drawY, pageNo, PROPERTY_ERROR_ILLEGAL_DRAW_POSITION, PROPERTY_ERROR_ILLEGAL_DRAW_SIZE
コンストラクタと説明 |
---|
PFPaperTableElement()
テーブル帳票要素を生成する。
|
PFPaperTableElement(float width,
float height)
テーブル帳票要素を生成する。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
adjustRowHeight()
行高さサイズを自動調整する。
|
void |
draw(java.awt.Graphics2D g)
描画する。
|
PFBarCodeType |
getBarCodeColumnCodeType(int column)
バーコード列のバーコード体系を取得する
|
java.awt.Color |
getBorderColor()
罫線色を取得する。
|
java.awt.Color |
getColumnBorderColor(int index)
インデックスを指定して罫線色を取得する。
|
float |
getColumnBorderWidth()
カラム区切り罫線の太さを取得する。
|
float |
getColumnBorderWidth(int index)
インデックスを指定して罫線太さを取得する。
|
int |
getColumnCount()
カラム数を取得する。
|
int |
getColumnDrawType(int column)
列の描画タイプを取得する
|
float |
getColumnWidth(int index)
カラム幅を取得する。
|
java.lang.String |
getDisplayString()
表示用文字列を取得する。
|
int |
getDrawRowCount()
テーブル要素の印刷行数を取得する(連結・繰り返し印刷機能)。
|
float |
getHeaderBorderWidth()
ヘッダ区切り罫線の太さを取得する。
|
char |
getQRCodeColumnLevel(int column)
QRコード列コードエラー訂正レベルを取得する
|
int |
getQRCodeColumnPixel(int column)
QRコード列コード倍率を取得する
|
int |
getQRCodeColumnVersion(int column)
QRコード列コードバージョンを取得する
|
float |
getRowBorderWidth()
行区切り罫線の太さを取得する。
|
int |
getRowCount()
行数を取得する。
|
float |
getRowHeight(int index)
行高さを取得する。
|
int |
getStartRowIndex()
テーブル要素の印刷開始行インデックスを取得する(連結・繰り返し印刷機能)。
|
float |
getTableBorderWidth()
外周罫線の太さを取得する。
|
PFPaperElementTextDrawAttribute |
getTableColumnDrawAttribute(int index)
テーブルカラムテキスト描画属性を取得する。
|
PFPaperElementTextFormatAttribute |
getTableColumnFormatAttribute(int index)
テーブルカラムテキスト表示形式属性を取得する。
|
java.lang.String |
getTableColumnName(int index)
テーブル列名を取得する。
|
java.lang.Class |
getTableColumnType(int index)
テーブル列型を取得する。
|
PFObjectTable |
getTableData()
テーブルデータを取得する。
|
PFPaperElementTextDrawAttribute |
getTableDrawAttribute()
テーブルテキスト描画属性を取得する。
|
PFPaperElementTextDrawAttribute |
getTableHeaderDrawAttribute()
テーブルヘッダテキスト描画属性を取得する。
|
float |
getTextDrawHeight(int index)
テキスト表示高さを取得する。
|
boolean |
getUseTableCellBackgroundColor()
セルの背景色をテーブルコンポーネントから取得するか否かを取得する
|
boolean |
getUseTableCellFont()
セルのフォントをテーブルコンポーネントから取得するか否かを取得する
|
boolean |
getUseTableCellForegroundColor()
セルの文字列色をテーブルコンポーネントから取得するか否かを取得する
|
boolean |
getUseTableHeaderFont()
ヘッダーのフォントをテーブルコンポーネントから取得するか否かを取得する
|
java.awt.Color[] |
getXMLColumnBorderColorArray()
XML入力用臨時罫線色格納配列を取得する。
|
float[] |
getXMLColumnBorderWidthArray()
XML入力用臨時罫線太さ格納配列を取得する。
|
PFPaperElementTextDrawAttribute[] |
getXMLColumnDrawAttArray() |
PFPaperElementTextFormatAttribute[] |
getXMLColumnFormatAttArray() |
float[] |
getXMLColumnWidthArray() |
float[] |
getXMLRowHeightArray() |
void |
initColumnDrawTypeInfomation()
列の描画タイプ情報を初期化する(描画時)
|
void |
initColumnDrawTypeInfomation(int columnCount)
列の描画タイプ情報を初期化する(ロード時、コピー時)
|
boolean |
isAutoAdjustTableHeight()
テーブル高さ自動調整を取得する。
|
boolean |
isBarCodeColumnAddCheckDigit(int column)
バーコード列のチェックディジット付加有無を取得する
|
boolean |
isBarCodeColumnDisplayString(int column)
バーコード列の文字列出力有無を取得する
|
boolean |
isColumnDrawOriginalSize(int column)
バーコード列・QRコード列・イメージ列を原寸表示するか否かを取得する
|
boolean |
isDrawHeader()
ヘッダ表示有無を取得する。
|
boolean |
isIterativePrint()
テーブル要素を連結または繰り返し印刷するか否かを取得する。
|
void |
makeInitialDrawingAttributes()
テーブルの状態に応じた描画属性の自動設定。
|
void |
setAutoAdjustTableHeight(boolean autoAdjustTableHeight)
テーブル高さ自動調整を設定する。
|
void |
setBarCodeColumnAddCheckDigit(boolean flag,
int column)
バーコード列のチェックディジット付加有無を設定する
|
void |
setBarCodeColumnCodeType(PFBarCodeType codeType,
int column)
バーコード列のバーコード体系を設定する
|
void |
setBarCodeColumnDisplayString(boolean flag,
int column)
バーコード列の文字列出力有無を設定する
|
void |
setBorderColor(java.awt.Color borderColor)
罫線色を設定する。
|
void |
setColumnBorderColor(int index,
java.awt.Color color)
インデックスを指定して罫線色を設定する。
|
void |
setColumnBorderWidth(float columnBorderWidth)
カラム区切り罫線の太さを設定する。
|
void |
setColumnBorderWidth(int index,
float width)
インデックスを指定して罫線太さを設定する。
|
void |
setColumnDrawOriginalSize(boolean flag,
int column)
バーコード列・QRコード列・イメージ列を原寸表示するか否かを設定する
|
void |
setColumnDrawType(int type,
int column)
列の描画タイプを設定する
|
void |
setColumnWidth(int index,
float width)
カラム幅を設定する。
|
void |
setDrawHeader(boolean drawHeader)
ヘッダ表示有無を設定する。
|
void |
setDrawRowCount(int count)
テーブル要素の印刷行数を設定する(連結・繰り返し印刷機能)。
|
void |
setHeaderBorderWidth(float headerBorderWidth)
ヘッダ区切り罫線の太さを設定する。
|
void |
setIterativePrint(boolean iterative)
テーブル要素を連結または繰り返し印刷するか否かを設定する。
|
void |
setQRCodeColumnLevel(char level,
int column)
QRコード列コードエラー訂正レベルを設定する
|
void |
setQRCodeColumnPixel(int pixel,
int column)
QRコード列コード倍率を設定する
|
void |
setQRCodeColumnVersion(int version,
int column)
QRコード列コードバージョンを設定する
|
void |
setRowBorderWidth(float rowBorderWidth)
行区切り罫線の太さを設定する。
|
void |
setRowHeight(int index,
float height)
行高さを設定する。
|
void |
setStartRowIndex(int index)
テーブル要素の印刷開始行インデックスを指定する(連結・繰り返し印刷機能)。
|
void |
setTableBorderWidth(float tableBorderWidth)
外周罫線の太さを設定する。
|
void |
setTableColumnDrawAttribute(int index,
PFPaperElementTextDrawAttribute attribute)
テーブルカラムテキスト描画属性を設定する。
|
void |
setTableColumnFormatAttribute(int index,
PFPaperElementTextFormatAttribute attribute)
テーブルカラムテキスト表示形式属性を設定する。
|
void |
setTableDrawAttribute(PFPaperElementTextDrawAttribute attribute)
テーブルテキスト描画属性を設定する。
|
void |
setTableHeaderDrawAttribute(PFPaperElementTextDrawAttribute attribute)
テーブルヘッダテキスト描画属性を設定する。
|
void |
setUseTableCellBackgroundColor(boolean use)
セルの背景色をテーブルコンポーネントから取得するか否かを設定する
|
void |
setUseTableCellFont(boolean use)
セルのフォントをテーブルコンポーネントから取得するか否かを設定する
|
void |
setUseTableCellForegroundColor(boolean use)
セルの文字列色をテーブルコンポーネントから取得するか否かを設定する
|
void |
setUseTableHeaderFont(boolean use)
ヘッダーのフォントをテーブルコンポーネントから取得するか否かを設定する
|
void |
setXMLColumnBorderColorArray(java.awt.Color[] array)
XML入力用臨時罫線色格納配列を設定する。
|
void |
setXMLColumnBorderWidthArray(float[] array)
XML入力用臨時罫線太さ格納配列を設定する。
|
void |
setXMLColumnDrawAttArray(PFPaperElementTextDrawAttribute[] array) |
void |
setXMLColumnFormatAttArray(PFPaperElementTextFormatAttribute[] array) |
void |
setXMLColumnWidthArray(float[] array) |
void |
setXMLRowHeightArray(float[] array) |
void |
writeExcel(PFExcelFileAccessor excelFileAccessor,
java.util.ArrayList rowIndexList,
java.util.ArrayList columnIndexList,
boolean excelTextboxUsed)
Excelファイルに出力する。
|
void |
writeExcel(PFExcelFileAccessor excelFileAccessor,
java.util.ArrayList rowIndexList,
java.util.ArrayList columnIndexList,
boolean excelTextboxUsed,
boolean excelTableCellMerged)
Excelファイルに出力する。
|
getGetterMethod, getSourceComponent, isCopying, restoreSourceComponent, setCopying, setGetterMethod, setSourceComponent, storeSourceComponentId
getDrawHeight, getDrawWidth, getDrawX, getDrawY, getPageNo, setDrawHeight, setDrawPosition, setDrawSize, setDrawWidth, setDrawX, setDrawY, setPageNo
public static final int COLUMN_DRAWTYPE_STRING
public static final int COLUMN_DRAWTYPE_BARCODE
public static final int COLUMN_DRAWTYPE_QRCODE
public static final int COLUMN_DRAWTYPE_IMAGEDATA
public PFPaperTableElement()
public PFPaperTableElement(float width, float height) throws PFRuntimeException
width
- 描画横幅(単位:mm)height
- 描画縦幅(単位:mm)PFRuntimeException
- 指定されたサイズの値が正しくないpublic java.lang.String getDisplayString()
getDisplayString
クラス内 PFPaperElement
public boolean isDrawHeader()
public void setDrawHeader(boolean drawHeader)
drawHeader
- ヘッダ表示有無public java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color borderColor)
borderColor
- 罫線色public float getTableBorderWidth()
public void setTableBorderWidth(float tableBorderWidth)
tableBorderWidth
- 外周罫線の太さ(単位:Point)public float getHeaderBorderWidth()
public void setHeaderBorderWidth(float headerBorderWidth)
headerBorderWidth
- ヘッダ区切り罫線の太さ(単位:Point)public float getRowBorderWidth()
public void setRowBorderWidth(float rowBorderWidth)
rowBorderWidth
- 行区切り罫線の太さ(単位:Point)public float getColumnBorderWidth()
public void setColumnBorderWidth(float columnBorderWidth)
columnBorderWidth
- カラム区切り罫線の太さ(単位:Point)public boolean isAutoAdjustTableHeight()
public void setAutoAdjustTableHeight(boolean autoAdjustTableHeight)
autoAdjustTableHeight
- テーブル高さ自動調整public void draw(java.awt.Graphics2D g)
draw
クラス内 PFPaperElement
g
- グラフィクスオブジェクトpublic PFObjectTable getTableData()
public int getColumnCount()
public float getColumnWidth(int index)
index
- カラム位置public void setColumnWidth(int index, float width)
index
- カラム位置width
- カラム幅public int getRowCount()
public float getRowHeight(int index)
index
- 行位置(ヘッダ行も含む)public float getTextDrawHeight(int index)
index
- 行位置(ヘッダ行も含む)public void setRowHeight(int index, float height)
index
- カラム位置height
- 行高さpublic void adjustRowHeight()
public PFPaperElementTextDrawAttribute getTableDrawAttribute()
public void setTableDrawAttribute(PFPaperElementTextDrawAttribute attribute)
attribute
- テーブルテキスト描画属性public PFPaperElementTextDrawAttribute getTableHeaderDrawAttribute()
public void setTableHeaderDrawAttribute(PFPaperElementTextDrawAttribute attribute)
attribute
- テーブルヘッダテキスト描画属性public PFPaperElementTextDrawAttribute getTableColumnDrawAttribute(int index)
index
- カラム位置(0オリジン)public void setTableColumnDrawAttribute(int index, PFPaperElementTextDrawAttribute attribute)
index
- カラム位置(0オリジン)attribute
- テーブルカラムテキスト描画属性public PFPaperElementTextFormatAttribute getTableColumnFormatAttribute(int index)
index
- カラム位置(0オリジン)public void setTableColumnFormatAttribute(int index, PFPaperElementTextFormatAttribute attribute)
index
- カラム位置(0オリジン)attribute
- テーブルカラムテキスト表示形式属性public java.lang.String getTableColumnName(int index)
index
- カラム位置(0オリジン)public java.lang.Class getTableColumnType(int index)
index
- カラム位置(0オリジン)public void makeInitialDrawingAttributes()
public void setXMLRowHeightArray(float[] array)
public void setXMLColumnWidthArray(float[] array)
public void setXMLColumnDrawAttArray(PFPaperElementTextDrawAttribute[] array)
public void setXMLColumnFormatAttArray(PFPaperElementTextFormatAttribute[] array)
public float[] getXMLRowHeightArray()
public float[] getXMLColumnWidthArray()
public PFPaperElementTextDrawAttribute[] getXMLColumnDrawAttArray()
public PFPaperElementTextFormatAttribute[] getXMLColumnFormatAttArray()
public void setIterativePrint(boolean iterative)
iterative
- 連結または繰り返し印刷する場合truepublic boolean isIterativePrint()
public void setStartRowIndex(int index)
index
- 印刷開始行インデックスpublic int getStartRowIndex()
public void setDrawRowCount(int count)
index
- 印刷行数public int getDrawRowCount()
public void setColumnDrawType(int type, int column)
type
- 列の描画タイプ(COLUMN_DRAWTYPE_STRING,COLUMN_DRAWTYPE_BARCODE,COLUMN_DRAWTYPE_QRCODE,COLUMN_DRAWTYPE_IMAGEDATA)column
- 列インデックスpublic int getColumnDrawType(int column)
column
- 列インデックスpublic void setColumnDrawOriginalSize(boolean flag, int column)
flag
- 原寸表示する(true)/しない(false)column
- 列インデックスpublic boolean isColumnDrawOriginalSize(int column)
column
- 列インデックスpublic void setBarCodeColumnCodeType(PFBarCodeType codeType, int column)
codeType
- バーコード体系column
- 列インデックスpublic PFBarCodeType getBarCodeColumnCodeType(int column)
column
- 列インデックスpublic void setBarCodeColumnDisplayString(boolean flag, int column)
flag
- 文字列出力有無column
- 列インデックスpublic boolean isBarCodeColumnDisplayString(int column)
column
- 列インデックスpublic void setBarCodeColumnAddCheckDigit(boolean flag, int column)
flag
- チェックディジット付加有無column
- 列インデックスpublic boolean isBarCodeColumnAddCheckDigit(int column)
column
- 列インデックスpublic void setQRCodeColumnPixel(int pixel, int column)
pixel
- 倍率column
- 列インデックスpublic int getQRCodeColumnPixel(int column)
column
- 列インデックスpublic void setQRCodeColumnVersion(int version, int column)
version
- バージョンcolumn
- 列インデックスpublic int getQRCodeColumnVersion(int column)
column
- 列インデックスpublic void setQRCodeColumnLevel(char level, int column)
level
- エラー訂正レベルcolumn
- 列インデックスpublic char getQRCodeColumnLevel(int column)
column
- 列インデックスpublic void initColumnDrawTypeInfomation()
public void initColumnDrawTypeInfomation(int columnCount)
columnCount
- 列数public boolean getUseTableHeaderFont()
public void setUseTableHeaderFont(boolean use)
取得する場合true
- public boolean getUseTableCellFont()
public void setUseTableCellFont(boolean use)
取得する場合true
- public boolean getUseTableCellForegroundColor()
public void setUseTableCellForegroundColor(boolean use)
取得する場合true
- public boolean getUseTableCellBackgroundColor()
public void setUseTableCellBackgroundColor(boolean use)
取得する場合true
- public void writeExcel(PFExcelFileAccessor excelFileAccessor, java.util.ArrayList rowIndexList, java.util.ArrayList columnIndexList, boolean excelTextboxUsed)
writeExcel
クラス内 PFPaperElement
excelFileAccessor
- ExcelファイルアクセスコンポーネントrowIndexList
- 行位置のリストcolumnIndexList
- 列位置のリストexcelTextboxUsed
- エクセル出力テキストボックス使用フラグpublic void writeExcel(PFExcelFileAccessor excelFileAccessor, java.util.ArrayList rowIndexList, java.util.ArrayList columnIndexList, boolean excelTextboxUsed, boolean excelTableCellMerged)
excelFileAccessor
- ExcelファイルアクセスコンポーネントrowIndexList
- 行位置のリストcolumnIndexList
- 列位置のリストexcelTextboxUsed
- エクセル出力テキストボックス使用フラグexcelTableCellMerged
- エクセルテーブルセル結合フラグpublic float getColumnBorderWidth(int index)
index
- インデックスpublic void setColumnBorderWidth(int index, float width)
index
- インデックスwidth
- 罫線太さpublic java.awt.Color getColumnBorderColor(int index)
index
- インデックスpublic void setColumnBorderColor(int index, java.awt.Color color)
index
- インデックスcolor
- 罫線色public float[] getXMLColumnBorderWidthArray()
public void setXMLColumnBorderWidthArray(float[] array)
XML入力用臨時罫線太さ格納配列
- public java.awt.Color[] getXMLColumnBorderColorArray()
public void setXMLColumnBorderColorArray(java.awt.Color[] array)
XML入力用臨時罫線色格納配列
-