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.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()
バグや機能要求の報告
新しい 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.