Java プラットフォーム 1.2

インタフェース
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 におけるメソッド
 MutableAttributeSet StyledEditorKit.getInputAttributes()
          区画の入力属性を取得します。
protected  MutableAttributeSet StyleContext.createLargeAttributeSet(AttributeSet a)
          メモリ効率より処理時間を優先する場合のための、大きいサイズの属性セットを作成します。
 

MutableAttributeSet のパラメータを持つ javax.swing.text におけるメソッド
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 にコピーします。
 void StyleContext.readAttributes(ObjectInputStream in, MutableAttributeSet a)
          属性を読み込むコンテキスト固有の処理です。
static void StyleContext.readAttributeSet(ObjectInputStream in, MutableAttributeSet a)
          指定されたオブジェクト入力ストリームから、writeAttributeSet で以前に書き込まれている属性セットを読み込みます。
 

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  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)
           
 


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.