JavaTM 2
Platform
Std.  Ed.  v1. 4.0

javax.swing
Ŭ·¡½º SwingUtilities

java.lang.Object 
  |
  +--javax.swing.SwingUtilities
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
SwingConstants

public class SwingUtilities
extends Object
implements SwingConstants

Swing ÀÇ À¯Æ¿¸®Æ¼ ¸Þ¼ÒµåÀÇ ÄÝ·º¼ÇÀÔ´Ï´Ù.


ÇʵåÀÇ °³¿ä
 
ÀÎÅÍÆäÀ̽º 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
 
¸Þ¼ÒµåÀÇ °³¿ä
static Rectangle calculateInnerArea (JComponent  c, Rectangle  r)
          r ³»¿¡¼­ ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ³»ºÎ paint areaÀÇ À§Ä¡¿Í »çÀÌÁ ÀúÀåÇØ,r ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static Rectangle [] computeDifference (Rectangle  rectA, Rectangle  rectB)
          rectA ³»¿¡¼­ rectB ¿Í ¿À¹ö·¦ ÇÏÁö ¾Ê´Â area¸¦ Ç¥ÇöÇÏ´Â ±¸ÇüÀÇ ¹è¿­À» µ¹·ÁÁִµ¥ Æí¸®ÇÕ´Ï´Ù.
static Rectangle computeIntersection (int x, int y, int width, int height, Rectangle  dest)
          »õ·Î¿î ±¸ÇüÀ» ÇÒ´çÇÏÁö ¾Ê°í , 2 °³ÀÇ ±¸ÇüÀÇ °øÅë ºÎºÐÀ» °è»êÇϴµ¥ Æí¸®ÇÕ´Ï´Ù.
static int computeStringWidth (FontMetrics  fm, String  str)
          ÁöÁ¤µÈ ¸ÞÆ®¸¯½º (»çÀÌÁî)¸¦ °¡Áö´Â ÆùÆ®¸¦ »ç¿ëÇØ ij¸¯ÅÍ ¶óÀÎÀÇ ÆøÀ» °è»êÇÕ´Ï´Ù.
static Rectangle computeUnion (int x, int y, int width, int height, Rectangle  dest)
          »õ·Î¿î ±¸Çü dest ¸¦ ÇÒ´çÇÏÁö ¾Ê°í , 2 °³ÀÇ ±¸ÇüÀÇ È­ÁýÇÕÀ» °è»êÇϴµ¥ Æí¸®ÇÕ´Ï´Ù.
static MouseEvent convertMouseEvent (Component  source, MouseEvent  sourceEvent, Component  destination)
          ±× x ¿Í y ¸â¹ö°¡ destination ÀÇ ÁÂÇ¥ ü°è¿¡ º¯È¯ ³¡³­ °æ¿ì¸¦ Á¦¿ÜÇØ,sourceEvent ¿Í °°Àº MouseEvent ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static Point convertPoint (Component  source, int x, int y, Component  destination)
          source ÁÂÇ¥ ü°èÀÇ Á¡ (x, y) À» destination ÁÂÇ¥ ü°è·Î º¯È¯ÇÕ´Ï´Ù.
static Point convertPoint (Component  source, Point  aPoint, Component  destination)
          source ÁÂÇ¥ ü°èÀÇ aPoint ¸¦ destination ÁÂÇ¥ ü°è·Î º¯È¯ÇÕ´Ï´Ù.
static void convertPointFromScreen (Point  p, Component  c)
          Æ÷ÀÎÆ®¸¦ È­¸é ÁÂÇ¥·ÎºÎÅÍ ÄÄÆÛ³ÍÆ®ÀÇ ÁÂÇ¥ ü°è·Î º¯È¯ÇÕ´Ï´Ù.
static void convertPointToScreen (Point  p, Component  c)
          Æ÷ÀÎÆ®¸¦ ÄÄÆÛ³ÍÆ®ÀÇ ÁÂÇ¥ ü°è·ÎºÎÅÍ È­¸é ÁÂÇ¥·Î º¯È¯ÇÕ´Ï´Ù.
static Rectangle convertRectangle (Component  source, Rectangle  aRectangle, Component  destination)
          source ÁÂÇ¥ ü°èÀÇ aRectangle ¸¦ destination ÁÂÇ¥ ü°è·Î º¯È¯ÇÕ´Ï´Ù.
static Component findFocusOwner (Component  c)
          Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù.  ¹öÁ¯ 1.4 ÀÌÈÄ,KeyboardFocusManager.getFocusOwner() ·Î ¿Å°ÜÁ³½À´Ï´Ù.
static Accessible getAccessibleAt (Component  c, Point  p)
          ·ÎÄà ÁÂÇ¥ÀÇ Point ¿¡ Accessible ÀÇ ¾ÆÀ̰¡ º¸°ü À¯ÁöµÇ°í ÀÖ´Â °æ¿ì´Â ±×°ÍÀ» µ¹·ÁÁÝ´Ï´Ù.
static Accessible getAccessibleChild (Component  c, int i)
          ¿ÀºêÁ§Æ®ÀÇ n ¹øÂ°ÀÇ Accessible ÀÇ ¾ÆÀ̸¦ µ¹·ÁÁÝ´Ï´Ù.
static int getAccessibleChildrenCount (Component  c)
          ¿ÀºêÁ§Æ®³»ÀÇ À¯Àú º¸Á¶ÀÇ ¾ÆÀÌÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.
static int getAccessibleIndexInParent (Component  c)
          À¯Àú º¸Á¶ÀÇ ºÎ¸ð¿¡¼­ÀÇ ¿ÀºêÁ§Æ®ÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù.
static AccessibleStateSet getAccessibleStateSet (Component  c)
          ÀÌ ¿ÀºêÁ§Æ®ÀÇ À¯Àú º¸Á¶ ±â´É »óŸ¦ µ¹·ÁÁÝ´Ï´Ù.
static Container getAncestorNamed (String  name, Component  comp)
          ÄÄÆÛ³ÍÆ® °èÃþ¿¡¼­ comp ÀÇ »óÀ§¸¦ °Ë»öÇϱâ À§ÇÑ °£ÀÌ ¸Þ¼ÒµåÀ̸ç, ¹ß°ßµÈ name ÀÇ ÃÖÃÊÀÇ ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
static Container getAncestorOfClass (Class  c, Component  comp)
          ÄÄÆÛ³ÍÆ® °èÃþ¿¡¼­ comp ÀÇ »óÀ§¸¦ °Ë»öÇϱâ À§ÇÑ °£ÀÌ ¸Þ¼ÒµåÀ̸ç, ¹ß°ßµÈ c Ŭ·¡½ºÀÇ ÃÖÃÊÀÇ ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
static Component getDeepestComponentAt (Component  parent, int x, int y)
          À§Ä¡ x,y ¸¦ ³»Æ÷ ÇÏ´Â parent ¸¦ ºÎ¸ð·Î¼­ °¡Áö´Â ÃÖÇÏÁ¤µµÀÇ °¡½Ã ÄÄÆÛ³ÍÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
