Java プラットフォーム 1.2

javax.swing.text.html
クラス ListView

java.lang.Object
  |
  +--javax.swing.text.View
        |
        +--javax.swing.text.CompositeView
              |
              +--javax.swing.text.BoxView
                    |
                    +--javax.swing.text.html.BlockView
                          |
                          +--javax.swing.text.html.ListView

public class ListView
extends BlockView

HTML リストを表示するビューの実装です。


クラス javax.swing.text.View から継承したフィールド
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
コンストラクタの概要
ListView(Element elem)
          リスト要素を表す新しいビューを作成します。
 
メソッドの概要
 float getAlignment(int axis)
          リストの適切な形状を算出します。
 void paint(Graphics g, Shape allocation)
          指定された描画表面およびその表面上の領域を使って描画します。
protected  void paintChild(Graphics g, Rectangle alloc, int index)
          子の 1 つを描画します。
 
クラス javax.swing.text.html.BlockView から継承したメソッド
getAttributes, getResizeWeight, getStyleSheet, 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, 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
 

コンストラクタの詳細

ListView

public ListView(Element elem)
リスト要素を表す新しいビューを作成します。
パラメータ:
elem - ビューを作成する要素
メソッドの詳細

getAlignment

public float getAlignment(int axis)
リストの適切な形状を算出します。
戻り値:
適切なスパン
オーバーライド:
クラス BlockView 内の getAlignment
関連項目:
View.getPreferredSpan(int)

paint

public void paint(Graphics g,
                  Shape allocation)
指定された描画表面およびその表面上の領域を使って描画します。
パラメータ:
g - 使用する描画表面
allocation - 描画先として割り当てられた領域
オーバーライド:
クラス BlockView 内の paint
関連項目:
View.paint(java.awt.Graphics, java.awt.Shape)

paintChild

protected void paintChild(Graphics g,
                          Rectangle alloc,
                          int index)
子の 1 つを描画します。paint() で呼び出されます。デフォルトではそれ以外の処理は行いませんが、サブクラスはこれを使用して子に関連する事象を描画することができます。
パラメータ:
g - グラフィックスコンテキスト
alloc - 子を描画する割り当て領域
index - 子のインデックス
オーバーライド:
クラス BoxView 内の paintChild

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.