JavaTM Platform
Standard Ed. 6

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
すべての実装されたインタフェース:
SwingConstants

public class ListView
extends BlockView

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


フィールドの概要
 
クラス javax.swing.text.View から継承されたフィールド
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
インタフェース javax.swing.SwingConstants から継承されたフィールド
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
コンストラクタの概要
ListView(Element elem)
          リスト要素を表す新しいビューを作成します。
 
メソッドの概要
 float getAlignment(int axis)
          リストの適切な形状を計算します。
 void paint(Graphics g, Shape allocation)
          指定された描画表面およびその表面上の領域を使って描画します。
protected  void paintChild(Graphics g, Rectangle alloc, int index)
          子の一つを描画します。
protected  void setPropertiesFromAttributes()
          属性に由来する値がキャッシュに書き込まれていれば、それを更新します。
 
クラス javax.swing.text.html.BlockView から継承されたメソッド
calculateMajorAxisRequirements, calculateMinorAxisRequirements, changedUpdate, getAttributes, getMaximumSpan, getMinimumSpan, getPreferredSpan, getResizeWeight, getStyleSheet, layoutMinorAxis, setParent
 
クラス javax.swing.text.BoxView から継承されたメソッド
baselineLayout, baselineRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAxis, getChildAllocation, getHeight, getOffset, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMajorAxis, modelToView, preferenceChanged, replace, setAxis, setSize, viewToModel
 
クラス javax.swing.text.CompositeView から継承されたメソッド
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets
 
クラス javax.swing.text.View から継承されたメソッド
append, breakView, createFragment, forwardUpdateToView, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, 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
パラメータ:
axis - X_AXIS または Y_AXIS
戻り値:
適切なスパン
関連項目:
View.getPreferredSpan(int)

paint

public void paint(Graphics g,
                  Shape allocation)
指定された描画表面およびその表面上の領域を使って描画します。

オーバーライド:
クラス BlockView 内の paint
パラメータ:
g - 使用する描画表面
allocation - 描画のために割り当てられた領域
関連項目:
View.paint(java.awt.Graphics, java.awt.Shape)

paintChild

protected void paintChild(Graphics g,
                          Rectangle alloc,
                          int index)
子の一つを描画します。 paint() で呼び出されます。デフォルトの機能はそれだけですが、サブクラスはこれを使って、子に関連するものを描画できます。

オーバーライド:
クラス BoxView 内の paintChild
パラメータ:
g - グラフィックスコンテキスト
alloc - 子を描画する割り当て領域
index - 子のインデックス

setPropertiesFromAttributes

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

オーバーライド:
クラス BlockView 内の setPropertiesFromAttributes

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。