static Rectangle getLocalBounds (Component  aComponent)
          aComponent ÄÄÆÛ³ÍÆ®ÀÇ ±¸Çü (0,0, bounds.width, bounds.height)À» µ¹·ÁÁÝ´Ï´Ù.
static Component getRoot (Component  c)
          ÇöÀçÀÇ ÄÄÆÛ³ÍÆ® Æ®¸®ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
static JRootPane getRootPane (Component  c)
          c °¡ ÇÏÀ§ JRootPane ¿ÀºêÁ§Æ®ÀÇ °æ¿ì´Â °Ô´Ù°¡ À§ JRootPane ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
static ActionMap getUIActionMap (JComponent  component)
          UI °¡ component ·Î ÁöÁ¤ÇÑ ActionMap ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static InputMap getUIInputMap (JComponent  component, int condition)
          UI °¡ component ÀÇ condition ·Î ÁöÁ¤ÇÑ InputMap ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static Window getWindowAncestor (Component  c)
           
static void invokeAndWait (Runnable  doRun)
          doRun.run() ¸¦, AWT À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå·Î ºñµ¿±âÀûÀ¸·Î ½ÇÇà½Ãŵ´Ï´Ù.
static void invokeLater (Runnable  doRun)
          doRun.run() ¸¦, AWT À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå·Î ºñµ¿±âÀûÀ¸·Î ½ÇÇà½Ãŵ´Ï´Ù.
static boolean isDescendingFrom (Component  a, Component  b)
          ÄÄÆÛ³ÍÆ® a °¡ ÄÄÆÛ³ÍÆ® b ÀÇ ÇÏÀ§¿¡ ÀÖ´Â °æ¿ì,true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static boolean isEventDispatchThread ()
          ÇöÀçÀÇ thread°¡ AWT À̺¥Æ®µð½ºÆÌÄ¡½º·¿µåÀÇ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static boolean isLeftMouseButton (MouseEvent  anEvent)
          ¸¶¿ì½º À̺¥Æ®°¡ ¿ÞÂÊ mouse button¸¦ ³ªÅ¸³»´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static boolean isMiddleMouseButton (MouseEvent  anEvent)
          ¸¶¿ì½º À̺¥Æ®°¡ Áß¾ÓÀÇ mouse button¸¦ ³ªÅ¸³»´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static boolean isRectangleContainingRectangle (Rectangle  a, Rectangle  b)
          a °¡ b ¸¦ º¸°ü À¯ÁöÇÏ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static boolean isRightMouseButton (MouseEvent  anEvent)
          ¸¶¿ì½º À̺¥Æ®°¡ ¿À¸¥ÂÊ mouse button¸¦ ³ªÅ¸³»´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static String layoutCompoundLabel (FontMetrics  fm, String  text, Icon  icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle  viewR, Rectangle  iconR, Rectangle  textR, int textIconGap)
          ¾ÆÀÌÄÜÀÇ ±âÁ¡ À§Ä¡, ÅØ½ºÆ®ÀÇ baselineÀÇ ±âÁ¡ À§Ä¡, ¹× °¡´ÉÇϸé Ŭ¸³ ÇÑ ¹öÁ¯ÀÇ º¹ÇÕ label ij¸¯ÅÍ ¶óÀÎÀ» °è»êÇØ µ¹·ÁÁÝ´Ï´Ù.
static String layoutCompoundLabel (JComponent  c, FontMetrics  fm, String  text, Icon  icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle  viewR, Rectangle  iconR, Rectangle  textR, int textIconGap)
          ¾ÆÀÌÄÜÀÇ ±âÁ¡ À§Ä¡, ÅØ½ºÆ®ÀÇ baselineÀÇ ±âÁ¡ À§Ä¡, ¹× °¡´ÉÇϸé Ŭ¸³ ÇÑ ¹öÁ¯ÀÇ º¹ÇÕ label ij¸¯ÅÍ ¶óÀÎÀ» °è»êÇØ µ¹·ÁÁÝ´Ï´Ù.
static boolean notifyAction (Action  action, KeyStroke  ks, KeyEvent  event, Object  sender, int modifiers)
          action °¡ »ç¿ë °¡´ÉÇÑ (ÇÑÆí null °¡ ¾Æ´Ï´Ù) °æ¿ì,action ÀÇ actionPerformed ¸¦ È£ÃâÇÕ´Ï´Ù.
static void paintComponent (Graphics  g, Component  c, Container  p, int x, int y, int w, int h)
          ±¸ÇüÀÇ Á»󱸼® ¹× »çÀÌÁ ÁöÁ¤ÇØ, ÁöÁ¤µÈ ±¸Çü³»ÀÇ ÀÓÀÇÀÇ ±×·¡ÇȽº g ·Î ÄÄÆÛ³ÍÆ® c ¸¦ paint ÇÕ´Ï´Ù.
static void paintComponent (Graphics  g, Component  c, Container  p, Rectangle  r)
          Rectangle ¿ÀºêÁ§Æ®¸¦ ÁöÁ¤ÇØ, ÁöÁ¤µÈ ±¸Çü³»ÀÇ ÀÓÀÇÀÇ ±×·¡ÇȽº g ·Î ÄÄÆÛ³ÍÆ® c ¸¦ paint ÇÕ´Ï´Ù.
static boolean processKeyBindings (KeyEvent  event)
          event ¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø Component ÀÇ Å° ¹ÙÀεùÀ» ó¸®ÇÕ´Ï´Ù.
static void replaceUIActionMap (JComponent  component, ActionMap  uiActionMap)
          component ÀÇ UI ActionMap ¸¦ uiActionMap ·Î º¯°æÇϴµ¥ Æí¸®ÇÑ ¸Þ¼ÒµåÀÔ´Ï´Ù.
static void replaceUIInputMap (JComponent  component, int type, InputMap  uiInputMap)
          component ÀÇ UI InputMap ¸¦ uiInputMap ·Î º¯°æÇϴµ¥ Æí¸®ÇÑ ¸Þ¼ÒµåÀÔ´Ï´Ù.
static void updateComponentTreeUI (Component  c)
          ´Ü¼øÇÑ Look & Feel ÀÇ º¯°æÀ¸·Î, Æ®¸®³»ÀÇ °¢ ³ëµå¿¡ updateUI() 󸮸¦ ½Ç½ÃÇÏ´Â °Í, Áï ÇöÀçÀÇ Look & Feel ·Î ±× UI ÇÁ·ÎÆÛƼ¸¦ ÃʱâÈ­ÇÏ´Â °ÍÀ» ¿ä±¸ÇÕ´Ï´Ù.
static Window windowForComponent (Component  aComponent)
          aComponent ÀÇ À©µµ¿ì¸¦ µ¹·ÁÁÝ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

¸Þ¼ÒµåÀÇ »ó¼¼

isRectangleContainingRectangle

public static final boolean isRectangleContainingRectangle(Rectangle  a,
                                                           Rectangle  b)
a °¡ b ¸¦ º¸°ü À¯ÁöÇÏ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.


getLocalBounds

public static Rectangle  getLocalBounds(Component  aComponent)
aComponent ÄÄÆÛ³ÍÆ®ÀÇ ±¸Çü (0,0, bounds.width, bounds.height)À» µ¹·ÁÁÝ´Ï´Ù.


