Java プラットフォーム 1.2

javax.swing.text.html
クラス BlockView

java.lang.Object
  |
  +--javax.swing.text.View
        |
        +--javax.swing.text.CompositeView
              |
              +--javax.swing.text.BoxView
                    |
                    +--javax.swing.text.html.BlockView
直接の既知のサブクラス:
ListView

public class BlockView
extends BoxView

CSS 仕様を使い、ブロックをボックスとして表示するためのビューの実装です。


クラス javax.swing.text.View から継承したフィールド
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
コンストラクタの概要
BlockView(Element elem, int axis)
          HTML ボックスを表す新しいビューを作成します。
 
メソッドの概要
 float getAlignment(int axis)
          配置方法を取得します。
 AttributeSet getAttributes()
          描画時に使用する属性を取得します。
 int getResizeWeight(int axis)
          サイズ変更のウェイトを取得します。
protected  StyleSheet getStyleSheet()
           
 void paint(Graphics g, Shape allocation)
          指定された描画表面とその領域を使って描画します。
protected  void setPropertiesFromAttributes()
          属性に由来する値がキャッシュに書き込まれていれば、それを更新します。
 
クラス javax.swing.text.BoxView から継承したメソッド
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, calculateMinorAxisRequirements, changedUpdate, childAllocation, flipEastAndWestAtEnds, getHeight, getMaximumSpan, getMinimumSpan, getOffset, getPreferredSpan, getSpan, getViewAtPoint, getWidth, insertUpdate, isAfter, isAllocationValid, isBefore, layout, layoutMajorAxis, layoutMinorAxis, modelToView, paintChild, preferenceChanged, removeUpdate, replace, setSize, viewToModel
 
クラス javax.swing.text.CompositeView から継承したメソッド
append, getBottomInset, getChildAllocation, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndexAtPosition, insert, loadChildren, modelToView, removeAll, setInsets, setParagraphInsets, setParent
 
クラス javax.swing.text.View から継承したメソッド
breakView, createFragment, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getParent, getStartOffset, getViewFactory, isVisible, modelToView, viewToModel
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BlockView

public BlockView(Element elem,
                 int axis)
HTML ボックスを表す新しいビューを作成します。多くの要素で使用できます。
パラメータ:
elem - ビューを作成する要素
axis - View.X_AXIS または View.Y_AXIS
メソッドの詳細

paint

public void paint(Graphics g,
                  Shape allocation)
指定された描画表面とその領域を使って描画します。CSS ボックスペインタに権限を委譲して、内部より先に境界およびバックグラウンドを描画するために実装されます。
パラメータ:
g - 使用する描画表面
allocation - 描画のために割り当てられた領域
オーバーライド:
クラス BoxView 内の paint
関連項目:
View.paint(java.awt.Graphics, java.awt.Shape)

getAttributes

public AttributeSet getAttributes()
描画時に使用する属性を取得します。モデルで指定された属性を StyleSheet を使って多重化するために実装されます。
オーバーライド:
クラス View 内の getAttributes

getResizeWeight

public int getResizeWeight(int axis)
サイズ変更のウェイトを取得します。
パラメータ:
axis - X_AXIS または Y_AXIS
戻り値:
ウェイト
例外:
IllegalArgumentException - 軸が無効な場合
オーバーライド:
クラス BoxView 内の getResizeWeight

getAlignment

public float getAlignment(int axis)
配置方法を取得します。
パラメータ:
axis - X_AXIS または Y_AXIS
戻り値:
配置方法
オーバーライド:
クラス BoxView 内の getAlignment

setPropertiesFromAttributes

protected void setPropertiesFromAttributes()
属性に由来する値がキャッシュに書き込まれていれば、それを更新します。

getStyleSheet

protected StyleSheet getStyleSheet()

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.