public class PasswordView extends FieldView
ViewBadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISBOTTOM, 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) |
ビューの座標空間からモデルの論理座標空間へのマッピングを提供します。
|
adjustAllocation, getFontMetrics, getResizeWeight, insertUpdate, paint, removeUpdatechangedUpdate, damageLineRange, drawLine, getLineBuffer, getTabSize, lineToRect, nextTabStop, setSize, updateDamage, updateMetricsappend, breakView, createFragment, forwardUpdate, forwardUpdateToView, getAlignment, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMaximumSpan, getMinimumSpan, getNextVisualPositionFrom, getParent, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, updateChildren, updateLayout, viewToModelpublic PasswordView(Element elem)
elem - 要素protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException
drawUnselectedText、クラスPlainViewg - グラフィックス・コンテキストx - 開始X座標>= 0y - 開始Y座標>= 0p0 - モデル内の開始オフセット>= 0p1 - モデル内の終了オフセット>= p0BadLocationException - p0またはp1が範囲外の場合protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException
drawSelectedText、クラスPlainViewg - グラフィックス・コンテキストx - 開始X座標>= 0y - 開始Y座標>= 0p0 - モデル内の開始オフセット>= 0p1 - モデル内の終了オフセット>= p0BadLocationException - 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
modelToView、クラスFieldViewpos - 変換対象の位置>= 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)
viewToModel、クラスFieldViewfx - X座標>= 0.0ffy - Y座標>= 0.0fa - 描画するために割り当てられた領域View.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])public float getPreferredSpan(int axis)
getPreferredSpan、クラスFieldViewaxis - View.X_AXISまたはView.Y_AXISView.getPreferredSpan(int) バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。