|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
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)
¸Þ¾Æ¸® ¹®ÀÚ¸¦ ·»´õ¸µ ÇÏ´ÂÁö, ÆÐ½º¿öµå ij¸¯ÅÍ ¶óÀÎÀ» Ç¥½ÃÇϴµ¥ »ç¿ëÇÏ´Â ÀÓÀÇÀÇ ±×·¡ÇÈÀ» ·»´õ¸µ ÇÕ´Ï´Ù. |
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 |
Ŭ·¡½º 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
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªb
- À§°ªÀÌ 2°³ÀÇ ºäÀÇ °æ°èÀÎ °æ¿ì¿¡
¿ÀÇÁ¼Â(offset)¿¡ ÀÇÇØ ³ªÅ¸³»Áö±â Á÷ÀüÀÇ ¹®ÀÚ ¶Ç´Â ´ÙÀ½ÀÇ ¹®ÀÚ¿¡ÀÇ ¹ÙÀ̾. 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
³»ÀÇ viewToModel
fx
- X ÁÂÇ¥ >= 0.0ffy
- Y ÁÂÇ¥ >= 0.0fa
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ª
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 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.