getWindowAncestor

public static Window  getWindowAncestor(Component  c)
¹Ýȯ°ª:
c ÀÇ ÃÖÃÊÀÇ »óÀ§ Window. ÄÄÆÛ³ÍÆ®°¡ À©µµ¿ì³»¿¡ Æ÷ÇÔµÇÁö ¾ÊÀº °æ¿ì´Â null

convertPoint

public static Point  convertPoint(Component  source,
                                 Point  aPoint,
                                 Component  destination)
source ÁÂÇ¥ ü°èÀÇ aPoint ¸¦ destination ÁÂÇ¥ ü°è·Î º¯È¯ÇÕ´Ï´Ù. source °¡ null ÀÇ °æ¿ì,aPoint ´Â destination ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ® ÁÂÇ¥ ü°è¿¡ ÀÖ´Â °Í°ú »óÁ¤µË´Ï´Ù. destination °¡ null ÀÇ °æ¿ì,aPoint ´Â source ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ® ÁÂÇ¥ ü°è¿¡ º¯È¯µË´Ï´Ù. source ¿Í destination °¡ ¾î´À Âʰúµµ null ÀÇ °æ¿ì´Â º¯È¯ÇÏÁö ¾Ê°í aPoint ¸¦ µ¹·ÁÁÝ´Ï´Ù.


convertPoint

public static Point  convertPoint(Component  source,
                                 int x,
                                 int y,
                                 Component  destination)
source ÁÂÇ¥ ü°èÀÇ Á¡ (x, y) À» destination ÁÂÇ¥ ü°è·Î º¯È¯ÇÕ´Ï´Ù. source °¡ null ÀÇ °æ¿ì,(x, y) ´Â destination ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ® ÁÂÇ¥ ü°è¿¡ ÀÖ´Â °Í°ú »óÁ¤µË´Ï´Ù. destination °¡ null ÀÇ °æ¿ì,(x, y) ´Â source ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ® ÁÂÇ¥ ü°è¿¡ º¯È¯µË´Ï´Ù. source ¿Í destination °¡ ¾î´À Âʰúµµ null ÀÇ °æ¿ì´Â º¯È¯ÇÏÁö ¾Ê°í (x, y) ¸¦ µ¹·ÁÁÝ´Ï´Ù.


convertRectangle

public static Rectangle  convertRectangle(Component  source,
                                         Rectangle  aRectangle,
                                         Component  destination)
source ÁÂÇ¥ ü°èÀÇ aRectangle ¸¦ destination ÁÂÇ¥ ü°è·Î º¯È¯ÇÕ´Ï´Ù. source °¡ null ÀÇ °æ¿ì,aRectangle ´Â destination ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ® ÁÂÇ¥ ü°è¿¡ ÀÖ´Â °Í°ú »óÁ¤µË´Ï´Ù. destination °¡ null ÀÇ °æ¿ì,aRectangle ´Â source ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ® ÁÂÇ¥ ü°è¿¡ º¯È¯µË´Ï´Ù. source ¿Í destination °¡ ¾î´À Âʰúµµ null ÀÇ °æ¿ì´Â º¯È¯ÇÏÁö ¾Ê°í aRectangle ¸¦ µ¹·ÁÁÝ´Ï´Ù.


getAncestorOfClass

public static Container  getAncestorOfClass(Class  c,
                                           Component  comp)
ÄÄÆÛ³ÍÆ® °èÃþ¿¡¼­ comp ÀÇ »óÀ§¸¦ °Ë»öÇϱâ À§ÇÑ °£ÀÌ ¸Þ¼ÒµåÀ̸ç, ¹ß°ßµÈ c Ŭ·¡½ºÀÇ ÃÖÃÊÀÇ ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. c Ŭ·¡½º°¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì´Â null ¸¦ µ¹·ÁÁÝ´Ï´Ù.


getAncestorNamed

public static Container  getAncestorNamed(String  name,
                                         Component  comp)
ÄÄÆÛ³ÍÆ® °èÃþ¿¡¼­ comp ÀÇ »óÀ§¸¦ °Ë»öÇϱâ À§ÇÑ °£ÀÌ ¸Þ¼ÒµåÀ̸ç, ¹ß°ßµÈ name ÀÇ ÃÖÃÊÀÇ ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. name °¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì´Â null ¸¦ µ¹·ÁÁÝ´Ï´Ù.


getDeepestComponentAt

public static Component  getDeepestComponentAt(Component  parent,
                                              int x,
                                              int y)
À§Ä¡ x,y ¸¦ ³»Æ÷ ÇÏ´Â parent ¸¦ ºÎ¸ð·Î¼­ °¡Áö´Â ÃÖÇÏÁ¤µµÀÇ °¡½Ã ÄÄÆÛ³ÍÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. parent °¡ ÁöÁ¤µÈ À§Ä¡¸¦ ³»Æ÷ Çϰí ÀÖÁö ¾Ê´Â °æ¿ì´Â null °¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. parent °¡ ÄÁÅ×À̳ʰ¡ ¾Æ´Ñ °æ¿ì, ȤÀº parent ÀÇ °¡½ÃÀÇ ¾ÆÀ̰¡ ¾î´À °Íµµ ÁöÁ¤µÈ À§Ä¡¸¦ ³»Æ÷ Çϰí ÀÖÁö ¾Ê´Â °æ¿ì´Â parent °¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
parent - °Ë»öÀ» °³½ÃÇÏ´Â ·çÆ® ÄÄÆÛ³ÍÆ®
x - x Ÿ°Ù À§Ä¡
y - y Ÿ°Ù À§Ä¡

convertMouseEvent

public static MouseEvent  convertMouseEvent(Component  source,
                                           MouseEvent  sourceEvent,
                                           Component  destination)
±× x ¿Í y ¸â¹ö°¡ destination ÀÇ ÁÂÇ¥ ü°è¿¡ º¯È¯ ³¡³­ °æ¿ì¸¦ Á¦¿ÜÇØ,sourceEvent ¿Í °°Àº MouseEvent ¸¦ µ¹·ÁÁÝ´Ï´Ù. source °¡ null ÀÇ °æ¿ì,sourceEvent ÀÇ x ¿Í y ¸â¹ö´Â destination ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ® ÁÂÇ¥ ü°è¿¡ µé¾î°¡´Â °Í°ú »óÁ¤µË´Ï´Ù. destination °¡ null ÀÇ °æ¿ì, µ¹·ÁÁÖ¾îÁø MouseEvent ´Â source ÀÇ ÁÂÇ¥ ü°è¿¡ µé¾î°©´Ï´Ù. sourceEvent ´Â º¯°æµÇÁö ¾Ê½À´Ï´Ù. »õ·Î¿î À̺¥Æ®°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. destination °¡ null ÀÌ¿ÜÀÇ °æ¿ì, µ¹·ÁÁÖ¾îÁø À̺¥Æ®ÀÇ source Çʵå´Â destination ·Î ¼³Á¤µË´Ï´Ù. translateMouseEvent() ¸Þ¼Òµå¸¦ »ç¿ëÇϸé(ÀÚ), source ¸¦ º¯°æÇÏÁö ¾Ê°í , ÄÄÆÛ³ÍÆ®ÀÇ ¸¶¿ì½º À̺¥Æ®¸¦ ´Ù¸¥ ÄÄÆÛ³ÍÆ®·Î º¯È¯ÇÒ ¼ö ÀÖ½À´Ï´Ù.


