|
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 를 구현합니다. 기본적으로, 관련하는 컴퍼넌트로 지정된 메아리 문자로 그 내용을 draw 하는 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)
메아리 문자를 draw 하는지, 패스워드 캐릭터 라인을 표시하는데 사용하는 임의의 그래픽을 draw 합니다. |
protected int |
drawSelectedText (Graphics g,
int x,
int y,
int p0,
int p1)
모델내의 지정된 범위를, 선택된 텍스트로서 draw 합니다. |
protected int |
drawUnselectedText (Graphics g,
int x,
int y,
int p0,
int p1)
모델내의 지정된 범위를 일반적으로의 선택되어 있지 않은 텍스트로서 draw 합니다. |
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 |
| 클래스 javax.swing.text. View 로부터 상속된 메소드 |
|---|
append , 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 , viewToModel |
| 클래스 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 내의 drawUnselectedText g - 그래픽스 문맥x - 개시 X 좌표 >= 0y - 개시 Y 좌표 >= 0p0 - 모델내의 개시 오프셋(offset) >= 0p1 - 모델내의 종료 오프셋(offset) >= p0
BadLocationException - p0 또는 p1 가 범위외의 경우
protected int drawSelectedText(Graphics g,
int x,
int y,
int p0,
int p1)
throws BadLocationException
PlainView 내의 drawSelectedText g - 그래픽스 문맥x - 개시 X 좌표 >= 0y - 개시 Y 좌표 >= 0p0 - 모델내의 개시 오프셋(offset) >= 0p1 - 모델내의 종료 오프셋(offset) >= 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 내의 modelToView pos - 변환 대상의 위치 >>= 0a - draw를 위해서(때문에) 할당할 수 있었던 영역b - 위치가 2 개의 뷰의 경계인 경우에,
오프셋(offset)에 의해 나타내지기 직전의 문자 또는 다음의 문자에의 바이어스.
b 의 값은
다음의 어느 쪽인지 1개가 된다
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 내의 viewToModel fx - X 좌표 >= 0.0ffy - Y 좌표 >= 0.0fa - draw를 위해서(때문에) 할당할 수 있었던 영역
View.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[]) public float getPreferredSpan(int axis)
FieldView 내의 getPreferredSpan axis - 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 도 참조해 주세요.