Kagetaka

net.hizlab.kagetaka.rendering
クラス Status

java.lang.Object
  拡張net.hizlab.kagetaka.rendering.Status
すべての実装インタフェース:
Cloneable

public class Status
extends Object
implements Cloneable

現在の描画ステータスを保持するクラスです。

バージョン:
$Revision: 1.10 $

入れ子クラスの概要
 class Status.Box
          ボックス形式の値を表します。
 
フィールドの概要
 int align
          ブロック内の文字揃え
 Color alinkColor
          アクティブなリンク色
 Link anchor
           
 Background background
           
 Border border
           
 Value borderHorizontalSpacing
           
 Value borderVerticalSpacing
           
 int captionSide
           
 int clearType
          クリア
 int colSpan
           
 int counterNo
          リストのカウンター
 Status counterStatus
           
 int decoration
          文字の修飾(TD_* の論理和)
 int display
           
 int floatType
          フロート
 Font font
           
 FontData fontData
           
 int fontFullBase
           
 Dimension fontFullSize
           
 int fontHalfBase
           
 int fontHalfHeight
           
 int fontMaxHeight
           
 FontMetrics fontMetrics
           
 int fontMiniLeft
           
 int fontMiniUp
           
 Color foreColor
          前景色
 boolean hasMarkerBlock
           
 Value height
          推奨する高さ
 boolean isBlackHole
           
 boolean isHorizontalRule
           
 Value letterSpacing
          文字の幅
 Value lineHeight
          行の高さ
 Color linkColor
          リンク色
 Status.Box margin
           
 Value offsetX
          左右位置のオフセット
 Status.Box padding
           
 Vector pseudoStyles
           
 boolean reference
           
 int rowSpan
           
static int STYLE
          スタイルによる設定
static int TARGET_ALL
          ターゲット・すべて
static int TARGET_BOTTOM
          ターゲット・下
static int TARGET_LEFT
          ターゲット・左
static int TARGET_RIGHT
          ターゲット・右
static int TARGET_TOP
          ターゲット・上
 Value textIndent
          行の高さ
 String tip
           
static int TOKEN
          トークンによる設定
 int type
          このステータスのトークンタイプ
 int valign
          ブロック内の文字揃え
 Color vlinkColor
          訪問済みリンク色
 int whiteSpace
          スペースの取り扱い
 Value width
          推奨する幅
 
メソッドの概要
 Status createChild()
          このステータスを継承し、新しいステータスを作成します。
 FontData getFontData()
          現在のフォントデータを返します。
 int getList()
          リストタイプを返します。
 int getListLevel()
          リストレベルを返します。
 Status getParent()
          親ステータスを返します。
 boolean getTextDecoration(int td)
          文字の修飾を設定します。
 void setBackground(Color color)
          背景色を設定します。
 void setBackground(String src, Value repeat, Value positionH, Value positionV)
          背景画像を設定します。
 void setBorderColor(int target, Color value)
          ボーダーの色を設定します。
 void setBorderStyle(int target, Value value)
          ボーダーのスタイルを設定します。
 void setBorderWidth(int target, Value value)
          ボーダーの幅を設定します。
 void setFontFamily(Value[] v)
          現在のフォントファミリを変更します。
 void setFontSize(Value v, int owner)
          現在のフォントサイズを変更します。
 void setFontStyle(Value v)
          現在のフォントスタイルを変更します。
 void setFontWeight(Value v)
          現在のフォント幅を変更します。
 void setList(int type)
          リストを設定します。
 void setMargin(int target, Value value)
          マージンを設定します。
 void setPadding(int target, Value value)
          パディングを設定します。
 void setTextDecoration(int td)
          文字の修飾を設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

align

public int align
ブロック内の文字揃え


alinkColor

public Color alinkColor
アクティブなリンク色


anchor

public Link anchor

background

public Background background

border

public Border border

borderHorizontalSpacing

public Value borderHorizontalSpacing

borderVerticalSpacing

public Value borderVerticalSpacing

captionSide

public int captionSide

clearType

public int clearType
クリア


colSpan

public int colSpan

counterNo

public int counterNo
リストのカウンター


counterStatus

public Status counterStatus

decoration

public int decoration
文字の修飾(TD_* の論理和)


display

public int display

floatType

public int floatType
フロート


font

public Font font

fontData

public FontData fontData

fontFullBase

public int fontFullBase

fontFullSize

public Dimension fontFullSize

fontHalfBase

public int fontHalfBase