convertPointToScreen

public static void convertPointToScreen(Point  p,
                                        Component  c)
Æ÷ÀÎÆ®¸¦ ÄÄÆÛ³ÍÆ®ÀÇ ÁÂÇ¥ ü°è·ÎºÎÅÍ È­¸é ÁÂÇ¥·Î º¯È¯ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
p - »õ·Î¿î ÁÂÇ¥ ü°è¿¡ º¯È¯µÇ´Â Point ¿ÀºêÁ§Æ®
c - Component ¿ÀºêÁ§Æ®

convertPointFromScreen

public static void convertPointFromScreen(Point  p,
                                          Component  c)
Æ÷ÀÎÆ®¸¦ È­¸é ÁÂÇ¥·ÎºÎÅÍ ÄÄÆÛ³ÍÆ®ÀÇ ÁÂÇ¥ ü°è·Î º¯È¯ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
p - »õ·Î¿î ÁÂÇ¥ ü°è¿¡ º¯È¯µÇ´Â Point ¿ÀºêÁ§Æ®
c - Component ¿ÀºêÁ§Æ®

windowForComponent

public static Window  windowForComponent(Component  aComponent)
aComponent ÀÇ À©µµ¿ì¸¦ µ¹·ÁÁÝ´Ï´Ù.


isDescendingFrom

public static boolean isDescendingFrom(Component  a,
                                       Component  b)
ÄÄÆÛ³ÍÆ® a °¡ ÄÄÆÛ³ÍÆ® b ÀÇ ÇÏÀ§¿¡ ÀÖ´Â °æ¿ì,true ¸¦ µ¹·ÁÁÝ´Ï´Ù.


computeIntersection

public static Rectangle  computeIntersection(int x,
                                            int y,
                                            int width,
                                            int height,
                                            Rectangle  dest)
»õ·Î¿î ±¸ÇüÀ» ÇÒ´çÇÏÁö ¾Ê°í , 2 °³ÀÇ ±¸ÇüÀÇ °øÅë ºÎºÐÀ» °è»êÇϴµ¥ Æí¸®ÇÕ´Ï´Ù. 2 °³ÀÇ ±¸ÇüÀÌ ±³Â÷Çϰí ÀÖÁö ¾Ê´Â °æ¿ì, µ¹·ÁÁÖ¾îÁö´Â ±¸ÇüÀº (0,0)ÀÇ À§Ä¡·ÎºÎÅÍ ½ÃÀ۵Ǿî, 0 ÀÇ Æø°ú 0 ÀÇ ³ôÀ̸¦ °¡Áý´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - ÃÖÃÊÀÇ ±¸ÇüÀÇ Á»óÀÇ Á¡ÀÇ X ÁÂÇ¥
y - ÃÖÃÊÀÇ ±¸ÇüÀÇ Á»óÀÇ Á¡ÀÇ Y ÁÂÇ¥
width - ÃÖÃÊÀÇ ±¸ÇüÀÇ Æø
height - ÃÖÃÊÀÇ ±¸ÇüÀÇ ³ôÀÌ
dest - 2 ¹øÂ°ÀÇ ±¸Çü
¹Ýȯ°ª:
°øÅë ºÎºÐÀ» ÁöÁ¤Çϱâ À§Çؼ­ º¯°æµÈ dest

computeUnion

public static Rectangle  computeUnion(int x,
                                     int y,
                                     int width,
                                     int height,
                                     Rectangle  dest)
»õ·Î¿î ±¸Çü dest ¸¦ ÇÒ´çÇÏÁö ¾Ê°í , 2 °³ÀÇ ±¸ÇüÀÇ È­ÁýÇÕÀ» °è»êÇϴµ¥ Æí¸®ÇÕ´Ï´Ù.


computeDifference

public static Rectangle [] computeDifference(Rectangle  rectA,
                                            Rectangle  rectB)
rectA ³»¿¡¼­ rectB ¿Í ¿À¹ö·¦ ÇÏÁö ¾Ê´Â area¸¦ Ç¥ÇöÇÏ´Â ±¸ÇüÀÇ ¹è¿­À» µ¹·ÁÁִµ¥ Æí¸®ÇÕ´Ï´Ù. 2 °³ÀÇ ±¸ÇüÀÌ ¿À¹ö·¦ ÇÏÁö ¾Ê´Â °æ¿ì´Â ÇÏ´ÃÀÇ ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.


isLeftMouseButton

public static boolean isLeftMouseButton(MouseEvent  anEvent)
¸¶¿ì½º À̺¥Æ®°¡ ¿ÞÂÊ mouse button¸¦ ³ªÅ¸³»´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
anEvent - MouseEvent ¿ÀºêÁ§Æ®
¹Ýȯ°ª:
¿ÞÂÊ mouse button°¡ ¾×ƼºêÇß´ø °æ¿ì´Â true

isMiddleMouseButton

public static boolean isMiddleMouseButton(MouseEvent  anEvent)
¸¶¿ì½º À̺¥Æ®°¡ Áß¾ÓÀÇ mouse button¸¦ ³ªÅ¸³»´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
anEvent - MouseEvent ¿ÀºêÁ§Æ®
¹Ýȯ°ª:
Áß¾ÓÀÇ mouse button°¡ ¾×ƼºêÇß´ø °æ¿ì´Â true

isRightMouseButton

public static boolean isRightMouseButton(MouseEvent  anEvent)
¸¶¿ì½º À̺¥Æ®°¡ ¿À¸¥ÂÊ mouse button¸¦ ³ªÅ¸³»´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
anEvent - MouseEvent ¿ÀºêÁ§Æ®
¹Ýȯ°ª:
¿À¸¥ÂÊ mouse button°¡ ¾×ƼºêÇß´ø °æ¿ì´Â true

computeStringWidth

public static int computeStringWidth(FontMetrics  fm,
                                     String  str)
ÁöÁ¤µÈ ¸ÞÆ®¸¯½º (»çÀÌÁî)¸¦ °¡Áö´Â ÆùÆ®¸¦ »ç¿ëÇØ ij¸¯ÅÍ ¶óÀÎÀÇ ÆøÀ» °è»êÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
fm - °è»ê¿¡ »ç¿ëÇÏ´Â FontMetrics ¿ÀºêÁ§Æ®
str - °è»ê ´ë»óÀÇ String
¹Ýȯ°ª:
ij¸¯ÅÍ ¶óÀÎÀÇ ÆøÀÌ ÀúÀåµÇ°í ÀÖ´Â int Ä¡

layoutCompoundLabel

public static String  layoutCompoundLabel(JComponent  c,
                                         FontMetrics  fm,
                                         String  text,
                                         Icon  icon,
                                         int verticalAlignment,
                                         int horizontalAlignment,
                                         int verticalTextPosition,
                                         int horizontalTextPosition,
                                         Rectangle  viewR,
                                         Rectangle  iconR,
                                         Rectangle  textR,
                                         int textIconGap)
