JavaTM 2 Platform
Std. Ed. v1.3

インタフェース
javax.swing.text.MutableAttributeSet の使用

MutableAttributeSet を使用しているパッケージ
javax.swing すべてのプラットフォームで可能な限り同じように機能する、「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.text 編集可能/編集不能テキストコンポーネントを処理するクラスとインタフェースを提供します。 
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。  
 

javax.swing での MutableAttributeSet の使用
 

MutableAttributeSet を返す javax.swing のメソッド
 MutableAttributeSet JTextPane.getInputAttributes()
          区画の入力属性を返します。
 

javax.swing.text での MutableAttributeSet の使用
 

javax.swing.text での MutableAttributeSet のサブインタフェース
 interface Style
          ドキュメント内の要素に関連した属性のコレクションです。
 

MutableAttributeSet を実装している javax.swing.text のクラス
 class AbstractDocument.AbstractElement
          要素の抽象的な部分を実装します。
 class AbstractDocument.BranchElement
          他の要素を含む複合要素を実装します。
 class AbstractDocument.LeafElement
          内容を直接に表示する要素を実装します。
protected  class DefaultStyledDocument.SectionElement
          ドキュメントのデフォルトのルート要素です。
 class SimpleAttributeSet
          ハッシュテーブルを使用する、MutableAttributeSet の直接の実装です。
 class StyleContext.NamedStyle
          通常、文字および段落の書式を表すために使われる属性のコレクションです。
 

MutableAttributeSet を返す javax.swing.text のメソッド
protected  MutableAttributeSet StyleContext.createLargeAttributeSet(AttributeSet a)
          メモリ効率より処理時間を優先する場合のための、大きいサイズの属性セットを作成します。
 MutableAttributeSet StyledEditorKit.getInputAttributes()
          区画の入力属性を返します。
 

MutableAttributeSet 型のパラメータを持つ javax.swing.text のメソッド
 void StyleContext.readAttributes(ObjectInputStream in, MutableAttributeSet a)
          属性を読み込むコンテキスト固有の処理です。
static void StyleContext.readAttributeSet(ObjectInputStream in, MutableAttributeSet a)
          指定されたオブジェクト入力ストリームから、writeAttributeSet で以前に書き込まれている属性セットを読み込みます。
static void StyleConstants.setBidiLevel(MutableAttributeSet a, int o)
          BIDI レベルを設定します。
static void StyleConstants.setComponent(MutableAttributeSet a, Component c)
          コンポーネント属性を設定します。
static void StyleConstants.setIcon(MutableAttributeSet a, Icon c)
          アイコンを設定します。
static void StyleConstants.setFontFamily(MutableAttributeSet a, String fam)
          フォントの属性を設定します。
static void StyleConstants.setFontSize(MutableAttributeSet a, int s)
          フォントサイズを設定します。
static void StyleConstants.setBold(MutableAttributeSet a, boolean b)
          ボールド属性を設定します。
static void StyleConstants.setItalic(MutableAttributeSet a, boolean b)
          イタリック属性を設定します。
static void StyleConstants.setUnderline(MutableAttributeSet a, boolean b)
          下線属性を設定します。
static void StyleConstants.setStrikeThrough(MutableAttributeSet a, boolean b)
          取り消し線属性を設定します。
static void StyleConstants.setSuperscript(MutableAttributeSet a, boolean b)
          上付き文字属性を設定します。
static void StyleConstants.setSubscript(MutableAttributeSet a, boolean b)
          下付き文字属性を設定します。
static void StyleConstants.setForeground(MutableAttributeSet a, Color fg)
          フォアグラウンドカラーを設定します。
static void StyleConstants.setBackground(MutableAttributeSet a, Color fg)
          バックグラウンドカラーを設定します。
static void StyleConstants.setFirstLineIndent(MutableAttributeSet a, float i)
          最初の行のインデントを設定します。
static void StyleConstants.setRightIndent(MutableAttributeSet a, float i)
          右インデントを設定します。
static void StyleConstants.setLeftIndent(MutableAttributeSet a, float i)
          左インデントを設定します。
