JavaTM Platform
Standard Ed. 6

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

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

MutableAttributeSet を実装している javax.swing.text.html のクラス
 class HTMLDocument.BlockElement
          HTML の構造ブロックを表す要素です。
 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 HTMLDocument.HTMLReader.addSpecialElement(HTML.Tag t, MutableAttributeSet a)
          基本的に属性セット全体で指定されているコンテンツを追加します。
protected  void HTMLDocument.HTMLReader.blockOpen(HTML.Tag t, MutableAttributeSet attr)
          解析バッファーに命令を追加して、指定した属性を持つブロック要素を生成します。
protected  void HTMLEditorKit.createInputAttributes(Element element, MutableAttributeSet set)
          element の AttributeSet 内のキーと値のペアを set にコピーします。
 void HTMLEditorKit.ParserCallback.handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
           
 void HTMLDocument.HTMLReader.handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
          パーサーからのコールバックです。
 void HTMLEditorKit.ParserCallback.handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
           
 void HTMLDocument.HTMLReader.handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
          パーサーからのコールバックです。
 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 Platform
Standard Ed. 6

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

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