|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextAreaUI
public class BasicTextAreaUI
プレーンテキストエディタの Look & Feel を提供します。この実装では、デフォルトの UI が単純なビューファクトリとして動作するように拡張されます。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK Version 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
| 入れ子のクラスの概要 |
|---|
| クラス javax.swing.plaf.basic.BasicTextUI から継承された入れ子のクラス/インタフェース |
|---|
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter |
| コンストラクタの概要 | |
|---|---|
BasicTextAreaUI()
新しい BasicTextAreaUI オブジェクトを構築します。 |
|
| メソッドの概要 | |
|---|---|
View |
create(Element elem)
要素のビューを作成します。 |
static ComponentUI |
createUI(JComponent ta)
JTextArea の UI を作成します。 |
int |
getBaseline(JComponent c,
int width,
int height)
ベースラインを返します。 |
Component.BaselineResizeBehavior |
getBaselineResizeBehavior(JComponent c)
サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。 |
Dimension |
getMinimumSize(JComponent c)
このメソッドは、キャレット幅を考慮するためにオーバーライドされます。 |
Dimension |
getPreferredSize(JComponent c)
このメソッドは、キャレット幅を考慮するためにオーバーライドされます。 |
protected String |
getPropertyPrefix()
UIManager を使ってプロパティーを参照するためのキーとして使われる名前を取得します。 |
protected void |
installDefaults()
フォント、フォアグラウンド、バックグラウンド、キャレットの色、選択の色、選択されたテキストの色、無効になったテキストの色、ボーダーの色などのコンポーネントプロパティーを初期化します。 |
protected void |
propertyChange(PropertyChangeEvent evt)
このメソッドは、関連する JTextComponent のバウンドプロパティーが変更されたときに呼び出されます。 |
| クラス javax.swing.plaf.ComponentUI から継承されたメソッド |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public BasicTextAreaUI()
| メソッドの詳細 |
|---|
public static ComponentUI createUI(JComponent ta)
ta - テキスト領域
protected String getPropertyPrefix()
BasicTextUI 内の getPropertyPrefixprotected void installDefaults()
BasicTextUI の記述:
BasicTextUI 内の installDefaultsBasicTextUI.uninstallDefaults(),
BasicTextUI.installUI(javax.swing.JComponent)protected void propertyChange(PropertyChangeEvent evt)
BasicTextUI 内の propertyChangeevt - プロパティー変更イベントpublic Dimension getPreferredSize(JComponent c)
BasicTextUI 内の getPreferredSizec - エディタコンポーネント
IllegalArgumentException - 渡された値が無効な場合JComponent.getPreferredSize(),
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent c)
BasicTextUI 内の getMinimumSizec - エディタコンポーネント
IllegalArgumentException - 渡された値が無効な場合JComponent.getMinimumSize(),
LayoutManager.minimumLayoutSize(java.awt.Container),
ComponentUI.getPreferredSize(javax.swing.JComponent)public View create(Element elem)
ViewFactory 内の createBasicTextUI 内の createelem - 要素
View
public int getBaseline(JComponent c,
int width,
int height)
ComponentUI 内の getBaselinec - 要求される JComponent ベースラインwidth - ベースラインを取得する幅height - ベースラインを取得する高さ
NullPointerException - c が null の場合
IllegalArgumentException - 幅または高さが 0 より小さい場合JComponent.getBaseline(int, int)public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
ComponentUI 内の getBaselineResizeBehaviorc - ベースラインのサイズ変更の動作を返す JComponent
NullPointerException - c が null の場合JComponent.getBaseline(int, int)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。