¾ÆÀÌÄÜÀÇ ±âÁ¡ À§Ä¡, ÅØ½ºÆ®ÀÇ baselineÀÇ ±âÁ¡ À§Ä¡, ¹× °¡´ÉÇϸé Ŭ¸³ ÇÑ ¹öÁ¯ÀÇ º¹ÇÕ label ij¸¯ÅÍ ¶óÀÎÀ» °è»êÇØ µ¹·ÁÁÝ´Ï´Ù. ¿©·¯ºÐÄ¡´Â viewR ÀÇ ±¸ÇüÀ» ±âÁØ¿¡ °è»êµË´Ï´Ù. JComponent ÀÇ ¹æÇâ (LEADING ¶Ç´Â TRAILING)µµ °í·ÁµÇ¾î LEFT Ä¡ ¶Ç´Â RIGHT Ä¡¿¡ º¯È¯µË´Ï´Ù.


layoutCompoundLabel

public static String  layoutCompoundLabel(FontMetrics  fm,
                                         String  text,
                                         Icon  icon,
                                         int verticalAlignment,
                                         int horizontalAlignment,
                                         int verticalTextPosition,
                                         int horizontalTextPosition,
                                         Rectangle  viewR,
                                         Rectangle  iconR,
                                         Rectangle  textR,
                                         int textIconGap)
¾ÆÀÌÄÜÀÇ ±âÁ¡ À§Ä¡, ÅØ½ºÆ®ÀÇ baselineÀÇ ±âÁ¡ À§Ä¡, ¹× °¡´ÉÇϸé Ŭ¸³ ÇÑ ¹öÁ¯ÀÇ º¹ÇÕ label ij¸¯ÅÍ ¶óÀÎÀ» °è»êÇØ µ¹·ÁÁÝ´Ï´Ù. ¿©·¯ºÐÄ¡´Â viewR ÀÇ ±¸ÇüÀ» ±âÁØ¿¡ °è»êµË´Ï´Ù. ÀÌ layoutCompoundLabel()´Â horizontalTextPosition (µðÆúÆ®´Â RIGHT) ¹× horizontalAlignmentdoes (µðÆúÆ®´Â CENTER)ÀÇ LEADING Ä¡ ¹× TRAILING Ä¡¸¦ ó¸®ÇÒ ¼ö ¾ø½À´Ï´Ù. ´ë½Å¿¡, ´Ù¸¥ ¹öÁ¯ÀÇ layoutCompoundLabel()¸¦ »ç¿ëÇØ ÁÖ¼¼¿ä.


paintComponent

public static void paintComponent(Graphics  g,
                                  Component  c,
                                  Container  p,
                                  int x,
                                  int y,
                                  int w,
                                  int h)
±¸ÇüÀÇ Á»󱸼® ¹× »çÀÌÁ ÁöÁ¤ÇØ, ÁöÁ¤µÈ ±¸Çü³»ÀÇ ÀÓÀÇÀÇ ±×·¡ÇȽº g ·Î ÄÄÆÛ³ÍÆ® c ¸¦ paint ÇÕ´Ï´Ù. ÄÄÆÛ³ÍÆ®´Â c.validate() È£Ãâ°ú c.repaint() È£ÃâÀÌ Æ®¸®¿¡ ÀüÆÄ ÇÏÁö ¾Ê°Ô ÇÏ´Â ÇÁ¶óÀ̺ø ÄÁÅ×ÀÌ³Ê (±× ºÎ¸ð°¡ p °¡ µÈ´Ù)¸¦ ºÎ¸ð·Î ¼³Á¤ÇÕ´Ï´Ù. ÀÌ Áß°£ ÄÁÅ×À̳ʿ¡´Â ÀÌ¿ÜÀÇ È¿°ú´Â ¾ø½À´Ï´Ù.

ÄÄÆÛ³ÍÆ®´Â JComponent ÀÇ ÇÏÀ§ÀÎÁö ´Ù¸¥ Á¾·ùÀÇ °æ·® ÄÄÆÛ³ÍÆ®ÀÎ °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù. °æ·® ÄÄÆÛ³ÍÆ®¶õ,Component isLightweight ¸Þ¼Òµå¿¡ ÀÇÇØ µ¹·ÁÁÖ¾îÁö´Â ¡¸°æ·®¡¹ÇÁ·ÎÆÛƼ°¡ true ÀÎ °Í °°Àº ÄÄÆÛ³ÍÆ®ÀÔ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
g - Ç¥ÇöóÀÇ Graphics ¿ÀºêÁ§Æ®
c - Ç¥Çö ´ë»óÀÇ Component
p - Áß°£ Container
x - Ç¥Çö areaÀÇ Á´ÜÀ» ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§). ±×·¡ÇȽº ¹®¸ÆÀÇ Á´ÜÀ» ±âÁØÀ¸·Î ÇÏ´Â
y - Ç¥Çö areaÀÇ »ó´ÜÀ» ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§). ±×·¡ÇȽº ¹®¸ÆÀÇ »ó´ÜÀ» ±âÁØÀ¸·Î ÇÏ´Â
w - Ç¥Çö areaÀÇ ÆøÀ» ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
h - Ç¥Çö areaÀÇ ³ôÀ̸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
°ü·Ã Ç׸ñ:
Component.isLightweight()

paintComponent

public static void paintComponent(Graphics  g,
                                  Component  c,
                                  Container  p,
                                  Rectangle  r)
Rectangle ¿ÀºêÁ§Æ®¸¦ ÁöÁ¤ÇØ, ÁöÁ¤µÈ ±¸Çü³»ÀÇ ÀÓÀÇÀÇ ±×·¡ÇȽº g ·Î ÄÄÆÛ³ÍÆ® c ¸¦ paint ÇÕ´Ï´Ù. ÄÄÆÛ³ÍÆ®´Â c.validate() È£Ãâ°ú c.repaint() È£ÃâÀÌ Æ®¸®¿¡ ÀüÆÄ ÇÏÁö ¾Ê°Ô ÇÏ´Â ÇÁ¶óÀ̺ø ÄÁÅ×ÀÌ³Ê (±× ºÎ¸ð°¡ p °¡ µÈ´Ù)¸¦ ºÎ¸ð·Î ¼³Á¤ÇÕ´Ï´Ù. ÀÌ Áß°£ ÄÁÅ×À̳ʿ¡´Â ÀÌ¿ÜÀÇ È¿°ú´Â ¾ø½À´Ï´Ù.

ÄÄÆÛ³ÍÆ®´Â JComponent ÀÇ ÇÏÀ§ÀÎÁö ´Ù¸¥ Á¾·ùÀÇ °æ·® ÄÄÆÛ³ÍÆ®ÀÎ °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù. °æ·® ÄÄÆÛ³ÍÆ®¶õ,Component isLightweight ¸Þ¼Òµå¿¡ ÀÇÇØ µ¹·ÁÁÖ¾îÁö´Â ¡¸°æ·®¡¹ÇÁ·ÎÆÛƼ°¡ true ÀÎ °Í °°Àº ÄÄÆÛ³ÍÆ®ÀÔ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
g - Ç¥ÇöóÀÇ Graphics ¿ÀºêÁ§Æ®
c - Ç¥Çö ´ë»óÀÇ Component
p - Áß°£ Container
r - Ç¥ÇöóÀÇ Rectangle
°ü·Ã Ç׸ñ:
Component.isLightweight()

