|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.ProgressBarUI | +--javax.swing.plaf.basic.BasicProgressBarUI
ProgressBarUI ÀÇ ±âº» Look & Feel ¿¡ ÀÇÇÑ ±¸ÇöÀÔ´Ï´Ù.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
class |
BasicProgressBarUI.ChangeHandler
ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù. |
ÇʵåÀÇ °³¿ä | |
protected ChangeListener |
changeListener
|
protected JProgressBar |
progressBar
|
»ý¼ºÀÚÀÇ °³¿ä | |
BasicProgressBarUI ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
static ComponentUI |
createUI (JComponent x)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI delegateÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getAmountFull (Insets b,
int width,
int height)
¸ðµ¨·ÎºÎÅÍ ¸ðÀº ¿Ï·á ÆÛ¼¾Æ® Á¤º¸¿¡ ±Ù°ÅÇØ, ÀüºÎ Ä¥ÇØÁö´Â ÁøÃ´ ¹ÙÀÇ ¾çÀ» °áÁ¤ÇÕ´Ï´Ù. |
protected int |
getAnimationIndex ()
ÇöÀçÀÇ ¾Ö´Ï¸ÞÀÌ¼Ç ÇÁ·¹ÀÓÀÇ À妽º¸¦ ÃëµæÇÕ´Ï´Ù. |
protected Rectangle |
getBox (Rectangle r)
ÇöÀçÀÇ ¾Ö´Ï¸ÞÀÌ¼Ç À妽º¸¦ À§Çؼ(¶§¹®¿¡) r ·Î paint µÇ¾îr ¸¦ µ¹·ÁÁÖ´Â ¹Ù¿î½Ìº¹½ºÀÇ À§Ä¡¿Í »çÀÌÁ ÀúÀåÇÕ´Ï´Ù. |
protected int |
getCellLength ()
ÁøÃ´ ¹Ù¿¡ Ç¥Çö µÇ´Â °³°³ÀÇ ¼¿ ¹× ´ÜÀ§ÀÇ Æø (HORIZONTAL ÀÇ °æ¿ì) ¶Ç´Â ³ôÀÌ (VERTICAL ÀÇ °æ¿ì)¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getCellSpacing ()
ÁøÃ´ ¹Ù¿¡ ÀÖ´Â °¢ ¼¿ ¹× ´ÜÀ§ÀÇ °£°ÝÀ» µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getMaximumSize (JComponent c)
Look & Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ´ë »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getMinimumSize (JComponent c)
ÀÌ ÄÄÆÛ³ÍÆ®¿¡¼ÀÇ ÃÖ¼Ò »çÀÌÁî´Â 10 ÀÔ´Ï´Ù. |
protected Dimension |
getPreferredInnerHorizontal ()
|
protected Dimension |
getPreferredInnerVertical ()
|
Dimension |
getPreferredSize (JComponent c)
Look & Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ÀûÀýÇÑ »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
protected Color |
getSelectionBackground ()
selectionBackground ´Â ÁøÃ´ ¹Ù°¡ ÀüºÎ Ä¥ÇØÁöÁö ¾ÊÀº area¿¡ Ç¥Çö ÇÒ ¶§ÀÇ ÅØ½ºÆ®ÀÇ »öÀÔ´Ï´Ù. |
protected Color |
getSelectionForeground ()
selectionForeground ´Â ÁøÃ´ ¹Ù°¡ ÀüºÎ Ä¥ÇØÁø area¿¡ Ç¥Çö ÇÒ ¶§ÀÇ ÅØ½ºÆ®ÀÇ »öÀÔ´Ï´Ù. |
protected Point |
getStringPlacement (Graphics g,
String progressString,
int x,
int y,
int width,
int height)
ÁøÃ´ ij¸¯ÅÍ ¶óÀÎÀÇ paint À§Ä¡¸¦ ÁöÁ¤ÇÕ´Ï´Ù. |
protected void |
incrementAnimationIndex ()
ÇöÀçÀÇ ¾Ö´Ï¸ÞÀÌ¼Ç ÇÁ·¹ÀÓÀÇ À妽º¸¦, ´ÙÀ½ÀÇ À¯È¿Ä¡·Î ¼³Á¤ÇØ, ÁøÃ´ ¹Ù°¡ paint ´Ù½Ã Çϵµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
protected void |
installDefaults ()
|
protected void |
installListeners ()
|
void |
installUI (JComponent c)
Look & Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ±¸¼ºÇÕ´Ï´Ù. |
void |
paint (Graphics g,
JComponent c)
paint¸¦ 2 °³ÀÇ ¸Þ¼Òµå paintDeterminate ¶Ç´Â paintIndeterminate ÀÇ ¾îµò°¡¿¡ delegate ÇÕ´Ï´Ù. |
protected void |
paintDeterminate (Graphics g,
JComponent c)
°ÅÀÇ ¸ðµç Á÷¼± ºÒÈ®Á¤ ÁøÃ´ ¹Ù·Î ¿Ã¹Ù¸£°Ô µ¿ÀÛÇÏ´Â ¹ü¿ëÀÇ paint ¸Þ¼ÒµåÀÔ´Ï´Ù. |
protected void |
paintIndeterminate (Graphics g,
JComponent c)
¸ðµç Á÷¼± ¹Ù¿î½Ìº¹½º ÁøÃ´ ¹Ù°¡ ¿Ã¹Ù¸£°Ô µ¿ÀÛÇÏ´Â ¹ü¿ëÀÇ paint ¸Þ¼ÒµåÀÔ´Ï´Ù. |
protected void |
paintString (Graphics g,
int x,
int y,
int width,
int height,
int amountFull,
Insets b)
|
protected void |
setAnimationIndex (int newValue)
ÇöÀçÀÇ ¾Ö´Ï¸ÞÀÌ¼Ç ÇÁ·¹ÀÓÀÇ À妽º¸¦ ƯÁ¤ÀÇ °ªÀ¸·Î ¼³Á¤ÇØ, ÁøÃ´ ¹Ù¸¦ paint ´Ù½Ã Çϵµ·Ï(µíÀÌ) ¿ä±¸ÇÕ´Ï´Ù. |
protected void |
setCellLength (int cellLen)
|
protected void |
setCellSpacing (int cellSpace)
|
protected void |
startAnimationTimer ()
ÇÊ¿äÇÏ¸é ¾Ö´Ï¸ÞÀÌ¼Ç thread¸¦ ÀÛ¼º, ÃʱâÈÇØ, À̰ÍÀ» ±âµ¿ÇÕ´Ï´Ù. |
protected void |
stopAnimationTimer ()
¾Ö´Ï¸ÞÀÌ¼Ç thread¸¦ Á¤ÁöÇÕ´Ï´Ù. |
protected void |
uninstallDefaults ()
|
protected void |
uninstallListeners ()
ÀÌ ¿ÀºêÁ§Æ®°¡ ÀνºÅç ÇÑ ¸ðµç ûÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
uninstallUI (JComponent c)
installUI ½Ã¿¡, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®·Î ½ÇÇàÇÑ ±¸¼ºÀ» Ãë¼ÒÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.plaf. ComponentUI ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
contains , getAccessibleChild , getAccessibleChildrenCount , update |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected JProgressBar progressBar
protected ChangeListener changeListener
»ý¼ºÀÚÀÇ »ó¼¼ |
public BasicProgressBarUI()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public static ComponentUI createUI(JComponent x)
ComponentUI
ÀÇ ±â¼ú: createUI
¸Þ¼Òµå¸¦ Á¦°øÇØ, ±× UI delegateÀÇ ¼ºê Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÙ Çʿ䰡 ÀÖ½À´Ï´Ù. UI delegateÀÇ ¼ºê Ŭ·¡½º°¡ »óÅ ¾øÀ½ÀÇ °æ¿ì, º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. UI delegateÀÌ »óÅ ÀÖ´Â °æ¿ì, ÄÄÆÛ³ÍÆ® ¸¶´Ù »õ·Î¿î ÀνºÅϽº¸¦ µ¹·ÁÁÙ Çʿ䰡 ÀÖ½À´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â È£ÃâÇØ¼± ¾È µÇ±â ¶§¹®¿¡, ±× µðÆúÆ® ±¸ÇöÀº ¿¡·¯¸¦ ½½·Î¿ì ÇÕ´Ï´Ù.
public void installUI(JComponent c)
ComponentUI
ÀÇ ±â¼ú: ComponentUI
ÀνºÅϽº°¡, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI delegateÀ¸·Î¼ ÀνºÅç µÇ°í ÀÖÀ» ¶§ ºÒ·Á °©´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÀÌÇϸ¦ Æ÷ÇÔÇÑ Look & Feel ¿ëÀÇ ÄÄÆÛ³ÍÆ®¸¦ ¿ÏÀüÇÏ°Ô ±¸¼ºÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
LayoutManager
¸¦ ÀνºÅç ÇÑ´Ù
PropertyChangeListener
¸¦ ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
ComponentUI
³»ÀÇ installUI
c
- UI delegateÀÌ ÀνºÅç µÇ°í ÀÖ´Â ÄÄÆÛ³ÍÆ®ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
ComponentUI
ÀÇ ±â¼ú: installUI
½Ã¿¡, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®·Î ½ÇÇàÇÑ ±¸¼ºÀ» Ãë¼ÒÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI delegateÀ¸·Î¼ÀÇ UIComponent
ÀνºÅϽº°¡ »èÁ¦µÇ°í ÀÖÀ» ¶§ ºÒ·Á °©´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â installUI
¿¡ ÀÇÇØ ½ÇÇàµÈ ±¸¼ºÀ» ¹ÙÅÁÀ¸·Î µÇµ¹¸± Çʿ䰡 ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì,JComponent
ÀνºÅϽº¸¦ ±ú²ýÇÑ »óÅ (¿©ºÐÀÇ Ã»ÃëÀÚ³ª, Look & Feel °íÀ¯ÀÇ ÇÁ·ÎÆÛƼ ¿ÀºêÁ§Æ®°¡ ³²Áö ¾Ê°Ô)·Î Çϵµ·Ï(µíÀÌ) ÃæºÐÈ÷ ÁÖÀÇÇØ ÁÖ¼¼¿ä. ¼ø¼¿¡´Â ´ÙÀ½ÀÇ °ÍÀÌ ÀÖ½À´Ï´Ù.
ComponentUI
³»ÀÇ uninstallUI
c
- ÀÌ UI delegateÀÌ »èÁ¦µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
protected void installDefaults()
protected void uninstallDefaults()
protected void installListeners()
protected void startAnimationTimer()
protected void stopAnimationTimer()
protected void uninstallListeners()
protected Dimension getPreferredInnerHorizontal()
protected Dimension getPreferredInnerVertical()
protected Color getSelectionForeground()
protected Color getSelectionBackground()
protected int getCellLength()
setCellLength(int)
,
JProgressBar.isStringPainted()
protected void setCellLength(int cellLen)
protected int getCellSpacing()
setCellSpacing(int)
,
JProgressBar.isStringPainted()
protected void setCellSpacing(int cellSpace)
protected int getAmountFull(Insets b, int width, int height)
public void paint(Graphics g, JComponent c)
ComponentUI
³»ÀÇ paint
g
- paintó°¡ µÇ´Â Graphics
¹®¸Æc
- paint µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
protected Rectangle getBox(Rectangle r)
r
·Î paint µÇ¾îr
¸¦ µ¹·ÁÁÖ´Â ¹Ù¿î½Ìº¹½ºÀÇ À§Ä¡¿Í »çÀÌÁ ÀúÀåÇÕ´Ï´Ù. paintIndeterminate
ÀÇ ÀÌ Å¬·¡½º¿¡¼ÀÇ ±¸ÇöÀ¸·Î ½ÇÇàµÇ´Â paint¿¡ Ãß°¡ÇÏ´Â ¼ºê Ŭ·¡½º´Â ¿¹¸¦ µé¾î, ¹Ù¿î½Ìº¹½ºÀÇ ÁÖÀ§¿¡ ¾Æ¿ìÆ®¶óÀÎÀ» Ç¥Çö Çϱâ À§Çؼ, ÀÌ ¸Þ¼Òµå¸¦ »ç¿ëÇØ, Áö±Ý paint µÈ ¹Ù¿î½Ìº¹½ºÀÇ À§Ä¡¸¦ ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇÏ´Â °ÍÀ¸·Î½á,paintIndeterminate
¸¦ ´Ù½Ã ±¸ÇöÇÏ´Â ÇÊ¿ä¾øÀ½¿¡, ¹Ù¿î½Ìº¹½ºÀÇ »çÀÌÁî¿Í À§Ä¡¸¦ ¿ÏÀüÇÏ°Ô Á¦¾îÇÒ ¼ö ÀÖ½À´Ï´Ù.
r
- º¯°æµÇ´Â Rectangle ÀνºÅϽº. null
ÀÇ °æ¿ìµµ ÀÖ´Ù
null
. ±×·¸Áö ¾ÊÀº °æ¿ì´Â null °¡ ¾Æ´Ò ¶§, °Ç³×¹ÞÀº ±¸Çü, ¶Ç´Â ½Å±Ô ±¸ÇüÀ» µ¹·ÁÁÖ´ÂsetAnimationIndex(int)
protected void paintIndeterminate(Graphics g, JComponent c)
paintDeterminate(java.awt.Graphics, javax.swing.JComponent)
protected void paintDeterminate(Graphics g, JComponent c)
paintIndeterminate(java.awt.Graphics, javax.swing.JComponent)
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
protected Point getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)
public Dimension getPreferredSize(JComponent c)
ComponentUI
ÀÇ ±â¼ú: null
°¡ µ¹·ÁÁÖ¾îÁö´Â °æ¿ì, ÀûÀýÇÑ »çÀÌÁî´Â ´ë½Å¿¡ ÄÄÆÛ³ÍÆ®ÀÇ ·¹À̾ƿô ¸Å´ÏÀú¿¡ ÀÇÇØ °è»êµË´Ï´Ù (À̰ÍÀº ƯÁ¤ÀÇ ·¹À̾ƿô ¸Å´ÏÀú¸¦ ÀνºÅç µÇ¾î ÀÖ´Â ÄÄÆÛ³ÍÆ®ÀÇ °æ¿ì¿¡ Ãßõ ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù). ÀÌ ¸Þ¼ÒµåÀÇ µðÆúÆ® ±¸ÇöÀº null
¸¦ µ¹·ÁÁÝ´Ï´Ù.
ComponentUI
³»ÀÇ getPreferredSize
c
- ÀûÀýÇÑ »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂJComponent.getPreferredSize()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension getMinimumSize(JComponent c)
ComponentUI
³»ÀÇ getMinimumSize
c
- ÃÖ¼Ò »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
Dimension
¿ÀºêÁ§Æ®, ¶Ç´Â null
JComponent.getMinimumSize()
,
LayoutManager.minimumLayoutSize(java.awt.Container)
,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public Dimension getMaximumSize(JComponent c)
ComponentUI
ÀÇ ±â¼ú: null
°¡ µ¹·ÁÁÖ¾îÁö´Â °æ¿ì, ÃÖ´ë »çÀÌÁî´Â ´ë½Å¿¡ ÄÄÆÛ³ÍÆ®ÀÇ ·¹À̾ƿô ¸Å´ÏÀú¿¡ ÀÇÇØ °è»êµË´Ï´Ù (À̰ÍÀº ƯÁ¤ÀÇ ·¹À̾ƿô ¸Å´ÏÀú¸¦ ÀνºÅç µÇ¾î ÀÖ´Â ÄÄÆÛ³ÍÆ®ÀÇ °æ¿ì¿¡ Ãßõ ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù). ÀÌ ¸Þ¼ÒµåÀÇ µðÆúÆ® ±¸ÇöÀº getPreferredSize
¸¦ È£ÃâÇØ, ±× °ªÀ» µ¹·ÁÁÝ´Ï´Ù.
ComponentUI
³»ÀÇ getMaximumSize
c
- ÃÖ´ë »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
Dimension
¿ÀºêÁ§Æ®, ¶Ç´Â null
JComponent.getMaximumSize()
,
LayoutManager2.maximumLayoutSize(java.awt.Container)
protected int getAnimationIndex()
protected void setAnimationIndex(int newValue)
repaint
¸Þ¼ÒµåÀÇ ±âµ¿ ¹æ¹ýÀ» º¯°æÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
newValue
- ½Å±Ô ¾Ö´Ï¸ÞÀÌ¼Ç À妽º. °ªÀÇ Ã¼Å©´Â ½ÇÇàµÇÁö ¾Ê´ÂincrementAnimationIndex
protected void incrementAnimationIndex()
setAnimationIndex
|
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.