|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--javax.swing.plaf.TextUI
|
+--javax.swing.plaf.basic.BasicTextUI
ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®ÀÇ Look & Feel ÀÇ ±âÃʰ¡ µÇ´Â Ŭ·¡½ºÀÔ´Ï´Ù. ÀÌ Å¬·¡½º´Â JTextComponent ÀÇ È®ÀåÀ» À§ÇÑ Look & Feel ¸¦ ÀÛ¼ºÇÒ °æ¿ì¿¡ Æí¸®ÇÑ, ¿¡µðÅÍÀÇ ºä ¹× ÄÜÆ®·Ñ·¯ÀÇ ±âº»ÀûÀÎ ¼ºñ½º¸¦ Á¦°øÇÕ´Ï´Ù.
¸¹Àº °æ¿ì, »óÅ´ °ü·ÃÇÏ´Â JTextComponent ¿¡ ¹Ù¿îµå ÇÁ·ÎÆÛƼ·Î¼ º¸°ü À¯ÁöµÇ°í ÀÖ¾î UI ¿¡¼´Â °¢ ÇÁ·ÎÆÛƼÀÇ µðÆúÆ® °ª°¡ ÀνºÅç µË´Ï´Ù. ÀÌ µðÆúÆ®ÀÇ µ¿ÀÛ¿¡ ÀÇÇØ, ¸ðµç ÇÁ·ÎÆÛƼ¿¡ ´ëÇØ¼ °ªÀÌ ÀνºÅç µË´Ï´Ù¸¸, Åë»ó, Look & Feel ÀÇ ±¸Çö¿¡¼´Â ÇÑÃþ ´õ ¸¹Àº ÀÏÀ» ÇÕ´Ï´Ù. Look & Feel ÀÇ ±¸Çö¿¡ ÀÇÇØ, Àû¾îµµ Ű ¹ÙÀεùÀÌ ÀνºÅç µÇ´Â °ÍÀÌ º¸ÅëÀÔ´Ï´Ù.
¶Ç, JTextComponent ¿¡ °ü·ÃÇÑ Document °¡ AbstractDocument ÀÇ ¼ºê Ŭ·¡½ºÀÎ °æ¿ì, ÀÌ Å¬·¡½º´Â º´Çà ¼Æ÷Æ®µµ Á¦°øÇÕ´Ï´Ù. View ¶Ç´Â View °èÃþ¿¡ÀÇ ¾×¼¼½º´Â ¸ðµ¨À» º¯°æÇÏ´Â thread¿Í Ç¥Çö ÇÏ°í ½ÍÀº ¸ðµ¨°ú ºä°£ÀÇ ÁÂÇ¥º¯È¸¦ ÇàÇϰųªÇϱâ À§ÇÑ Swing À̺¥Æ® thread¿ÍÀÇ »çÀÌ¿¡ Á÷·ÄÈ µË´Ï´Ù. ¸£Æ®ºä¿¡ ¾×¼¼½º ÇÏ·Á¸é , ÃÖÃÊ·Î AbstractDocument ÀÇ read ¶ôÀ» ÃëµæÇØ, ±× ¶ôÀ» ÃÖÁ¾ ºí·ÏÀ¸·Î ÇØ¹æÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
Á¤ÀÇÇÒ Çʿ䰡 ÀÖ´Â Áß¿äÇÑ ¸Þ¼Òµå´Â UIManager ·ÎºÎÅÍ µðÆúÆ®ÀÇ °ªÀ» ²¨³»±â À§Çؼ(¶§¹®¿¡) »ç¿ëµÇ´Â ŰÀÇ ±âÃÊÀÎ getPropertyPrefix() ¸Þ¼ÒµåÀÔ´Ï´Ù. ÃëµæÇÑ Ä³¸¯ÅÍ ¶óÀÎÀº À̸§ÀÇ Æ¯Á¤ÀÇ Look & Feel ºÎºÐ (Metal, Motif µî)ÀÌ ¾ø´Â TextUI ÀÇ ÇüÅ (TextField, TextArea µî)¸¦ ¹Ý¿µÇÕ´Ï´Ù.
¸ðµ¨ÀÇ ºä¸¦ ±¸ÃàÇÏ·Á¸é , ´ÙÀ½¿¡ ³ªÅ¸³»´Â ¹æ¹ýÀÇ ¾î¶² °ÍÀÎÁö¸¦ »ç¿ëÇÕ´Ï´Ù.
create(javax.swing.text.Element) ¸Þ¼Òµå¸¦ ´Ù½Ã ±¸ÇöÇÕ´Ï´Ù.
#createViewFactory ¸Þ¼Òµå¸¦ ´Ù½Ã ±¸ÇöÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿ÍÀÇ È£È¯¼ºÀÌ ¾ø¾îÁý´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ ¼Æ÷Æ®´Â ´Ü±â ±â¾ïÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. ¹öÁ¯ 1.4 ÀÇ ½ÃÁ¡¿¡¼´Â JavaBeans ÀÇ Àå±â ±â¾ï¿ëÀÇ ¼Æ÷Æ®´Â ¸ðµÎ java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. XMLEncoder ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
| ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
static class |
BasicTextUI.BasicCaret
|
static class |
BasicTextUI.BasicHighlighter
|
| »ý¼ºÀÚÀÇ °³¿ä | |
BasicTextUI ()
»õ·Î¿î UI ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
| ¸Þ¼ÒµåÀÇ °³¿ä | |
View |
create (Element elem)
¿ä¼ÒÀÇ ºä¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
View |
create (Element elem,
int p0,
int p1)
¿ä¼ÒÀÇ ºä¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected Caret |
createCaret ()
caret¿¡ »ç¿ëÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected Highlighter |
createHighlighter ()
ÇÏÀ̶óÀÌÆ®¸¦ Ãß°¡Çϱâ À§Çؼ »ç¿ëÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected Keymap |
createKeymap ()
ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®¿¡ »ç¿ëÇϴ Ű MAP¸¦ ÀÛ¼ºÇØ, °Å±â¿¡ ÇÊ¿äÇÑ ¹ÙÀεùÀ» ÀνºÅç ÇÕ´Ï´Ù. |
void |
damageRange (JTextComponent tc,
int p0,
int p1)
¸ðµ¨ÀÇ ÁöÁ¤µÈ ºÎºÐ¿¡ ´ëÀÀÇÏ´Â ºäÀÇ ºÎºÐÀÌ paint ´Ù½Ã ÇÕ´Ï´Ù. |
void |
damageRange (JTextComponent t,
int p0,
int p1,
Position.Bias p0Bias,
Position.Bias p1Bias)
¸ðµ¨³»ÀÇ ÁöÁ¤µÈ ÀϺκп¡ ´ëÀÀÇÏ´Â ºäÀÇ ºÎºÐÀÌ Ç¥Çö ´Ù½Ã ÇÕ´Ï´Ù. |
protected JTextComponent |
getComponent ()
ÀÌ UI ÀÇ ±¸Çö¿¡ °ü·ÃÇÑ ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®¸¦ ÃëµæÇÕ´Ï´Ù. |
EditorKit |
getEditorKit (JTextComponent tc)
UI ÀÇ EditorKit ¸¦ ÃëµæÇÕ´Ï´Ù. |
protected String |
getKeymapName ()
ÀÌ UI ¿¡ µðÆúÆ®·Î ÀνºÅç ¶Ç´Â »ç¿ëµÇ´Â Ű MAPÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù. |
Dimension |
getMaximumSize (JComponent c)
¿¡µðÅÍ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ´ë »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getMinimumSize (JComponent c)
¿¡µðÅÍ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ¼Ò »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
int |
getNextVisualPositionFrom (JTextComponent t,
int pos,
Position.Bias b,
int direction,
Position.Bias [] biasRet)
caret°¡ ¹èÄ¡µÉ °¡´É¼ºÀÌ ÀÖ´Â ½Ã°¢ÀûÀ¸·Î ³ªÅ¸³»Áø ´ÙÀ½ÀÇ ¸ðµ¨ À§Ä¡¸¦ °áÁ¤ÇÏ´Â ¼ö´ÜÀ» Á¦°øÇÕ´Ï´Ù. |
Dimension |
getPreferredSize (JComponent c)
¿¡µðÅÍ ÄÄÆÛ³ÍÆ®ÀÇ ÀûÀýÇÑ »çÀÌÁ ÃëµæÇÕ´Ï´Ù. |
protected abstract String |
getPropertyPrefix ()
UIManager ¸¦ »ç¿ëÇØ ÇÁ·ÎÆÛƼ¸¦ ÂüÁ¶Çϱâ À§ÇÑ Å°·Î¼ »ç¿ëµÇ´Â À̸§À» µ¹·ÁÁÝ´Ï´Ù. |
View |
getRootView (JTextComponent tc)
¸ðµ¨ÀÌ °ø°£ÀûÀ¸·Î ¾î¶»°Ô Ç¥ÇöµÇ°í ÀÖ´ÂÁö¸¦ ÆÇÁ¤Çϱâ À§Çؼ ¾Ïº® Ⱦ´Ü ÇÒ ¼ö ÀÖ´Â °ü·ÃÇÑ ÅØ½ºÆ® ÄÄÆÛ³ÍÆ® (Áï °èÃþ ·çÆ®)¸¦ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø View ¸¦ ÃëµæÇÕ´Ï´Ù. |
String |
getToolTipText (JTextComponent t,
Point pt)
°Ç³×¹ÞÀº À§Ä¡¿¡¼ Åø ÈùÆ®·Î¼ »ç¿ëµÇ´Â ij¸¯ÅÍ ¶óÀÎÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected Rectangle |
getVisibleEditorRect ()
·çÆ® View ·Î ÁöÁ¤ÇÏ´Â ÇÒ´çÀ» ÃëµæÇÕ´Ï´Ù. |
protected void |
installDefaults ()
ÆùÆ®, foreground, ¹é±×¶ó¿îµå, caretÀÇ »ö, ¼±ÅÃÀÇ »ö, ¼±ÅÃµÈ ÅØ½ºÆ®ÀÇ »ö, ¹«È¿°¡ µÈ ÅØ½ºÆ®ÀÇ »ö, º¸´õÀÇ »öµîÀÇ ÄÄÆÛ³ÍÆ® ÇÁ·ÎÆÛƼ¸¦ ÃʱâÈÇÕ´Ï´Ù. |
protected void |
installKeyboardActions ()
|
protected void |
installListeners ()
UI ÀÇ Ã»ÃëÀÚ¸¦ ÀνºÅç ÇÕ´Ï´Ù. |
void |
installUI (JComponent c)
ÄÄÆÛ³ÍÆ®ÀÇ UI ¸¦ ÀνºÅç ÇÕ´Ï´Ù. |
protected void |
modelChanged ()
¸ðµ¨ÀÇ º¯°æ¿¡ Ç÷¡±×¸¦ ¼¼¿ó´Ï´Ù. |
Rectangle |
modelToView (JTextComponent tc,
int pos)
¸ðµ¨³»ÀÇ ÁöÁ¤µÈ À§Ä¡¸¦, ºä ÁÂÇ¥ ü°è³»ÀÇ Àå¼Ò·Î º¯È¯ÇÕ´Ï´Ù. |
Rectangle |
modelToView (JTextComponent tc,
int pos,
Position.Bias bias)
¸ðµ¨³»ÀÇ ÁöÁ¤µÈ À§Ä¡¸¦, ºä ÁÂÇ¥ ü°è³»ÀÇ Àå¼Ò·Î º¯È¯ÇÕ´Ï´Ù. |
void |
paint (Graphics g,
JComponent c)
ÀÎÅÍÆäÀ̽º¸¦ paint ÇÕ´Ï´Ù. |
protected void |
paintBackground (Graphics g)
ºäÀÇ ¹é±×¶ó¿îµå¸¦ paint ÇÕ´Ï´Ù. |
protected void |
paintSafely (Graphics g)
ÀÌ threadÀÇ ºä·ÎºÎÅÍ ¸ðµ¨ÀÌ º¯°æµÇÁö ¾Ê´Â´Ù°í ÇÏ´Â ÇÁ·ÎÅØ¼Ç ÷ºÎ·Î, ¾ÈÀüÇÏ°Ô ÀÎÅÍÆäÀ̽º¸¦ paint ÇÕ´Ï´Ù. |
protected void |
propertyChange (PropertyChangeEvent evt)
°ü·ÃÇÏ´Â JTextComponent ·Î ¹Ù¿îµå ÇÁ·ÎÆÛƼ°¡ º¯°æµÇ¾úÀ» ¶§¿¡ ºÒ·Á °©´Ï´Ù. |
protected void |
setView (View v)
ºä °èÃþÀÇ ÇöÀçÀÇ ·çÆ®¸¦ ¼³Á¤ÇØ, invalidate()¸¦ È£ÃâÇÕ´Ï´Ù. |
protected void |
uninstallDefaults ()
null ¿¡ ¸í½ÃÀûÀ¸·Î ¿À¹ö¶óÀ̵å(override)µÇ¾î ÀÖÁö ¾ÊÀº ÄÄÆÛ³ÍÆ® ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
uninstallKeyboardActions ()
|
protected void |
uninstallListeners ()
UI ÀÇ Ã»ÃëÀÚ¸¦ ¾ðÀνºÅçÇÕ´Ï´Ù. |
void |
uninstallUI (JComponent c)
ÄÄÆÛ³ÍÆ®ÀÇ UI ¸¦ ¾ðÀνºÅçÇÕ´Ï´Ù. |
void |
update (Graphics g,
JComponent c)
½´ÆÛ Ŭ·¡½º´Â Á¦¾î ºÒ°¡´ÉÇÑ ¹æ¹ýÀ¸·Î ¹é±×¶ó¿îµå¸¦ paint ÇÕ´Ï´Ù. |
int |
viewToModel (JTextComponent tc,
Point pt)
ºä ÁÂÇ¥ ü°è³»ÀÇ ÁöÁ¤µÈ À§Ä¡¸¦, ¸ðµ¨³»ÀÇ °¡Àå °¡±î¿î Àå¼Ò·Î º¯È¯ÇÕ´Ï´Ù. |
int |
viewToModel (JTextComponent tc,
Point pt,
Position.Bias [] biasReturn)
ºä ÁÂÇ¥ ü°è³»ÀÇ ÁöÁ¤µÈ À§Ä¡¸¦, ¸ðµ¨³»ÀÇ °¡Àå °¡±î¿î Àå¼Ò·Î º¯È¯ÇÕ´Ï´Ù. |
| Ŭ·¡½º javax.swing.plaf. ComponentUI ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
contains , createUI , getAccessibleChild , getAccessibleChildrenCount |
| Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| »ý¼ºÀÚÀÇ »ó¼¼ |
public BasicTextUI()
| ¸Þ¼ÒµåÀÇ »ó¼¼ |
protected Caret createCaret()
protected Highlighter createHighlighter()
protected String getKeymapName()
protected Keymap createKeymap()
Ű MAP¸¦ ÀÛ¼ºÇϱâ À§Çؼ »ç¿ëµÇ´Â ¹ÙÀεù¼¼Æ®´Â getPropertyPrefix() ¸Þ¼Òµå¿Í ij¸¯ÅÍ ¶óÀÎ . keyBindings ¸¦ °áÇÕÇÑ Å°¸¦ »ç¿ëÇØ UIManager ·ÎºÎÅÍ ÃëµæµË´Ï´Ù. ÇüÅ´ JTextComponent.KeyBinding[] ÀÌ´Ù°í º¸¿©Áý´Ï´Ù.
getKeymapName() ,
JTextComponent protected void propertyChange(PropertyChangeEvent evt)
evt - ÇÁ·ÎÆÛƼ º¯°æ À̺¥Æ®protected abstract String getPropertyPrefix()
protected void installDefaults()
uninstallDefaults() ,
installUI(javax.swing.JComponent) protected void uninstallDefaults()
installDefaults() ,
uninstallUI(javax.swing.JComponent) protected void installListeners()
protected void uninstallListeners()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
protected void paintBackground(Graphics g)
g - ±×·¡ÇȽº ¹®¸Æprotected final JTextComponent getComponent()
protected void modelChanged()
protected final void setView(View v)
v - ¸£Æ®ºäprotected void paintSafely(Graphics g)
g - ±×·¡ÇȽº ¹®¸Æpublic void installUI(JComponent c)
ComponentUI ³»ÀÇ installUI c - ¿¡µðÅÍ ÄÄÆÛ³ÍÆ®ComponentUI.installUI(javax.swing.JComponent) public void uninstallUI(JComponent c)
ComponentUI ³»ÀÇ uninstallUI c - ¿¡µðÅÍ ÄÄÆÛ³ÍÆ®ComponentUI.uninstallUI(javax.swing.JComponent)
public void update(Graphics g,
JComponent c)
ÁÖ: ¶Ç, µðÆúÆ®ÀÇ Ç¥ÇöÀÇ °æ¿ì´Â ¹®Á¦ ¾ø½À´Ï´Ù¸¸, ½´ÆÛ Ŭ·¡½ºÀÇ °æ¿ì´Â ¹é±×¶ó¿îµå Ç¥Çö½Ã¿¡ thread ¼¼ÀÌÇÁ°¡ ¾Æ´Õ´Ï´Ù.
ComponentUI ³»ÀÇ update g - paintó°¡ µÇ´Â Graphics ¹®¸Æc - paint µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) ,
JComponent.paintComponent(java.awt.Graphics)
public final void paint(Graphics g,
JComponent c)
ComponentUI ³»ÀÇ paint g - ±×·¡ÇȽº ¹®¸Æc - ¿¡µðÅÍ ÄÄÆÛ³ÍÆ®ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) public Dimension getPreferredSize(JComponent c)
ComponentUI ³»ÀÇ getPreferredSize c - ¿¡µðÅÍ ÄÄÆÛ³ÍÆ®
JComponent.getPreferredSize() ,
LayoutManager.preferredLayoutSize(java.awt.Container) public Dimension getMinimumSize(JComponent c)
ComponentUI ³»ÀÇ getMinimumSize c - ¿¡µðÅÍ ÄÄÆÛ³ÍÆ®
JComponent.getMinimumSize() ,
LayoutManager.minimumLayoutSize(java.awt.Container) ,
ComponentUI.getPreferredSize(javax.swing.JComponent) public Dimension getMaximumSize(JComponent c)
ComponentUI ³»ÀÇ getMaximumSize c - ¿¡µðÅÍ ÄÄÆÛ³ÍÆ®
JComponent.getMaximumSize() ,
LayoutManager2.maximumLayoutSize(java.awt.Container) protected Rectangle getVisibleEditorRect()
public Rectangle modelToView(JTextComponent tc,
int pos)
throws BadLocationException
TextUI ³»ÀÇ modelToView tc - ÀÌ UI °¡ ÀνºÅç µÇ°í ÀÖ´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®pos - º¯È¯ ´ë»óÀÇ ¸ðµ¨³»¿¡¼ÀÇ ·ÎÄà À§Ä¡ <= 0
BadLocationException - ÁöÁ¤µÈ À§Ä¡°¡, °ü·ÃÇÏ´Â ¹®¼³»ÀÇ À¯È¿ÇÑ À§Ä¡¸¦ ³ªÅ¸³»Áö ¾Ê´Â °æ¿ìTextUI.modelToView(javax.swing.text.JTextComponent, int)
public Rectangle modelToView(JTextComponent tc,
int pos,
Position.Bias bias)
throws BadLocationException
TextUI ³»ÀÇ modelToView tc - ÀÌ UI °¡ ÀνºÅç µÇ°í ÀÖ´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®pos - º¯È¯ ´ë»óÀÇ ¸ðµ¨³»¿¡¼ÀÇ ·ÎÄà À§Ä¡ <= 0
BadLocationException - ÁöÁ¤µÈ À§Ä¡°¡, °ü·ÃÇÏ´Â ¹®¼³»ÀÇ À¯È¿ÇÑ À§Ä¡¸¦ ³ªÅ¸³»Áö ¾Ê´Â °æ¿ìTextUI.modelToView(javax.swing.text.JTextComponent, int)
public int viewToModel(JTextComponent tc,
Point pt)
TextUI ³»ÀÇ viewToModel tc - ÀÌ UI °¡ ÀνºÅç µÇ°í ÀÖ´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®pt - º¯È¯ ´ë»óÀÇ ºäÀÇ ÁÂÇ¥°è¿¡¼ÀÇ À§Ä¡. ÀÌ °æ¿ìÀÇ ÁÂÇ¥°è´Â ¸¶¿ì½º À̺¥Æ®¿Í °°Àº ÁÂÇ¥°è°¡ ¾Æ´Ï¸é ¾ÈµÈ´Ù
TextUI.viewToModel(javax.swing.text.JTextComponent, java.awt.Point)
public int viewToModel(JTextComponent tc,
Point pt,
Position.Bias [] biasReturn)
TextUI ³»ÀÇ viewToModel tc - ÀÌ UI °¡ ÀνºÅç µÇ°í ÀÖ´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®pt - º¯È¯ ´ë»óÀÇ ºäÀÇ ÁÂÇ¥°è¿¡¼ÀÇ À§Ä¡. ÀÌ °æ¿ìÀÇ ÁÂÇ¥°è´Â ¸¶¿ì½º À̺¥Æ®¿Í °°Àº ÁÂÇ¥°è°¡ ¾Æ´Ï¸é ¾ÈµÇ´ÂbiasReturn - ÁöÁ¤µÈ Á¡ÀÌ ¸ðµ¨ÀÇ ÀüÀÇ Ä³¸¯ÅÍ, ȤÀº ´ÙÀ½ÀÇ Ä³¸¯ÅÍ¿¡ °¡±î¿î °ÍÀÎÁö¸¦ ³ªÅ¸³»±â À§Çؼ(¶§¹®¿¡), ÀÌ ¸Þ¼Òµå¿¡ ÀÇÇØ ±âÀÔÇØÁø´Ù
TextUI.viewToModel(javax.swing.text.JTextComponent, java.awt.Point)
public int getNextVisualPositionFrom(JTextComponent t,
int pos,
Position.Bias b,
int direction,
Position.Bias [] biasRet)
throws BadLocationException
TextUI ³»ÀÇ getNextVisualPositionFrom pos - º¯È¯ ´ë»óÀÇ À§Ä¡ <= 0direction - Űº¸µå»ó¿¡ Åë»ó ÀÖ´Â Ä¿¼ ۶ó°í º¼ ¼ö°¡ ÀÖ´Â ÇöÀçÀÇ À§Ä¡·ÎºÎÅÍÀÇ ¹æÇâ. SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, ¶Ç´Â SwingConstants.SOUTH
BadLocationException
IllegalArgumentException - ¹æÇâÀÌ ¹«È¿ÀÎ °æ¿ì
public void damageRange(JTextComponent tc,
int p0,
int p1)
TextUI ³»ÀÇ damageRange tc - ÀÌ UI °¡ ÀνºÅç µÇ°í ÀÖ´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®p0 - ¹üÀ§ÀÇ ½ÃÁ¡ <= 0p1 - ¹üÀ§ÀÇ Á¾Á¡ <= p0TextUI.damageRange(javax.swing.text.JTextComponent, int, int)
public void damageRange(JTextComponent t,
int p0,
int p1,
Position.Bias p0Bias,
Position.Bias p1Bias)
TextUI ³»ÀÇ damageRange p0 - ¹üÀ§ÀÇ ½ÃÁ¡ <= 0p1 - ¹üÀ§ÀÇ Á¾Á¡ <= p0public EditorKit getEditorKit(JTextComponent tc)
TextUI ³»ÀÇ getEditorKit tc - ÀÌ UI °¡ ÀνºÅç µÇ°í ÀÖ´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®
TextUI.getEditorKit(javax.swing.text.JTextComponent) public View getRootView(JTextComponent tc)
ÁÖ: View °èÃþÀº ¸£Æ®ºä·ÎºÎÅÍ ¾Ïº® Ⱦ´Ü ÇÒ ¼ö°¡ ÀÖ¾î ´Ù¸¥ Àϵµ ÀÌ¿Í °°ÀÌ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ¿Í °°ÀÌ ÇàÇØÁ³´ø °ÍÀº TextUI ¸¦ ÅëÇÑ ´Ü¼øÇÑ ¸Þ¼Òµå È£Ãâ°ú °°ÀÌ º¸È£ÇÒ ¼ö°¡ ¾ø½À´Ï´Ù. µû¶ó¼, º´Ç༺À» »ý°¢µÇ´Â ÀûÀýÇÑ ¿ÀÆÛ·¹À̼ÇÀº ÀÌ ¸Þ¼Òµå¸¦ È£ÃâÇÏ´Â ³í¸®·Î 󸮸¦ Çϵµ·Ï(µíÀÌ) ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
TextUI ³»ÀÇ getRootView tc - ÀÌ UI °¡ ÀνºÅç µÇ°í ÀÖ´Â ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®
TextUI.getRootView(javax.swing.text.JTextComponent)
public String getToolTipText(JTextComponent t,
Point pt)
TextUI ³»ÀÇ getToolTipText JTextComponent.getToolTipText(java.awt.event.MouseEvent) ,
View.getToolTipText(float, float, java.awt.Shape) public View create(Element elem)
ViewFactory ³»ÀÇ create elem - ¿ä¼Ò
View
public View create(Element elem,
int p0,
int p1)
elem - ¿ä¼Òp0 - °³½Ã ¿ÀÇÁ¼Â(offset) <= 0p1 - Á¾·á ¿ÀÇÁ¼Â(offset) <= p0
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.