|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
public abstract class BasicTextUI
ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®ÀÇ Look & Feel
±âÃʰ¡ µÇ´Â Ŭ·¡½ºÀÔ´Ï´Ù. ÀÌ Å¬·¡½º´Â JTextComponent
È®ÀåÀ» À§ÇÑ Look & Feel¸¦ ÀÛ¼ºÇÒ °æ¿ì¿¡ Æí¸®ÇÑ, ¿¡µðÅÍÀÇ ºä ¹× ÄÜÆ®·Ñ·¯ÀÇ ±âº»ÀûÀÎ ¼ºñ½º¸¦ Á¦°øÇÕ´Ï´Ù.
¸¹Àº °æ¿ì, »óÅ´ °ü·ÃµÈ JTextComponent¿¡ ¹Ù¿îµå ÇÁ·ÎÆÛƼ·Î¼ º¸°ü À¯ÁöµÇ°í ÀÖ¾î UI ¿¡¼´Â °¢ ÇÁ·ÎÆÛƼÀÇ ±âº»°ªÀÌ ÀνºÅç µË´Ï´Ù. ÀÌ µðÆúÆ®ÀÇ µ¿ÀÛ¿¡ÀÇÇØ ¸ðµç ÇÁ·ÎÆÛƼ¿¡ ´ëÇØ¼ °ªÀÌ ÀνºÅç µË´Ï´Ù¸¸, º¸Åë, Look & Feel
±¸Çö¿¡¼´Â ¶ÇÇÑ
¸¹Àº ÀÏÀ» ÇÕ´Ï´Ù. Look & Feel
±¸Çö¿¡ÀÇÇØ Àû¾îµµ Ű ¹ÙÀεùÀÌ ÀνºÅç µÇ´Â °ÍÀÌ º¸ÅëÀÔ´Ï´Ù.
¶Ç, JTextComponent¿¡ °ü·ÃÇÑ DocumentÀÌ AbstractDocument
¼ºê Ŭ·¡½ºÀÎ °æ¿ì, ÀÌ Å¬·¡½º´Â º´Çà Áö¿ø
µµ Á¦°øÇÕ´Ï´Ù. View ¶Ç´Â View °èÃþ¿¡ÀÇ ¾×¼¼½º´Â ¸ðµ¨À» º¯°æÇÏ´Â thread¿Í ·»´õ¸µ ÇÏ°í ½ÍÀº ¸ðµ¨°ú ºä°£ÀÇ ÁÂÇ¥º¯È¸¦ ÇàÇϰųªÇϱâ À§ÇÑ Swing À̺¥Æ® thread¿ÍÀÇ »çÀÌ¿¡ Á÷·ÄÈ µË´Ï´Ù. ¸£Æ®ºä¿¡ ¾×¼¼½º ÇÏ·Á¸é,
ÃÖÃÊ·Î AbstractDocument
µ¶ÇØ ¶ôÀ» ÃëµæÇØ, ±× ¶ôÀ» ÃÖÁ¾ ºí·ÏÀ¸·Î ÇØ¹æÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
Á¤ÀÇÇÒ Çʿ䰡 ÀÖ´Â Áß¿äÇÑ ¸Þ¼µå´Â UIManager ·ÎºÎÅÍ µðÆúÆ®ÀÇ °ªÀ» ²¨³»±â À§Çؼ »ç¿ëµÇ´Â ŰÀÇ ±âÃÊÀÎ getPropertyPrefix() ¸Þ¼µåÀÔ´Ï´Ù. ÃëµæÇÑ Ä³¸¯ÅÍ ¶óÀÎÀº À̸§ÀÇ Æ¯Á¤ÀÇ Look & Feel ºÎºÐ (Metal, Motif µî)ÀÌ ¾ø´Â TextUI
ÇüÅ (TextField, TextArea µî)¸¦ ¹Ý¿µÇÕ´Ï´Ù.
¸ðµ¨ÀÇ ºä¸¦ ±¸ÃàÇÏ·Á¸é, ´ÙÀ½¿¡ ³ªÅ¸³»´Â ¹æ¹ýÀÇ ¾î¶² °ÍÀÎÁö¸¦ »ç¿ëÇÕ´Ï´Ù.
create(javax.swing.text.Element) ¸Þ¼µå¸¦ ´Ù½Ã ±¸ÇöÇÕ´Ï´Ù. #createViewFactory ¸Þ¼µå¸¦ ´Ù½Ã ±¸ÇöÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ÀÌÈÄ, ¸ðµç JavaBeansTM
Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº
java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦
ÂüÁ¶ÇϽʽÿÀ.
| Áßø(Nested) Ŭ·¡½º °³¿ä | |
|---|---|
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 ()
ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®¿¡ »ç¿ëÇϴ Ű ¸ÊÀ» ÀÛ¼ºÇØ, °Å±â¿¡ ÇÊ¿äÇÑ ¹ÙÀεùÀ» ÀνºÅç ÇÕ´Ï´Ù. |
void |
damageRange (JTextComponent tc,
int p0,
int p1)
¸ðµ¨ÀÇ ÁöÁ¤µÈ ºÎºÐ¿¡ ´ëÀÀÇÏ´Â ºäÀÇ ºÎºÐÀÌ ÆäÀÎÆ® ´Ù½Ã ÇÕ´Ï´Ù. |
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¿¡ µðÆúÆ®·Î ÀνºÅç ¶Ç´Â »ç¿ëµÇ´Â Ű ¸ÊÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù. |
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)
¸ðµ¨ÀÌ °ø°£ÀûÀ¸·Î ¾î¶»°Ô Ç¥ÇöµÇ°í ÀÖ´ÂÁö¸¦ ÆÇÁ¤Çϱâ À§Çؼ traversal ÇÒ ¼ö ÀÖ´Â °ü·ÃÇÑ ÅØ½ºÆ® ÄÄÆÛ³ÍÆ® (Áï °èÃþ ·çÆ®)¸¦ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø 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)
ÀÎÅÍÆäÀ̽º¸¦ ÆäÀÎÆ® ÇÕ´Ï´Ù. |
protected void |
paintBackground (Graphics g)
ºäÀÇ ¹é±×¶ó¿îµå¸¦ ÆäÀÎÆ® ÇÕ´Ï´Ù. |
protected void |
paintSafely (Graphics g)
ÀÌ threadÀÇ ºä·ÎºÎÅÍ ¸ðµ¨ÀÌ º¯°æµÇÁö ¾Ê´Â´Ù°í ÇÏ´Â º¸Áõ ÷ºÎ·Î ¾ÈÀüÇÏ°Ô ÀÎÅÍÆäÀ̽º¸¦ ÆäÀÎÆ® ÇÕ´Ï´Ù. |
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)
½´ÆÛ Ŭ·¡½º´Â Á¦¾î ºÒ°¡´ÉÇÑ ¹æ¹ýÀ¸·Î ¹é±×¶ó¿îµå¸¦ ÆäÀÎÆ® ÇÕ´Ï´Ù. |
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()
Ű ¸ÊÀ» ÀÛ¼ºÇϱâ À§Çؼ »ç¿ëµÇ´Â ¹ÙÀεù¼¼Æ®´Â 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 - ÆäÀÎÆ® ´ë»óÀÇ Graphics ÄÁÅØ½ºÆ®
c - ÆäÀÎÆ® µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, 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 - º¯È¯ ´ë»óÀÇ À§Ä¡ >= 0b - ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªdirection - Űº¸µå»ó¿¡ º¸Åë
ÀÖ´Â Ä¿¼ ۶ó°í º¼ ¼ö ÀÖ´Â
ÇöÀçÀÇ À§Ä¡·ÎºÎÅÍÀÇ ¹æÇâ. SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, ¶Ç´Â SwingConstants.SOUTH
BadLocationException - @exception 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 °èÃþÀº ¸£Æ®ºä·ÎºÎÅÍ traversal ÇÒ ¼ö°¡ ÀÖ¾î ´Ù¸¥ Àϵµ ÀÌ¿Í °°ÀÌ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ¿Í °°ÀÌ ÇàÇØÁ³´ø °ÍÀº 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 Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.