fontHalfHeight

public int fontHalfHeight

fontMaxHeight

public int fontMaxHeight

fontMetrics

public FontMetrics fontMetrics

fontMiniLeft

public int fontMiniLeft

fontMiniUp

public int fontMiniUp

foreColor

public Color foreColor
前景色


hasMarkerBlock

public boolean hasMarkerBlock

height

public Value height
推奨する高さ


isBlackHole

public boolean isBlackHole

isHorizontalRule

public boolean isHorizontalRule

letterSpacing

public Value letterSpacing
文字の幅


lineHeight

public Value lineHeight
行の高さ


linkColor

public Color linkColor
リンク色


margin

public Status.Box margin

offsetX

public Value offsetX
左右位置のオフセット


padding

public Status.Box padding

pseudoStyles

public Vector pseudoStyles

reference

public boolean reference

rowSpan

public int rowSpan

STYLE

public static final int STYLE
スタイルによる設定

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

TARGET_ALL

public static final int TARGET_ALL
ターゲット・すべて

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

TARGET_BOTTOM

public static final int TARGET_BOTTOM
ターゲット・下

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

TARGET_LEFT

public static final int TARGET_LEFT
ターゲット・左

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

TARGET_RIGHT

public static final int TARGET_RIGHT
ターゲット・右

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

TARGET_TOP

public static final int TARGET_TOP
ターゲット・上

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

textIndent

public Value textIndent
行の高さ


tip

public String tip

TOKEN

public static final int TOKEN
トークンによる設定

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

type

public int type
このステータスのトークンタイプ


valign

public int valign
ブロック内の文字揃え


vlinkColor

public Color vlinkColor
訪問済みリンク色


whiteSpace

public int whiteSpace
スペースの取り扱い


width

public Value width
推奨する幅

メソッドの詳細

createChild

public Status createChild()
このステータスを継承し、新しいステータスを作成します。 継承されないフィールドは、初期値に戻されます。

戻り値:
継承して作られたステータス

getFontData

public FontData getFontData()
現在のフォントデータを返します。

戻り値:
指定されているフォントデータ

getList

public int getList()
リストタイプを返します。

戻り値:
リストのタイプ

getListLevel

public int getListLevel()
リストレベルを返します。

戻り値:
リストのレベル

getParent

public Status getParent()
親ステータスを返します。

戻り値:
親ステータス

getTextDecoration

public boolean getTextDecoration(int td)
文字の修飾を設定します。

パラメータ:
td - 文字の修飾
戻り値:
指定されている文字の修飾がされていれば true、 それ以外の場合は false

setBackground

public void setBackground(Color color)
背景色を設定します。

パラメータ:
color - 背景色

setBackground

public void setBackground(String src,
                          Value repeat,
                          Value positionH,
                          Value positionV)
背景画像を設定します。

パラメータ:
src - 背景画像の URL
repeat - リピート
positionV - 垂直方向の位置
positionH - 水平方向の位置

setBorderColor

public void setBorderColor(int target,
                           Color value)
ボーダーの色を設定します。

パラメータ:
target - ターゲット
value - 値

setBorderStyle

public void setBorderStyle(int target,
                           Value value)
ボーダーのスタイルを設定します。

パラメータ:
target - ターゲット
value - 値

setBorderWidth

public void setBorderWidth(int target,
                           Value value)
ボーダーの幅を設定します。

パラメータ:
target - ターゲット
value - 値

setFontFamily

public void setFontFamily(Value[] v)
現在のフォントファミリを変更します。

パラメータ:
v - フォントファミリ

setFontSize

public void setFontSize(Value v,
                        int owner)
現在のフォントサイズを変更します。

パラメータ:
v - フォントサイズ
owner - オーナー

setFontStyle

public void setFontStyle(Value v)
現在のフォントスタイルを変更します。

パラメータ:
v - フォントスタイル

setFontWeight

public void setFontWeight(Value v)
現在のフォント幅を変更します。

パラメータ:
v - フォント幅

setList

public void setList(int type)
リストを設定します。

パラメータ:
type - リストのタイプ

setMargin

public void setMargin(int target,
                      Value value)
マージンを設定します。

パラメータ:
target - ターゲット
value - 値

setPadding

public void setPadding(int target,
                       Value value)
パディングを設定します。

パラメータ:
target - ターゲット
value - 値

setTextDecoration

public void setTextDecoration(int td)
文字の修飾を設定します。

パラメータ:
td - 文字の修飾

Kagetaka

Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'