|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.View
javax.swing.text.PlainView
javax.swing.text.FieldView
javax.swing.text.PasswordView
public class 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 - 描画のために割り当てられた領域b - 位置が 2 つのビューの境界である場合に、
オフセットによって表される直前の文字または次の文字へのバイアス。
b の値は
次のどちらか一つになる
Position.Bias.Forward
Position.Bias.Backward
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
View.getPreferredSpan(int)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。