|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--javax.swing.text.View
|
+--javax.swing.text.PlainView
|
+--javax.swing.text.FieldView
|
+--javax.swing.text.PasswordView
JPasswordField UI の実装で使うのに適した View を実装します。基本的に、関連するコンポーネントで指定されたエコー文字でその内容を描画する UI フィールドです (コンポーネントを JPasswordField に限定できる場合)。
View| フィールドの概要 |
| クラス javax.swing.text.PlainView から継承したフィールド |
metrics |
| クラス javax.swing.text.View から継承したフィールド |
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
| インタフェース javax.swing.SwingConstants から継承したフィールド |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| コンストラクタの概要 | |
PasswordView(Element elem)
要素にラップされた新しいビューを作成します。 |
|
| メソッドの概要 | |
protected int |
drawEchoCharacter(Graphics g,
int x,
int y,
char c)
エコー文字を描画するか、パスワード文字列を表示するのに使う任意のグラフィックを描画します。 |
protected int |
drawSelectedText(Graphics g,
int x,
int y,
int p0,
int p1)
モデル内の指定された範囲を、選択したテキストとして描画します。 |
protected int |
drawUnselectedText(Graphics g,
int x,
int y,
int p0,
int p1)
モデル内の指定された範囲を、選択解除した通常のテキストとして描画します。 |
float |
getPreferredSpan(int axis)
このビューに適切なスパンを軸に沿って指定します。 |
Shape |
modelToView(int pos,
Shape a,
Position.Bias b)
ドキュメントモデルの座標空間からビューの座標空間へのマッピングを提供します。 |
int |
viewToModel(float fx,
float fy,
Shape a,
Position.Bias[] bias)
ビューの座標空間からモデルの論理座標空間へのマッピングを提供します。 |
| クラス javax.swing.text.FieldView から継承したメソッド |
adjustAllocation, getFontMetrics, getResizeWeight, insertUpdate, paint, removeUpdate |
| クラス javax.swing.text.PlainView から継承したメソッド |
changedUpdate, damageLineRange, drawLine, getLineBuffer, getTabSize, lineToRect, nextTabStop, setSize, updateDamage, updateMetrics |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public PasswordView(Element elem)
elem - 要素| メソッドの詳細 |
protected int drawUnselectedText(Graphics g,
int x,
int y,
int p0,
int p1)
throws BadLocationException
PlainView 内の drawUnselectedTextg - グラフィックスコンテキストx - 開始 X 座標 >= 0y - 開始 Y 座標 >= 0p0 - モデル内の開始オフセット >= 0p1 - モデル内の終了オフセット >= p0
BadLocationException - p0 または p1 が範囲外の場合
protected int drawSelectedText(Graphics g,
int x,
int y,
int p0,
int p1)
throws BadLocationException
PlainView 内の drawSelectedTextg - グラフィックスコンテキストx - 開始 X 座標 >= 0y - 開始 Y 座標 >= 0p0 - モデル内の開始オフセット >= 0p1 - モデル内の終了オフセット >= p0
BadLocationException - p0 または p1 が範囲外の場合
protected int drawEchoCharacter(Graphics g,
int x,
int y,
char c)
g - グラフィックスコンテキストx - 開始 X 座標 >= 0y - 開始 Y 座標 >= 0c - エコー文字
public Shape modelToView(int pos,
Shape a,
Position.Bias b)
throws BadLocationException
FieldView 内の modelToViewpos - 変換対象の位置 >= 0a - 描画のために割り当てられた領域
BadLocationException - 指定された位置が、関連するドキュメント内の有効な位置を表さない場合View.modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)
public int viewToModel(float fx,
float fy,
Shape a,
Position.Bias[] bias)
FieldView 内の viewToModelfx - X 座標 >= 0.0ffy - Y 座標 >= 0.0fa - 描画のために割り当てられた領域
View.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])public float getPreferredSpan(int axis)
FieldView 内の getPreferredSpanaxis - View.X_AXIS または View.Y_AXIS
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.