JavaTM 2 Platform
Std. Ed. v1.3

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
すべての実装インタフェース:
Action, ActionListener, Cloneable, EventListener, Serializable
含まれているクラス:
StyledEditorKit

public static class StyledEditorKit.FontSizeAction
extends StyledEditorKit.StyledTextAction

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

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。

関連項目:
直列化された形式

クラス javax.swing.AbstractAction から継承したフィールド
changeSupport, enabled
 
インタフェース javax.swing.Action から継承したフィールド
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, 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, 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 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.