javax.swing.text
クラス StyledEditorKit.AlignmentAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--javax.swing.text.TextAction
|
+--javax.swing.text.StyledEditorKit.StyledTextAction
|
+--javax.swing.text.StyledEditorKit.AlignmentAction
- public static class StyledEditorKit.AlignmentAction
- extends StyledEditorKit.StyledTextAction
段落の配置方法を設定するアクションです。このクラスは、ターゲットの JEditorPane で現在選択されている領域に使用する StyleConstants.Alignment
属性を設定します。これは、ターゲットの JEditorPane に関連付けられている書式付ドキュメントに対して StyledDocument.setParagraphAttributes
を呼び出すことで行われます。
ターゲットのテキストコンポーネントが ActionEvent の発生源として指定されている場合、コマンド文字列があるときは、そのコマンド文字列が整数値として解釈されます。この整数値は、StyleConstants.Alignment
属性として有効な値でなければなりません。
警告:
このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
- 関連項目:
- 直列化された形式
StyledEditorKit.AlignmentAction
public StyledEditorKit.AlignmentAction(String nm,
int a)
- 新しい配置アクションを作成します。
- パラメータ:
nm
- アクション名a
- 配置方法 >= 0
actionPerformed
public void actionPerformed(ActionEvent e)
- 配置方法を設定します。
- パラメータ:
e
- アクションイベント
バグや機能要求の報告
新しい 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.