updateComponentTreeUI

public static void updateComponentTreeUI(Component  c)
´Ü¼øÇÑ Look & Feel ÀÇ º¯°æÀ¸·Î, Æ®¸®³»ÀÇ °¢ ³ëµå¿¡ updateUI() 󸮸¦ ½Ç½ÃÇÏ´Â °Í, Áï ÇöÀçÀÇ Look & Feel ·Î ±× UI ÇÁ·ÎÆÛƼ¸¦ ÃʱâÈ­ÇÏ´Â °ÍÀ» ¿ä±¸ÇÕ´Ï´Ù.


invokeLater

public static void invokeLater(Runnable  doRun)
doRun.run() ¸¦, AWT À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå·Î ºñµ¿±âÀûÀ¸·Î ½ÇÇà½Ãŵ´Ï´Ù. À̰ÍÀº º¸·ùÁßÀÇ ¸ðµç AWT À̺¥Æ®°¡ ó¸®µÈ µÚ¿¡ ¹ß»ýÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ¾îÇø®ÄÉÀÌ¼Ç thread°¡ GUI ¸¦ °»½ÅÇÒ Çʿ䰡 ÀÖÀ» ¶§ »ç¿ëµË´Ï´Ù. ´ÙÀ½ÀÇ ¿¹¿¡¼­´Â invokeLater È£ÃâÀº À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå¿¡ Runnable ¿ÀºêÁ§Æ®ÀÇ doHelloWorld ÀÇ Å¥¸¦ È£ÃâÇÏ°í ³ª¼­, ¸Þ¼¼Áö¸¦ Ãâ·ÂÇÕ´Ï´Ù.
Runnable doHelloWorld = new Runnable() {
public void run() {
System.out.println("Hello World on " + Thread.currentThread());
     }
 };
SwingUtilities.invokeLater(doHelloWorld);
System.out.println("This might well be displayed before the other message. ");
invokeLater °¡ À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå, ¿¹¸¦ µé¾î JButton ÀÇ ActionListener ·ÎºÎÅÍ ºÒ·Á °¬À» °æ¿ì,doRun.run() ´Â º¸·ùÁßÀÇ ¸ðµç À̺¥Æ®°¡ ó¸®µÉ ¶§±îÁö ½ÇÇàÀÌ ¿¬±âµË´Ï´Ù. ´Ù¸¸,doRun.run() °¡ ijġ µÇÁö ¾Ê´Â ¿¹¿Ü¸¦ ½½·Î¿ì ÇÏ´Â °æ¿ì´Â À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå (ÇöÀçÀÇ thread´Â ¾Æ´Ï´Ù)°¡ »óŸ¦ ¹ÙÅÁÀ¸·Î µÇµ¹¸³´Ï´Ù.

ÀÌ ¸Þ¼ÒµåÀÇ Ãß°¡ÀÇ ¹®¼­¿Í ¿¹¿¡ ´ëÇØ¼­´Â ¡¸The Java Tutorial¡¹ÀÇ¡¸How to Use Threads¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.

JDK ¹öÁ¯ 1.3 ÀÌÈÄ, ÀÌ ¸Þ¼Òµå´Â java.awt.EventQueue.invokeLater() ·Î¸¸ »ç¿ëµË´Ï´Ù.

°ü·Ã Ç׸ñ:
invokeAndWait(java.lang.Runnable)

invokeAndWait

public static void invokeAndWait(Runnable  doRun)
                          throws InterruptedException ,
                                 InvocationTargetException 
doRun.run() ¸¦, AWT À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå·Î ºñµ¿±âÀûÀ¸·Î ½ÇÇà½Ãŵ´Ï´Ù. À̰ÍÀº º¸·ùÁßÀÇ ¸ðµç AWT À̺¥Æ®°¡ ó¸®µÉ ¶§±îÁö ºí·Ï µÇ¾î ´ÙÀ½¿¡ doRun.run() °¡ º¹±ÍÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ¾îÇø®ÄÉÀÌ¼Ç thread°¡ GUI ¸¦ °»½ÅÇÒ Çʿ䰡 ÀÖÀ» ¶§ »ç¿ëµË´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â EventDispatchThread ·ÎºÎÅÍ È£ÃâÇÏÁö ¸»¾Æ ÁÖ¼¼¿ä. »õ·Î¿î ¾îÇø®ÄÉÀÌ¼Ç thread¸¦ »ý¼ºÇÏ´Â ¿¹¸¦, ´ÙÀ½¿¡ ³ªÅ¸³À´Ï´Ù. ÀÌ ¿¹¿¡¼­´Â ¾îÇø®ÄÉÀÌ¼Ç thread´Â invokeAndWait()¸¦ »ç¿ëÇØ À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå·ÎºÎÅÍ Ä³¸¯ÅÍ ¶óÀÎÀ» Ãâ·ÂÇØ, ±× ÈÄ, ¾îÇø®ÄÉÀÌ¼Ç thread·ÎºÎÅÍ Ä³¸¯ÅÍ ¶óÀÎÀ» Ãâ·ÂÇÕ´Ï´Ù.
final Runnable doHelloWorld = new Runnable() {
public void run() {
System.out.println("Hello World on " + Thread.currentThread());
     }
 };
Thread appThread = new Thread() {
public void run() {
try {
SwingUtilities.invokeAndWait(doHelloWorld);
         }
catch (Exception e) {
e.printStackTrace();
         }
System.out.println("Finished on " + Thread.currentThread());
     }
 };
appThread.start();
Runnable.run() ¸Þ¼Òµå°¡ ijġ µÇÁö ¾Ê´Â ¿¹¿Ü¸¦ À̺¥Æ®µð½ºÆÌÄ¡¿øthread·Î ½½·Î¿ì ÇÏ´Â °æ¿ì´Â ±× ¿¹¿Ü´Â È£ÃâÇØ ¿·thread·Î, InvocationTargetException ·Î¼­ ijġ µÇ¾î Àç½½·Î¿ì µÇ±â (À§ÇØ)¶§¹®¿¡, ÁÖÀÇÇØ ÁÖ¼¼¿ä.

ÀÌ ¸Þ¼ÒµåÀÇ Ãß°¡ÀÇ ¹®¼­¿Í ¿¹¿¡ ´ëÇØ¼­´Â ¡¸The Java Tutorial¡¹ÀÇ¡¸How to Use Threads¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.

JDK ¹öÁ¯ 1.3 ÀÌÈÄ, ÀÌ ¸Þ¼Òµå´Â java.awt.EventQueue.invokeAndWait() ·Î¸¸ »ç¿ëµË´Ï´Ù.

