public class PtlParamSearchTextAndSetMask extends PtlParamSearchText
テキスト検索した上でヒットしたテキストをマスク処理します。
PtlParamSearchText.TEXT_TYPE
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
REMOVE_ALL
全を削除対象とする。
|
static int |
REMOVE_IMAGE
画像を削除対象とする。
|
static int |
REMOVE_PATH
パスを削除対象とする。
|
static int |
REMOVE_SHADING
シェイディングを削除対象とする。
|
static int |
REMOVE_TEXT
ヒットしたテキスト以外も削除対象とする。
|
コンストラクタと説明 |
---|
PtlParamSearchTextAndSetMask()
コンストラクタ
|
PtlParamSearchTextAndSetMask(PtlParamSearchTextAndSetMask obj)
コピーコンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
setColor(PtlColor color)
マスクの色を設定。
|
void |
setOpacity(float opacity)
マスク色の不透明度を設定。
|
void |
setRemoveElement(int remove)
マスクの削除対象とするエレメントを追加。
|
appendText, close, setCompareCase, setIgnoreActualText, setOverlapAsLine, setTextType
public static final int REMOVE_TEXT
public static final int REMOVE_IMAGE
public static final int REMOVE_PATH
public static final int REMOVE_SHADING
public static final int REMOVE_ALL
public PtlParamSearchTextAndSetMask() throws PtlException
PtlException
- 例外public PtlParamSearchTextAndSetMask(PtlParamSearchTextAndSetMask obj) throws PtlException
obj
- コピー元オブジェクト。PtlException
- 例外public void setColor(PtlColor color) throws PtlException
※ 設定しない場合はデフォルト値として黒色が設定されます。
color
- マスクの色指定。PtlException
- 例外public void setOpacity(float opacity) throws PtlException
※ 設定しない場合はデフォルト値として1.0が使用されます。
opacity
- 0.0 〜 1.0。0.0が透明、1.0が不透明。PtlException
- 例外public void setRemoveElement(int remove) throws PtlException
マスク処理ではテキスト検索した上でヒットしたテキストを削除するのが基本動作ですが、
この関数を用いることによりヒットしたテキストの領域にある他のエレメントを削除対象とすることができます。
※ 設定しない場合はヒットしたテキストのみが削除対象となります。
remove
- 追加する削除対象のエレメント。REMOVE_XXXのフラグを論理和で指定します。PtlException
- 例外