JavaTM Platform
Standard Ed. 6

javax.swing.text
クラス StyledEditorKit.FontSizeAction

java.lang.Object
  上位を拡張 javax.swing.AbstractAction
      上位を拡張 javax.swing.text.TextAction
          上位を拡張 javax.swing.text.StyledEditorKit.StyledTextAction
              上位を拡張 javax.swing.text.StyledEditorKit.FontSizeAction
すべての実装されたインタフェース:
ActionListener, Serializable, Cloneable, EventListener, Action
含まれているクラス:
StyledEditorKit

public static class StyledEditorKit.FontSizeAction
extends StyledEditorKit.StyledTextAction

関連する JEditorPane のフォントサイズを設定するアクションです。フォントサイズがある場合は、ActionEvent のコマンド文字列として指定されたサイズが使用されます。 そうでない場合は、初期化済みのサイズが使用されます。

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK Version 1.4 以降、すべての JavaBeans の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。


フィールドの概要
 
クラス javax.swing.AbstractAction から継承されたフィールド
changeSupport, enabled
 
インタフェース javax.swing.Action から継承されたフィールド
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
コンストラクタの概要
StyledEditorKit.FontSizeAction(String nm, int size)
          新しい FontSizeAction を作成します。
 
メソッドの概要
 void actionPerformed(ActionEvent e)
          フォントサイズを設定します。
 
クラス javax.swing.text.StyledEditorKit.StyledTextAction から継承されたメソッド
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
 
クラス javax.swing.text.TextAction から継承されたメソッド
augmentList, getFocusedComponent, getTextComponent
 
クラス javax.swing.AbstractAction から継承されたメソッド
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
クラス java.lang.Object から継承されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

StyledEditorKit.FontSizeAction

public StyledEditorKit.FontSizeAction(String nm,
                                      int size)
新しい FontSizeAction を作成します。

パラメータ:
nm - アクション名
size - フォントサイズ
メソッドの詳細

actionPerformed

public void actionPerformed(ActionEvent e)
フォントサイズを設定します。

パラメータ:
e - アクションイベント

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 も参照してください。