|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.multi.MultiTextUI
public class MultiTextUI
TextUI
°áÇÕ¿¡ »ç¿ëÇÏ´Â ´ÙÁß UI ÀÔ´Ï´Ù.
ÀÌ ÆÄÀÏÀº AutoMulti¿¡ ÀÇÇØ ÀÚµ¿ »ý¼ºµÈ °ÍÀÔ´Ï´Ù.
ÇÊµå °³¿ä | |
---|---|
protected Vector |
uis
½ÇÁ¦ÀÇ UI°¡ Æ÷ÇԵǰí ÀÖ´Â º¤ÅÍÀÔ´Ï´Ù. |
»ý¼ºÀÚ °³¿ä | |
---|---|
MultiTextUI ()
|
¸Þ¼µå °³¿ä | |
---|---|
boolean |
contains (JComponent a,
int b,
int c)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î contains ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
static ComponentUI |
createUI (JComponent a)
º¸Á¶ LookAndFeel
¾î¶² °ÍÀΰ¡°¡ ÀÌ UI¸¦ Áö¿øÇÏ´ÂÀÎ °æ¿ì´Â ´ÙÁß UI ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
damageRange (JTextComponent a,
int b,
int c)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î damageRange ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
void |
damageRange (JTextComponent a,
int b,
int c,
Position.Bias d,
Position.Bias e)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î damageRange ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
Accessible |
getAccessibleChild (JComponent a,
int b)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getAccessibleChild ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
int |
getAccessibleChildrenCount (JComponent a)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getAccessibleChildrenCount ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
EditorKit |
getEditorKit (JTextComponent a)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getEditorKit ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
Dimension |
getMaximumSize (JComponent a)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getMaximumSize ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
Dimension |
getMinimumSize (JComponent a)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getMinimumSize ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
int |
getNextVisualPositionFrom (JTextComponent a,
int b,
Position.Bias c,
int d,
Position.Bias [] e)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getNextVisualPositionFrom ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
Dimension |
getPreferredSize (JComponent a)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getPreferredSize ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
View |
getRootView (JTextComponent a)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getRootView ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
String |
getToolTipText (JTextComponent a,
Point b)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î getToolTipText ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
ComponentUI [] |
getUIs ()
ÀÌ ´ÙÁß UI¿¡ °ü·ÃµÈ UI ¸®½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
installUI (JComponent a)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î installUI ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
Rectangle |
modelToView (JTextComponent a,
int b)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î modelToView ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
Rectangle |
modelToView (JTextComponent a,
int b,
Position.Bias c)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î modelToView ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
void |
paint (Graphics a,
JComponent b)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î paint ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
void |
uninstallUI (JComponent a)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î uninstallUI ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
void |
update (Graphics a,
JComponent b)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î update ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
int |
viewToModel (JTextComponent a,
Point b)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î viewToModel ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
int |
viewToModel (JTextComponent a,
Point b,
Position.Bias [] c)
ÀÌ °´Ã¼°¡ Ãë±ÞÇÏ´Â °¢ UI ·Î viewToModel ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
protected Vector uis
createUI
È£Ãâ¿¡ ÀÇÇØ ÀÛ¼ºµÇ¾îgetUIs
¸Þ¼µå¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù. ÃÖÃÊÀÇ ¿ä¼Ò´Â µðÆúÆ®ÀÇ Look & Feel ·ÎºÎÅÍ ¾òÀ» ¼ö ÀÖ´ø ½ÇÁ¦ÀÇ UI ÀÎ °ÍÀÌ º¸ÁõµË´Ï´Ù.
»ý¼ºÀÚ »ó¼¼ |
---|
public MultiTextUI()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public ComponentUI [] getUIs()
public String getToolTipText(JTextComponent a, Point b)
getToolTipText
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ getToolTipText
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIJTextComponent.getToolTipText(java.awt.event.MouseEvent)
public Rectangle modelToView(JTextComponent a, int b) throws BadLocationException
modelToView
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ modelToView
b
- º¯È¯ ´ë»óÀÇ ¸ðµ¨³»¿¡¼ÀÇ ·ÎÄà À§Ä¡ >= 0
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UI
BadLocationException
- ÁöÁ¤µÈ À§°ªÀÌ °ü·ÃµÈ ¹®¼³»ÀÇ À¯È¿ÇÑ À§Ä¡¸¦ ³ªÅ¸³»Áö ¾Ê´Â °æ¿ìpublic Rectangle modelToView(JTextComponent a, int b, Position.Bias c) throws BadLocationException
modelToView
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ modelToView
b
- º¯È¯ ´ë»óÀÇ ¸ðµ¨³»¿¡¼ÀÇ ·ÎÄà À§Ä¡ >= 0
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UI
BadLocationException
- ÁöÁ¤µÈ À§°ªÀÌ °ü·ÃµÈ ¹®¼³»ÀÇ À¯È¿ÇÑ À§Ä¡¸¦ ³ªÅ¸³»Áö ¾Ê´Â °æ¿ìpublic int viewToModel(JTextComponent a, Point b)
viewToModel
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ viewToModel
b
- º¯È¯ ´ë»óÀÇ ºäÀÇ ÁÂÇ¥°è¿¡¼ÀÇ À§Ä¡. ÀÌ °æ¿ìÀÇ ÁÂÇ¥°è´Â ¸¶¿ì½º À̺¥Æ®¿Í °°Àº ÁÂÇ¥°è°¡ ¾Æ´Ï¸é ¾ÈµÈ´Ù
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIpublic int viewToModel(JTextComponent a, Point b, Position.Bias [] c)
viewToModel
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ viewToModel
b
- º¯È¯ ´ë»óÀÇ ºäÀÇ ÁÂÇ¥°è¿¡¼ÀÇ À§Ä¡. ÀÌ °æ¿ìÀÇ ÁÂÇ¥°è´Â ¸¶¿ì½º À̺¥Æ®¿Í °°Àº ÁÂÇ¥°è°¡ ¾Æ´Ï¸é ¾ÈµÇ´Âc
- ÁöÁ¤µÈ Á¡ÀÌ ¸ðµ¨ÀÇ ÀüÀÇ ¹®ÀÚ, ȤÀº ´ÙÀ½ÀÇ ¹®ÀÚ¿¡ °¡±î¿î °ÍÀÎÁö¸¦ ³ªÅ¸³»±â À§Çؼ
ÀÌ ¸Þ¼µå¿¡ ÀÇÇØ Ãâ·ÂÇØÁø´Ù
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIpublic int getNextVisualPositionFrom(JTextComponent a, int b, Position.Bias c, int d, Position.Bias [] e) throws BadLocationException
getNextVisualPositionFrom
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ getNextVisualPositionFrom
b
- º¯È¯ ´ë»óÀÇ À§Ä¡ >= 0c
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªd
- Űº¸µå»ó¿¡ º¸Åë
ÀÖ´Â Ä¿¼ ۶ó°í º¼ ¼ö ÀÖ´Â
ÇöÀçÀÇ À§Ä¡·ÎºÎÅÍÀÇ ¹æÇâ. SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, ¶Ç´Â SwingConstants.SOUTH
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UI
BadLocationException
- @exception IllegalArgumentException ¹æÇâÀÌ ¹«È¿ÀÎ °æ¿ìpublic void damageRange(JTextComponent a, int b, int c)
damageRange
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ damageRange
b
- ¹üÀ§ÀÇ ½ÃÁ¡ >= 0c
- ¹üÀ§ÀÇ Á¾Á¡ >= p0public void damageRange(JTextComponent a, int b, int c, Position.Bias d, Position.Bias e)
damageRange
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ damageRange
b
- ¹üÀ§ÀÇ ½ÃÁ¡ >= 0c
- ¹üÀ§ÀÇ Á¾Á¡ >= p0public EditorKit getEditorKit(JTextComponent a)
getEditorKit
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ getEditorKit
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIpublic View getRootView(JTextComponent a)
getRootView
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
TextUI
³»ÀÇ getRootView
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIpublic boolean contains(JComponent a, int b, int c)
contains
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ contains
a
- x, y
À§°ªÀÌ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Âb
- Á¡ÀÇ x ÁÂÇ¥c
- Á¡ÀÇ y ÁÂÇ¥
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIJComponent.contains(int, int)
,
Component.contains(int, int)
public void update(Graphics a, JComponent b)
update
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ update
a
- ÆäÀÎÆ® ´ë»óÀÇ Graphics
ÄÁÅØ½ºÆ®
b
- ÆäÀÎÆ® µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
,
JComponent.paintComponent(java.awt.Graphics)
public static ComponentUI createUI(JComponent a)
LookAndFeel
¾î¶² °ÍÀΰ¡°¡ ÀÌ UI¸¦ Áö¿øÇÏ´ÂÀÎ °æ¿ì´Â ´ÙÁß UI ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â µðÆúÆ® LookAndFeel
·Î
ºÎÅÍ ÃëµæµÈ UI °´Ã¼¸¸À» ¸®ÅÏÇÕ´Ï´Ù.
public void installUI(JComponent a)
installUI
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ installUI
a
- UI À§¾çÀÌ ÀνºÅç µÇ°í ÀÖ´Â ÄÄÆÛ³ÍÆ®ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent a)
uninstallUI
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ uninstallUI
a
- ÀÌ UI À§¾çÀÌ »èÁ¦µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
public void paint(Graphics a, JComponent b)
paint
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ paint
a
- ÆäÀÎÆ® ´ë»óÀÇ Graphics
ÄÁÅØ½ºÆ®
b
- ÆäÀÎÆ® µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
public Dimension getPreferredSize(JComponent a)
getPreferredSize
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ getPreferredSize
a
- ÀûÀýÇÑ »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIJComponent.getPreferredSize()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension getMinimumSize(JComponent a)
getMinimumSize
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ getMinimumSize
a
- ÃÖ¼Ò »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIJComponent.getMinimumSize()
,
LayoutManager.minimumLayoutSize(java.awt.Container)
,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public Dimension getMaximumSize(JComponent a)
getMaximumSize
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ getMaximumSize
a
- ÃÖ´ë »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIJComponent.getMaximumSize()
,
LayoutManager2.maximumLayoutSize(java.awt.Container)
public int getAccessibleChildrenCount(JComponent a)
getAccessibleChildrenCount
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ getAccessibleChildrenCount
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIComponentUI.getAccessibleChild(javax.swing.JComponent, int)
public Accessible getAccessibleChild(JComponent a, int b)
getAccessibleChild
¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù.
ComponentUI
³»ÀÇ getAccessibleChild
b
- Á¦·Î·ÎºÎÅÍ ½ÃÀ۵ǴÂÀÚ½Ä
ÀÇ À妽º
LookAndFeel
·Î
ºÎÅÍ ÃëµæµÇ´Â UIComponentUI.getAccessibleChildrenCount(javax.swing.JComponent)
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.