org.bbreak.excella.reports.tag
クラス ImageParamParser

java.lang.Object
  上位を拡張 org.bbreak.excella.core.tag.TagParser<ParsedReportInfo>
      上位を拡張 org.bbreak.excella.reports.tag.ReportsTagParser<String>
          上位を拡張 org.bbreak.excella.reports.tag.ImageParamParser

public class ImageParamParser
extends ReportsTagParser<String>

シート内のイメージ置換文字列を変換するパーサ

導入されたバージョン:
1.0

フィールドの概要
static String DEFAULT_TAG
          デフォルトタグ
static String PARAM_HEIGHT
          画像の高さ調整用のパラメータ
static String PARAM_SCALE
          画像サイズ倍率用のパラメータ
static String PARAM_VALUE
          置換変数のパラメータ
static String PARAM_WIDTH
          画像の幅調整用のパラメータ
 
クラス org.bbreak.excella.core.tag.TagParser から継承されたフィールド
PARAM_DELIM, TAG_PARAM_PREFIX, TAG_PARAM_SUFFIX, VALUE_DELIM
 
コンストラクタの概要
ImageParamParser()
          コンストラクタ
ImageParamParser(String tag)
          コンストラクタ
 
メソッドの概要
 ParsedReportInfo parse(Sheet sheet, Cell tagCell, Object data)
           
 void replaceImageValue(Sheet sheet, Cell cell, String filePath, Integer dx1, Integer dy1, Double scale)
          セルのパラメータ置換
 boolean useControlRow()
          タグを制御行として扱うか否かを取得する。
 
クラス org.bbreak.excella.reports.tag.ReportsTagParser から継承されたメソッド
getParamData
 
クラス org.bbreak.excella.core.tag.TagParser から継承されたメソッド
getTag, isParse, setTag
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_TAG

public static final String DEFAULT_TAG
デフォルトタグ

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

PARAM_VALUE

public static final String PARAM_VALUE
置換変数のパラメータ

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

PARAM_WIDTH

public static final String PARAM_WIDTH
画像の幅調整用のパラメータ

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

PARAM_HEIGHT

public static final String PARAM_HEIGHT
画像の高さ調整用のパラメータ

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

PARAM_SCALE

public static final String PARAM_SCALE
画像サイズ倍率用のパラメータ

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

ImageParamParser

public ImageParamParser()
コンストラクタ


ImageParamParser

public ImageParamParser(String tag)
コンストラクタ

パラメータ:
tag - タグ
メソッドの詳細

parse

public ParsedReportInfo parse(Sheet sheet,
                              Cell tagCell,
                              Object data)
                       throws ParseException
定義:
クラス ReportsTagParser<String> 内の parse
例外:
ParseException

replaceImageValue

public void replaceImageValue(Sheet sheet,
                              Cell cell,
                              String filePath,
                              Integer dx1,
                              Integer dy1,
                              Double scale)
                       throws ParseException
セルのパラメータ置換

パラメータ:
sheet - 処理シート
cell - タグセル
filePath - 置換イメージファイルパス
dx1 - 画像の幅調整値
dy1 - 画像の高さ調整値
scale - 画像の倍率値
例外:
ParseException

useControlRow

public boolean useControlRow()
クラス ReportsTagParser の記述:
タグを制御行として扱うか否かを取得する。

定義:
クラス ReportsTagParser<String> 内の useControlRow
戻り値:
true:制御行として削除/false:置換