static void StyleConstants.setLineSpacing(MutableAttributeSet a, float i)
          行間隔を設定します。
static void StyleConstants.setSpaceAbove(MutableAttributeSet a, float i)
          上のスペースを設定します。
static void StyleConstants.setSpaceBelow(MutableAttributeSet a, float i)
          下のスペースを設定します。
static void StyleConstants.setAlignment(MutableAttributeSet a, int align)
          配置方法を設定します。
static void StyleConstants.setTabSet(MutableAttributeSet a, TabSet tabs)
          タブセットを設定します。
protected  void StyledEditorKit.createInputAttributes(Element element, MutableAttributeSet set)
          element の AttributeSet 内のキーと値のペアを set にコピーします。
 

javax.swing.text.html での MutableAttributeSet の使用
 

MutableAttributeSet を実装している javax.swing.text.html のクラス
 class HTMLDocument.BlockElement
          HTML の構造 block を表す要素です。
 class HTMLDocument.RunElement
          HTML 文字レベル属性のセットが割り当てられているテキストのチャンクを表す要素です。
 

MutableAttributeSet として宣言されている javax.swing.text.html のフィールド
protected  MutableAttributeSet HTMLDocument.HTMLReader.charAttr
           
 

MutableAttributeSet を返す javax.swing.text.html のメソッド
protected  MutableAttributeSet StyleSheet.createLargeAttributeSet(AttributeSet a)
          メモリ効率より処理時間を優先する場合のための、大きいサイズの属性セットを作成します。
 MutableAttributeSet HTMLEditorKit.getInputAttributes()
          書式付き編集アクションに使用される入力属性を返します。
 

MutableAttributeSet 型のパラメータを持つ javax.swing.text.html のメソッド
 void StyleSheet.addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value)
          指定されたセットに CSS 属性を追加します。
 boolean StyleSheet.addCSSAttributeFromHTML(MutableAttributeSet attr, CSS.Attribute key, String value)
          指定されたセットに CSS 属性を追加します。
protected  void HTMLEditorKit.createInputAttributes(Element element, MutableAttributeSet set)
          element の AttributeSet 内のキーと値のペアを set にコピーします。
 void HTMLEditorKit.ParserCallback.handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
           
 void HTMLEditorKit.ParserCallback.handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
           
 void HTMLDocument.HTMLReader.handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
          パーサからのコールバックです。
 void HTMLDocument.HTMLReader.handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
          パーサからのコールバックです。
protected  void HTMLDocument.HTMLReader.blockOpen(HTML.Tag t, MutableAttributeSet attr)
          構文解析バッファに命令を追加して、指定した属性を持つブロック要素を生成します。
protected  void HTMLDocument.HTMLReader.addSpecialElement(HTML.Tag t, MutableAttributeSet a)
          基本的に属性セット全体で指定されているコンテンツを追加します。
 void HTMLDocument.HTMLReader.TagAction.start(HTML.Tag t, MutableAttributeSet a)
          開始タグが見つかり、この種のタグのためにアクションが登録されていれば、呼び出されます。
 void HTMLDocument.HTMLReader.BlockAction.start(HTML.Tag t, MutableAttributeSet attr)
           
 void HTMLDocument.HTMLReader.ParagraphAction.start(HTML.Tag t, MutableAttributeSet a)
           
 void HTMLDocument.HTMLReader.SpecialAction.start(HTML.Tag t, MutableAttributeSet a)
           
 void HTMLDocument.HTMLReader.IsindexAction.start(HTML.Tag t, MutableAttributeSet a)
           
 void HTMLDocument.HTMLReader.HiddenAction.start(HTML.Tag t, MutableAttributeSet a)
           
 void HTMLDocument.HTMLReader.PreAction.start(HTML.Tag t, MutableAttributeSet attr)
           
 void HTMLDocument.HTMLReader.CharacterAction.start(HTML.Tag t, MutableAttributeSet attr)
           
 void HTMLDocument.HTMLReader.FormAction.start(HTML.Tag t, MutableAttributeSet attr)
           
 


JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.