¿¹¿Ü:
InterruptedException - À̺¥Æ®µð½ºÆÌÄ¡½º·¿µå°¡ doRun.run() ÀÇ ½ÇÇàÀ» ³¡³»´Â °ÍÀ» ±â´Ù¸®´Â µ¿¾È¿¡ ¼¼Ä¡±â¸¦ ¹Þ¾ÒÀ» °æ¿ì
InvocationTargetException - doRun.run() °¡ ½½·Î¿ì ÇÏ´Â °æ¿ì
°ü·Ã Ç׸ñ:
invokeLater(java.lang.Runnable)

isEventDispatchThread

public static boolean isEventDispatchThread()
ÇöÀçÀÇ thread°¡ AWT À̺¥Æ®µð½ºÆÌÄ¡½º·¿µåÀÇ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

JDK ¹öÁ¯ 1.3 ÀÌÈÄ, ÀÌ ¸Þ¼Òµå´Â java.awt.EventQueue.isDispatchThread() ·Î¸¸ »ç¿ëµË´Ï´Ù.

¹Ýȯ°ª:
ÇöÀçÀÇ thread°¡ AWT À̺¥Æ®µð½ºÆÌÄ¡½º·¿µåÀÇ °æ¿ì´Â true

getAccessibleIndexInParent

public static int getAccessibleIndexInParent(Component  c)
À¯Àú º¸Á¶ÀÇ ºÎ¸ð¿¡¼­ÀÇ ¿ÀºêÁ§Æ®ÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÁÖ: Java 2 Ç÷§Æû v1. 3 ÀÌÈÄ, °³¹ßÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ »ç¿ëÇÏ´Â ´ë½Å¿¡, Component.AccessibleAWTComponent.getAccessibleIndexInParent()¸¦ È£ÃâÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ ¿ÀºêÁ§Æ®°¡ À¯Àú º¸Á¶ÀÇ ºÎ¸ð¸¦ °¡ÁöÁö ¾Ê´Â °æ¿ì´Â -1. ±×·¸Áö ¾ÊÀº °æ¿ì´Â À¯Àú º¸Á¶ÀÇ ºÎ¸ð¿¡°Ô ÀÖ´Â ¾ÆÀÌÀÇ À妽º

getAccessibleAt

public static Accessible  getAccessibleAt(Component  c,
                                         Point  p)
·ÎÄà ÁÂÇ¥ÀÇ Point ¿¡ Accessible ÀÇ ¾ÆÀ̰¡ º¸°ü À¯ÁöµÇ°í ÀÖ´Â °æ¿ì´Â ±×°ÍÀ» µ¹·ÁÁÝ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â null ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Á¸ÀçÇÏ´Â °æ¿ì´Â ÁöÁ¤µÈ À§Ä¡ÀÇ Accessible. ±×·¸Áö ¾ÊÀº °æ¿ì´Â null

getAccessibleStateSet

public static AccessibleStateSet  getAccessibleStateSet(Component  c)
ÀÌ ¿ÀºêÁ§Æ®ÀÇ À¯Àú º¸Á¶ ±â´É »óŸ¦ µ¹·ÁÁÝ´Ï´Ù.

ÁÖ: Java 2 Ç÷§Æû v1. 3 ÀÌÈÄ, °³¹ßÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ »ç¿ëÇÏ´Â ´ë½Å¿¡, Component.AccessibleAWTComponent.getAccessibleIndexInParent()¸¦ È£ÃâÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

¹Ýȯ°ª:
¿ÀºêÁ§Æ®ÀÇ ÇöÀç »óÅ ¼¼Æ®¸¦ º¸°ü À¯ÁöÇÏ´Â AccessibleStateSet ÀÇ ÀνºÅϽº
°ü·Ã Ç׸ñ:
AccessibleState

getAccessibleChildrenCount

public static int getAccessibleChildrenCount(Component  c)
¿ÀºêÁ§Æ®³»ÀÇ À¯Àú º¸Á¶ÀÇ ¾ÆÀÌÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. ¿ÀºêÁ§Æ®ÀÇ ¸ðµç ¾ÆÀ̰¡ Accessible ¸¦ ±¸ÇöÇÏ´Â °æ¿ì´Â ¿ÀºêÁ§Æ®ÀÇ ¾ÆÀÌÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÁÖ: Java 2 Ç÷§Æû v1. 3 ÀÌÈÄ, °³¹ßÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ »ç¿ëÇÏ´Â ´ë½Å¿¡, Component.AccessibleAWTComponent.getAccessibleIndexInParent()¸¦ È£ÃâÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

¹Ýȯ°ª:
¿ÀºêÁ§Æ®³»ÀÇ À¯Àú º¸Á¶ÀÇ ¾ÆÀÌÀÇ ¼ö

getAccessibleChild

public static Accessible  getAccessibleChild(Component  c,
                                            int i)
¿ÀºêÁ§Æ®ÀÇ n ¹øÂ°ÀÇ Accessible ÀÇ ¾ÆÀ̸¦ µ¹·ÁÁÝ´Ï´Ù.

ÁÖ: Java 2 Ç÷§Æû v1. 3 ÀÌÈÄ, °³¹ßÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ »ç¿ëÇÏ´Â ´ë½Å¿¡, Component.AccessibleAWTComponent.getAccessibleIndexInParent()¸¦ È£ÃâÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
i - Á¦·Î·ÎºÎÅÍ ½ÃÀ۵Ǵ ¾ÆÀÌÀÇ À妽º
¹Ýȯ°ª:
¿ÀºêÁ§Æ®ÀÇ n ¹øÂ°ÀÇ Accessible ÀÇ ¾ÆÀÌ

findFocusOwner

public static Component  findFocusOwner(Component  c)
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù.  ¹öÁ¯ 1.4 ÀÌÈÄ,KeyboardFocusManager.getFocusOwner() ·Î ¿Å°ÜÁ³½À´Ï´Ù.

ÁöÁ¤µÈ Component ÀÇ ¾ÆÀÌ Component °¡ Æ÷Ä¿½º ¼ÒÀ¯ÀÚÀÎ °æ¿ì, ±× ¾ÆÀÌ Component ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Æ÷Ä¿½º ¼ÒÀ¯ÀÚ. Æ÷Ä¿½º ¼ÒÀ¯ÀÚ°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì, Æ÷Ä¿½º ¼ÒÀ¯ÀÚ°¡ comp °¡ ¾Æ´Ñ °æ¿ì, ¶Ç´Â Æ÷Ä¿½º ¼ÒÀ¯ÀÚ°¡ comp ÀÇ ¾ÆÀÌÀÎ °æ¿ì´Â null
°ü·Ã Ç׸ñ:
KeyboardFocusManager.getFocusOwner()

getRootPane

public static JRootPane  getRootPane(Component  c)
c °¡ ÇÏÀ§ JRootPane ¿ÀºêÁ§Æ®ÀÇ °æ¿ì´Â °Ô´Ù°¡ À§ JRootPane ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. c °¡ RootPaneContainer ÀÇ °æ¿ì´Â ±× JRootPane ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Component c ÀÇ JRootPane, ¶Ç´Â null

getRoot

public static Component  getRoot(Component  c)
ÇöÀçÀÇ ÄÄÆÛ³ÍÆ® Æ®¸®ÀÇ ·çÆ® ÄÄÆÛ³ÍÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Window ÀÎ c ÀÇ ÃÖÃÊÀÇ »óÀ§ ¿ÀºêÁ§Æ®, ¶Ç´Â ¸¶Áö¸· »óÀ§ Applet ¿ÀºêÁ§Æ®

