Java プラットフォーム 1.2

javax.swing.text.html
クラス InlineView

java.lang.Object
  |
  +--javax.swing.text.View
        |
        +--javax.swing.text.LabelView
              |
              +--javax.swing.text.html.InlineView

public class InlineView
extends LabelView

CSS 属性に基づいて「インライン要素」スタイルを表示します。


クラス javax.swing.text.View から継承したフィールド
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
コンストラクタの概要
InlineView(Element elem)
          要素にラップされた新しいビューを作成します。
 
メソッドの概要
 AttributeSet getAttributes()
          描画で使用する属性を取得します。
protected  StyleSheet getStyleSheet()
           
 boolean isVisible()
          ビューのコンテンツが「¥n」だけの場合に false を返します。
protected  void setPropertiesFromAttributes()
          キャッシュに書き込まれたプロパティを属性から設定します。
 
クラス javax.swing.text.LabelView から継承したメソッド
breakView, changedUpdate, createFragment, getAlignment, getBreakWeight, getFont, getFontMetrics, getNextVisualPositionFrom, getPreferredSpan, insertUpdate, modelToView, paint, removeUpdate, setStrikeThrough, setSubscript, setSuperscript, setUnderline, toString, viewToModel
 
クラス javax.swing.text.View から継承したメソッド
getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getMaximumSpan, getMinimumSpan, getParent, getResizeWeight, getStartOffset, getView, getViewCount, getViewFactory, modelToView, modelToView, preferenceChanged, setParent, setSize, viewToModel
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

InlineView

public InlineView(Element elem)
要素にラップされた新しいビューを作成します。
パラメータ:
elem - 要素
メソッドの詳細

getAttributes

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

setPropertiesFromAttributes

protected void setPropertiesFromAttributes()
キャッシュに書き込まれたプロパティを属性から設定します。
オーバーライド:
クラス LabelView 内の setPropertiesFromAttributes

getStyleSheet

protected StyleSheet getStyleSheet()

isVisible

public boolean isVisible()
ビューのコンテンツが「¥n」だけの場合に false を返します。コンテンツが改行だけの場合、そのビューに対応する要素は編集の目的で意図的に挿入されたと考えることができます。
オーバーライド:
クラス View 内の isVisible

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.