processKeyBindings

public static boolean processKeyBindings(KeyEvent  event)
event ¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø Component ÀÇ Å° ¹ÙÀεùÀ» ó¸®ÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå°¡ Æí¸®ÇÑ °ÍÀº event.getComponent() °¡ JComponent ÀÇ ÇÏÀ§ÀÎ °æ¿ì, ¶Ç´Â JComponent ¼­ºê Ŭ·¡½º³»·ÎºÎÅÍ super.processKeyEvent ¸¦ È£ÃâÇÏÁö ¾ÊÀº °æ¿ì »ÓÀÔ´Ï´Ù. JComponent ´Â ÀÚ½ÅÀÇ processKeyEvent ¸Þ¼Òµå³»·ÎºÎÅÍ ÀÚµ¿ÀûÀ¸·Î ¹ÙÀεùÀ» ó¸®Çϱâ À§ÇØ(¶§¹®¿¡), ÀÌ ¸Þ¼Òµå¸¦ Á÷Á¢ È£ÃâÇÏ´Â °ÍÀÌ ÇÊ¿äÇÑ °æ¿ì´Â °ÅÀÇ ¾ø½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
event - Æ÷Ä¿½º¸¦ °¡Áö´Â Component ¹× ó¸® ´ë»óÀÇ ¹ÙÀεùÀ» ÁöÁ¤ÇÏ´Â KeyEvent
¹Ýȯ°ª:
¹ÙÀεùÀÌ ¹ß°ßµÇ¾î 󸮵ǾúÀ» °æ¿ì´Â true
µµÀÔµÈ ¹öÁ¯:
1.4

notifyAction

public static boolean notifyAction(Action  action,
                                   KeyStroke  ks,
                                   KeyEvent  event,
                                   Object  sender,
                                   int modifiers)
action °¡ »ç¿ë °¡´ÉÇÑ (ÇÑÆí null °¡ ¾Æ´Ï´Ù) °æ¿ì,action ÀÇ actionPerformed ¸¦ È£ÃâÇÕ´Ï´Ù. ActionEvent ÀÇ Ä¿¸àµå´Â ´ÙÀ½ÀÇ °ªÀ¸·Î ÁöÁ¤µË´Ï´Ù.
  1. ¾×¼ÇÀÌ registerKeyboardAction ¸¦ »ç¿ëÇØ µî·ÏµÇ¾úÀ» °æ¿ì´Â °Ç³×¹ÞÀº Ä¿¸àµå ij¸¯ÅÍ ¶óÀÎ (null °¡ °Ç³×¹Þ¾ÒÀ» °æ¿ì´Â null °¡ »ç¿ëµÈ´Ù)
  2. null °¡ ¾Æ´Ñ ÇÑ, Action.ACTION_COMMAND_KEY ¶ó´Â À̸§À» °¡Áö´Â Action Ä¡
  3. getKeyChar °¡ KeyEvent.CHAR_UNDEFINED ¸¦ µ¹·ÁÁÖÁö ¾Ê´Â ÀÌ»ó KeyEvent ÀÇ String Ä¡
action °¡ null Àܷ̿Î, actionPerformed °¡ ºÒ·Á °¡¸é(ÀÚ), true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3

replaceUIInputMap

public static void replaceUIInputMap(JComponent  component,
                                     int type,
                                     InputMap  uiInputMap)
component ÀÇ UI InputMap ¸¦ uiInputMap ·Î º¯°æÇϴµ¥ Æí¸®ÇÑ ¸Þ¼ÒµåÀÔ´Ï´Ù. uiInputMap °¡ null ÀÇ °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ÀÌÀü¿¡ ÀνºÅç µÈ UI InputMap ¸¦ »èÁ¦ÇÕ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3

replaceUIActionMap

public static void replaceUIActionMap(JComponent  component,
                                      ActionMap  uiActionMap)
component ÀÇ UI ActionMap ¸¦ uiActionMap ·Î º¯°æÇϴµ¥ Æí¸®ÇÑ ¸Þ¼ÒµåÀÔ´Ï´Ù. uiActionMap °¡ null ÀÇ °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ÀÌÀü¿¡ ÀνºÅç µÈ UI ActionMap ¸¦ »èÁ¦ÇÕ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3

getUIInputMap

public static InputMap  getUIInputMap(JComponent  component,
                                     int condition)
UI °¡ component ÀÇ condition ·Î ÁöÁ¤ÇÑ InputMap ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÀÌ ¸Þ¼Òµå´Â UI °¡ ÁöÁ¤µÈ ÇüÅÂÀÇ InputMap ¸¦ ÀνºÅç Çϰí ÀÖÁö ¾Ê´Â °æ¿ì¿¡ null ¸¦ µ¹·ÁÁÝ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3

getUIActionMap

public static ActionMap  getUIActionMap(JComponent  component)
UI °¡ component ·Î ÁöÁ¤ÇÑ ActionMap ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÀÌ ¸Þ¼Òµå´Â UI °¡ ÁöÁ¤µÈ ÇüÅÂÀÇ ActionMap ¸¦ ÀνºÅç Çϰí ÀÖÁö ¾Ê´Â °æ¿ì¿¡ null ¸¦ µ¹·ÁÁÝ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3

calculateInnerArea

public static Rectangle  calculateInnerArea(JComponent  c,
                                           Rectangle  r)
r ³»¿¡¼­ ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ³»ºÎ paint areaÀÇ À§Ä¡¿Í »çÀÌÁ ÀúÀåÇØ,r ¸¦ µ¹·ÁÁÝ´Ï´Ù. À§Ä¡¿Í »çÀÌÁî´Â ÄÄÆÛ³ÍÆ®ÀÇ °æ°è¸¦ ³ªÅ¸³», º¸´õ area¸¦ Æ÷ÇÔÇÏÁö ¾Ê°Ô Á¶Á¤µË´Ï´Ù (ÀÎ ¼¼Æ®). ÀÌ ¸Þ¼Òµå´Â paint ÇÏ´Â Äڵ带 ±¸ÇöÇϴ Ŭ·¡½º¿¡ ´ëÇØ¼­ Æí¸®ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
c - ´ë»óÀÇ JComponent. ÀÌ ¸Þ¼Òµå°¡ null ¸¦ µ¹·ÁÁÖ´Â °æ¿ì´Â null
r - º¯°æµÇ´Â Rectangle ÀνºÅϽº ¶Ç´Â null
¹Ýȯ°ª:
Component °¡ null ÀÇ °æ¿ì´Â null. ±×·¸Áö ¾ÊÀº °æ¿ì´Â °Ç³×¹Þ´Â ±¸Çü (null ÀÌ¿ÜÀÇ °æ¿ì) ¶Ç´Â À§Ä¡¿Í »çÀÌÁîÀÇ Á¤º¸¸¦ ³ªÅ¸³»´Â »õ·Î¿î ±¸Çü
µµÀÔµÈ ¹öÁ¯:
1.4

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

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.