JavaTM 2 Platform
Standard Ed. 5.0

javax.swing
Ŭ·¡½º JLayeredPane

java.lang.Object 
  »óÀ§¸¦ È®Àå java.awt.Component 
      »óÀ§¸¦ È®Àå java.awt.Container 
          »óÀ§¸¦ È®Àå javax.swing.JComponent 
              »óÀ§¸¦ È®Àå javax.swing.JLayeredPane
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
ImageObserver, MenuContainer, Serializable, Accessible
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
JDesktopPane

public class JLayeredPane
extends JComponent
implements Accessible

JLayeredPane´Â JFC/Swing ÄÁÅ×À̳ʿ¡ ±íÀ̸¦ Ãß°¡ÇØ, ÇÊ¿äÇϸé ÄÄÆÛ³ÍÆ® ³¢¸®°¡ ¼­·Î ¿À¹ö·¦ ÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. Integer°´Ã¼´Â ÄÁÅ×À̳ʳ»¿¡¼­ÀÇ °¢ ÄÄÆÛ³ÍÆ®ÀÇ ±íÀ̸¦ ³ªÅ¸³», ¹øÈ£°¡ Å« ¸¸Å­ ´Ù¸¥ ÄÄÆÛ³ÍÆ® À§¿¡ Ç¥½ÃµË´Ï´Ù. °èÃþÈ­ ±¸È¹¿¡ °üÇÑ Å½ºÅ© ÁöÇâÀÇ ¹®¼­ ¹× »ç¿ë¿¹´Â ¡¸The Java Tutorial¡¹ÀÇ ¡¸How to Use a Layered Pane¡¹¸¦ ÂüÁ¶ÇϽʽÿÀ.

´ÙÀ½ÀÇ ¹®ÀåÀº ÀÌ ±×¸²¿¡ ´ëÇØ ¼³¸íÇÏ°í ÀÖ½À´Ï´Ù.

Á¶ÀÛÀ» ¿ëÀÌÇÏ°Ô Çϱâ À§ÇÑ, JLayeredPane´Â ±íÀÌÀÇ ¹üÀ§¸¦ ¸î°³ÀÇ ·¹À̾ ºÐÇÒÇÏ°í ÀÖ½À´Ï´Ù. ÄÄÆÛ³ÍÆ®¸¦ ÀÌ·¯ÇÑ ·¹À̾îÀÇ ¾î¶² °ÍÀΰ¡¿¡ ¹èÄ¡ÇÏ´Â °ÍÀ¸·Î ±íÀ̸¦ ÁöÁ¤ÇÏ´Â ¹øÈ£¸¦ ÁöÁ¤ÇÏ´Â °Í ¾øÀÌ, ÄÄÆÛ³ÍÆ®¸¦ ÀûÀýÈ÷ ¿À¹ö·¦ ½Ãų ¼ö°¡ ÀÖ½À´Ï´Ù.
DEFAULT_LAYER
´ëºÎºÐÀÇ ÄÄÆÛ³ÍÆ®°¡ ¹èÄ¡µÇ´Â Ç¥ÁØ ·¹À̾îÀÔ´Ï´Ù. ÃÖÇÏÃþÀÇ ·¹À̾ µË´Ï´Ù.
PALETTE_LAYER
ÆÈ·¹Æ® ·¹À̾î´Â µðÆúÆ® ·¹À̾î À§¿¡ Ç¥½ÃµË´Ï´Ù. µå·¡±× °¡´ÉÇÑ Åø¹Ù³ª ÆÈ·¹Æ®´Â ´Ù¸¥ ÄÄÆÛ³ÍÆ® À§¿¡ Ç¥½ÃµÇµµ·Ï, ÀÌ ·¹À̾ ¹èÄ¡Çϸé Æí¸®ÇÕ´Ï´Ù.
MODAL_LAYER
¸ð´ú ´ÙÀ̾ó·Î±×¿ëÀÇ ·¹À̾îÀÔ´Ï´Ù. ¸ð´ú ´ÙÀ̾ó·Î±×´Â ÄÁÅ×À̳ʳ»ÀÇ Åø¹Ù, ÆÈ·¹Æ® ¹× Ç¥ÁØ ÄÄÆÛ³ÍÆ® À§¿¡ Ç¥½ÃµË´Ï´Ù.
POPUP_LAYER
pop-up ·¹À̾î´Â ´ÙÀ̾ó·Î±× À§¿¡ Ç¥½ÃµË´Ï´Ù. ÀÌ ·¹À̾ÀÇÇØ combobox, Åø ÈùÆ® ¹× ±× ¿ÜÀÇ ÇïÇÁ ÅؽºÆ®¿¡ °ü·ÃÇÑ pop-up À©µµ¿ì´Â ±× pop-up À©µµ¿ì¸¦ »ý¼ºÇÑ ÄÄÆÛ³ÍÆ®, ÆÈ·¹Æ®, ¶Ç´Â ´ÙÀ̾ó·Î±× À§¿¡ Ç¥½ÃµË´Ï´Ù.
DRAG_LAYER
ÄÄÆÛ³ÍÆ®¸¦ µå·¡±× ÇÏ·Á¸é, ±× ÄÄÆÛ³ÍÆ®¸¦ µå·¡±× ·¹À̾ ÇÒ´çÇÏ´Â °Í¿¡ÀÇÇØ ÄÁÅ×À̳ʳ»ÀÇ ´Ù¸¥ ¸ðµç ÄÄÆÛ³ÍÆ®º¸´Ù À§¿¡ Ç¥½Ã½Ãų ¼ö°¡ ÀÖ½À´Ï´Ù. µå·¡±×°¡ ¿Ï·áÇϸé, ±× ÄÄÆÛ³ÍÆ®¸¦ ¿øÀÇ ·¹À̾ ´Ù½Ã ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù .
JLayeredPane ¸Þ¼­µåÀÎ moveToFront(Component), moveToBack(Component) ¹× setPositionÀ» »ç¿ëÇÏ´Â °ÍÀ¸·Î ·¹À̾¿¡¼­ ÄÄÆÛ³ÍÆ®¸¦ Àç¹èÄ¡ÇÒ ¼ö ÀÖ½À´Ï´Ù . setLayer ¸Þ¼­µå¸¦ »ç¿ëÇϸé, ÄÄÆÛ³ÍÆ®ÀÇ ÇöÀçÀÇ ·¹À̾ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù .

»ó¼¼

JLayeredPane´Â Container¿Í °°ÀÌÀÚ½Ä ÀÇ ¸®½ºÆ®¸¦ °ü¸®ÇÕ´Ï´Ù¸¸, ³»ºÎ¿¡¼­ º¹¼öÀÇ ·¹À̾ Á¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù . °°Àº ·¹À̾ ¼ÓÇÏ´ÂÀڽĴ º¸Åë ÀÇ Container °´Ã¼¿Í ¿ÏÀüÈ÷ ¶È°°ÀÌ °ü¸®µË´Ï´Ù¸¸,ÀÚ½Ä ÄÄÆÛ³ÍÆ® ³¢¸®°¡ ¿À¹ö·¦ ÇßÀ» °æ¿ì¿¡´Â »óÀ§ÀÇ ·¹À̾îÀÇ ÄÄÆÛ³ÍÆ® ÂÊÀÌ ÇÏÀ§ ·¹À̾îÀÇ ÄÄÆÛ³ÍÆ®º¸´Ù À§¿¡ Ç¥½ÃµË´Ï´Ù.

°¢ ·¹À̾´Â °³º°ÀÇ Á¤¼ö°ªÀ» ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. Component ·¹ÀÌ¾î ¼Ó¼ºÀ» ¼³Á¤ÇÏ·Á¸é, add È£Ãâ·Î Integer °´Ã¼¸¦ °Ç³×ÁÝ´Ï´Ù.
ÀÌÇÏ¿¡ ¿¹¸¦ ³ªÅ¸³À´Ï´Ù.

 layeredPane.add(child, JLayeredPane.DEFAULT_LAYER); ¶Ç´Â layeredPane.add(child, new Integer(10));
Component ·¹ÀÌ¾î ¼Ó¼ºÀ» ¼³Á¤ÇÏ·Á¸é, ÄÄÆÛ³ÍÆ®ÀÇ ºÎ¸ðÀÎ JlayeredPane »ó¿¡¼­
 layeredPaneParent.setLayer(child, 10)
¸¦ È£ÃâÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ·¹À̾î´Â ÀÚ½ÄÀ» ºÎ¸ð¿¡°Ô Ãß°¡Çϱâ ÀüÀ¸·Î ¼³Á¤ÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

¹øÈ£°¡ Å« ·¹À̾î(Á¤µµ)¸¸Å­ À§¿¡ Ç¥½ÃµË´Ï´Ù. µû¶ó¼­, ´ÙÀ½°ú °°ÀÌ °¢ ÄÄÆÛ³ÍÆ®¿¡ °³º°ÀÇ ·¹ÀÌ¾î ¹øÈ£¿Í ¹®ÀÚ¸¦ ÇÒ´çÇÏ´Â °ÍÀ¸·Î

 5a, 5b, 5c, 2a, 2b, 2c, 1a
¿ÞÂÊÀÇ ÄÄÆÛ³ÍÆ®(Á¤µµ)¸¸Å­ À§¿¡ Ç¥½ÃµË´Ï´Ù.

ÄÄÆÛ³ÍÆ®¸¦ ·¹À̾¿¡¼­ ¸Ç À§ ¶Ç´Â ¸Ç ¹Ø¿¡ À̵¿½ÃÅ°·Á¸é, moveToFront ¶Ç´Â moveToBack¸¦ È£ÃâÇÕ´Ï´Ù.

·¹À̾¿¡¼­ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ À§Ä¡¸¦ À§Ä¡ ¹øÈ£·Î ÁöÁ¤ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ÁöÁ¤ÇÒ ¼ö ÀÖ´Â À§Ä¡ ¹øÈ£´Â 0 ~ ¡¸·¹À̾ÀÇ ÄÄÆÛ³ÍÆ®¼ö - 1¡¹ÀÔ´Ï´Ù. -1¸¦ ÁöÁ¤Çϸé, ÄÄÆÛ³ÍÆ®´Â ¸Ç ¹Ø¿¡ Ç¥½ÃµË´Ï´Ù. 0À» ÁöÁ¤Çϸé, ÄÄÆÛ³ÍÆ®´Â ¸Ç À§¿¡ Ç¥½ÃµË´Ï´Ù. ·¹ÀÌ¾î ¹øÈ£¿Í´Â ´Þ¶ó, °ªÀÌ Å« ¸¸Å­ ¾Æ·¡¿¡ Ç¥½ÃµË´Ï´Ù.

ÁÖ: ÀÌ ¼ø¼­ (java.awt.Container ·Î Á¤Àǵǰí ÀÖ´Ù)´Â ·¹ÀÌ¾î ¹øÈ£ÀÇ ¼ø¼­ÀÇ ¹Ý´ë·Î µÇ¾î ÀÖ½À´Ï´Ù. ÀϹÝÀûÀ¸·ÎmoveToFront, moveToBack ¹× setLayer¸¦ »ç¿ëÇÕ´Ï´Ù.
add(Component, layer, position) ¸Þ¼­µåÀÇ »ç¿ë¿¹¸¦ ³ªÅ¸³À´Ï´Ù. add(5x, 5, -1) È£ÃâÀÇ °á°ú´Â ´ÙÀ½°ú °°½À´Ï´Ù.
 5a, 5b, 5c, 5x, 2a, 2b, 2c, 1a 
add(5z, 5, 2) È£ÃâÀÇ °á°ú´Â ´ÙÀ½°ú °°½À´Ï´Ù.
 5a, 5b, 5z, 5c, 5x, 2a, 2b, 2c, 1a 
add(3a, 3, 7) È£ÃâÀÇ °á°ú´Â ´ÙÀ½°ú °°½À´Ï´Ù.
 5a, 5b, 5z, 5c, 5x, 3a, 2a, 2b, 2c, 1a 
º¸Åë ÀÇ ÆäÀÎÆ®/À̺¥Æ® ¹æ½ÄÀ¸·Î´Â 1a°¡ ¸Ç ¹Ø, 5a°¡ ¸Ç À§¿¡ Ç¥½ÃµË´Ï´Ù.

ÁÖ: ÀÌ·¯ÇÑ ·¹À̾î´Â ´ÜÁö ³í¸®ÀûÀÎ ±¸Á¶À̸ç, LayoutManager´Â ·¹ÀÌ¾î ¼³Á¤¿¡´Â °ü°è¾øÀÌ, ÀÌ ÄÁÅ×À̳ÊÀÇ ¸ðµçÀÚ½Ä ÄÄÆÛ³ÍÆ®¿¡ ¿µÇâÀ» ÁÝ´Ï´Ù.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ Áö¿øÀº ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü 1.4 ÀÌÈÄ, ¸ðµç JavaBeans Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº java.beans ÆÐÅ°Áö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦ ÂüÁ¶ÇϽʽÿÀ.


Áßø(Nested) Ŭ·¡½º °³¿ä
protected  class JLayeredPane.AccessibleJLayeredPane
          ÀÌ Å¬·¡½º´Â JLayeredPane Ŭ·¡½º¿ëÀÇ »ç¿ëÀÚ º¸Á¶ ±â´ÉÀÇ Áö¿ø¸¦ ±¸ÇöÇÏ°í ÀÖ½À´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
JComponent.AccessibleJComponent
 
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Container.AccessibleAWTContainer
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
ÇÊµå °³¿ä
static Integer DEFAULT_LAYER
          µðÆúÆ® ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù.
static Integer DRAG_LAYER
          µå·¡±× ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù.
static Integer FRAME_CONTENT_LAYER
          ÇÁ·¹ÀÓ ³»¿ë ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù.
static String LAYER_PROPERTY
          ¹Ù¿îµå ÇÁ·ÎÆÛƼÀÔ´Ï´Ù.
static Integer MODAL_LAYER
          ¸ð´ú ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù.
static Integer PALETTE_LAYER
          ÆÈ·¹Æ® ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù.
static Integer POPUP_LAYER
          pop-up ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
ÀÎÅÍÆäÀ̽º java.awt.image. ImageObserver ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
»ý¼ºÀÚ °³¿ä
JLayeredPane ()
          »õ·Î¿î JLayeredPane¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
protected  void addImpl (Component  comp, Object  constraints, int index)
          ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦, ÁöÁ¤µÈ À妽º·Î ÄÁÅ×À̳ʿ¡ Ãß°¡ÇÕ´Ï´Ù.
 AccessibleContext getAccessibleContext ()
          ÀÌ JLayeredPane¿¡ °ü·ÃÇÑ AccessibleContext¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getComponentCountInLayer (int layer)
          ÁöÁ¤µÈ ·¹À̾îÀÇ ÇöÀçÀÇÀÚ½Ä ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Component [] getComponentsInLayer (int layer)
          ÁöÁ¤µÈ ·¹À̾îÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
protected  Hashtable <Component, Integer > getComponentToLayer ()
          ÄÄÆÛ³ÍÆ®¸¦ ·¹À̾ ¸ÅÇÎ ÇÏ´Â Çؽà Å×À̺íÀ» ¸®ÅÏÇÕ´Ï´Ù.
 int getIndexOf (Component  c)
          ÁöÁ¤µÈ Component À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getLayer (Component  c)
          ÁöÁ¤µÈ Component ·¹ÀÌ¾î ¼Ó¼ºÀ» ¸®ÅÏÇÕ´Ï´Ù.
static int getLayer (JComponent  c)
          JComponent ·¹À̾î ÇÁ·ÎÆÛƼ¸¦ ¸®ÅÏÇÕ´Ï´Ù.
static JLayeredPane getLayeredPaneAbove (Component  c)
          ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ Æ÷ÇÔÇÑ ÃÖÃÊÀÇ JLayeredPane¸¦ µ¹·ÁÁÖ´Â °£ÀÌ ¸Þ¼­µåÀÔ´Ï´Ù.
protected  Integer getObjectForLayer (int layer)
          ÁöÁ¤µÈ ·¹À̾ °ü·ÃÇÑ Integer °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getPosition (Component  c)
          ·¹À̾¿¡¼­ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ »ó´ë À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int highestLayer ()
          ÇöÀçÀÇ ¸ðµçÀÚ½Ä ·ÎºÎÅÍ ÃÖ´ë ·¹À̾îÄ¡¸¦ ¸®ÅÏÇÕ´Ï´Ù.
protected  int insertIndexForLayer (int layer, int position)
          ·¹ÀÌ¾î ¹× À§Ä¡ÀÇ ¿ä±¸¿¡ µû¶ó »õ·Î¿î ÀÚ½ÄÀ» »ðÀÔÇÏ´Â ÀûÀýÇÑ À§Ä¡¸¦ °áÁ¤Çϱâ À§ÇÑ ¿ø½ÃÀû ¸Þ¼­µåÀÔ´Ï´Ù.
 boolean isOptimizedDrawingEnabled ()
          ±¸È¹³»ÀÇ ÄÄÆÛ³ÍÆ®°¡ ¿À¹ö·¦ °¡´ÉÇÑ °æ¿ì¿¡´Â false¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int lowestLayer ()
          ÇöÀçÀÇ ¸ðµçÀÚ½Ä ·ÎºÎÅÍ ÃÖ¼Ò ·¹À̾îÄ¡¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void moveToBack (Component  c)
          ÄÄÆÛ³ÍÆ®¸¦ ÇöÀçÀÇ ·¹À̾î·Î ¸Ç ¹Ø (À§Ä¡ -1)À¸·Î À̵¿ÇÕ´Ï´Ù.
 void moveToFront (Component  c)
          ÄÄÆÛ³ÍÆ®¸¦ ÇöÀçÀÇ ·¹À̾î·Î ¸Ç À§ (À§Ä¡ 0)·Î À̵¿ÇÕ´Ï´Ù.
 void paint (Graphics  g)
          ÁöÁ¤µÈ ±×·¡ÇÈ ÄÁÅؽºÆ® À¸·Î ÀÌ JLayeredPane¸¦ ·»´õ¸µ ÇÕ´Ï´Ù.
protected  String paramString ()
          ÀÌ JLayeredPane ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù.
static void putLayer (JComponent  c, int layer)
          JComponent ·¹À̾î ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void remove (int index)
          ÀÌ ±¸È¹À¸·ÎºÎÅÍ À妽º ÷ºÎÀÇ ÄÄÆÛ³ÍÆ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeAll ()
          ÄÁÅ×À̳ʷκÎÅÍ ¸ðµç ÄÄÆÛ³ÍÆ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void setLayer (Component  c, int layer)
          ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ·¹ÀÌ¾î ¼Ó¼ºÀ» ¼³Á¤ÇØ, ·¹À̾¿¡¼­ ¸Ç ¹ØÀÇ ÄÄÆÛ³ÍÆ®·Î ÇÕ´Ï´Ù.
 void setLayer (Component  c, int layer, int position)
          ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ·¹ÀÌ¾î ¼Ó¼º°ú ·¹À̾¿¡¼­ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÕ´Ï´Ù.
 void setPosition (Component  c, int position)
          ÄÄÆÛ³ÍÆ®¸¦ ÇöÀçÀÇ ·¹À̾îÀÇ position·Î À̵¿ÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

ÇʵåÀÇ »ó¼¼

DEFAULT_LAYER

public static final Integer  DEFAULT_LAYER
µðÆúÆ® ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù. new Integer(0)¿Í µ¿µîÇÕ´Ï´Ù.


PALETTE_LAYER

public static final Integer  PALETTE_LAYER
ÆÈ·¹Æ® ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù. new Integer(100)¿Í µ¿µîÇÕ´Ï´Ù.


MODAL_LAYER

public static final Integer  MODAL_LAYER
¸ð´ú ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù. new Integer(200)¿Í µ¿µîÇÕ´Ï´Ù.


POPUP_LAYER

public static final Integer  POPUP_LAYER
pop-up ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù. new Integer(300)¿Í µ¿µîÇÕ´Ï´Ù.


DRAG_LAYER

public static final Integer  DRAG_LAYER
µå·¡±× ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù. new Integer(400)¿Í µ¿µîÇÕ´Ï´Ù.


FRAME_CONTENT_LAYER

public static final Integer  FRAME_CONTENT_LAYER
ÇÁ·¹ÀÓ ³»¿ë ·¹À̾ Á¤ÀÇÇÏ´Â °£ÀÌ °´Ã¼ÀÔ´Ï´Ù. ÀÌ ·¹À̾î´Â º¸Åë, JFrame contentPane ¹× menuBar ÄÄÆÛ³ÍÆ®¸¦ ¹èÄ¡Çϱâ À§Çؼ­¸¸ »ç¿ëÇÕ´Ï´Ù. new Integer(-30000)¿Í µ¿µîÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ:
JFrame

LAYER_PROPERTY

public static final String  LAYER_PROPERTY
¹Ù¿îµå ÇÁ·ÎÆÛƼÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö Çʵ尪
»ý¼ºÀÚ »ó¼¼

JLayeredPane

public JLayeredPane()
»õ·Î¿î JLayeredPane¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

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

addImpl

protected void addImpl(Component  comp,
                       Object  constraints,
                       int index)
Ŭ·¡½º Container ±â¼ú:
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦, ÁöÁ¤µÈ À妽º·Î ÄÁÅ×À̳ʿ¡ Ãß°¡ÇÕ´Ï´Ù. ¶Ç, ÀÌ ¸Þ¼­µå´Â addLayoutComponent ¸Þ¼­µå¸¦ »ç¿ëÇØ, ÁöÁ¤µÈ Á¦¾à °´Ã¼¸¦ »ç¿ëÇØ ÀÌ ÄÁÅ×À̳ÊÀÇ ·¹À̾ƿô¿¡ ÄÄÆÛ³ÍÆ®¸¦ Ãß°¡ÇÏ´Â °ÍÀ» ·¹À̾ƿô ¸Å´ÏÀú¿¡ ÅëÁöÇÕ´Ï´Ù.

Á¦¾àÀº »ç¿ëµÇ°í ÀÖ´Â ·¹À̾ƿô ¸Å´ÏÀú¸¦ »ç¿ëÇØ Á¤Àǵ˴ϴÙ. ¿¹¸¦ µé¾î BorderLayout Ŭ·¡½º´Â BorderLayout.NORTH, BorderLayout.SOUTH, BorderLayout.EAST, BorderLayout.WEST ¹× BorderLayout.CENTER 5°³ÀÇ Á¦¾àÀ» Á¤ÀÇÇÕ´Ï´Ù.

GridBagLayout Ŭ·¡½º¿¡´Â GridBagConstraints °´Ã¼°¡ ÇÊ¿äÇÕ´Ï´Ù. ¿Ã¹Ù¸¥ ÇüÅÂÀÇ Á¦¾à °´Ã¼¸¦ °Ç³×ÁÖÁö ¾ÊÀ¸¸éIllegalArgumentException°¡ ¹ß»ýÇÕ´Ï´Ù.

·¹À̾ƿô ¸Å´ÏÀú°¡ LayoutManagerÀÎÅÍÆäÀ̽º¿Í LayoutManager2ÀÎÅÍÆäÀ̽ºÀÇ ¾çÂÊ ¸ðµÎ¸¦ ±¸ÇöÇÏ´Â °æ¿ì, LayoutManager2 ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù.

ÄÄÆÛ³ÍÆ®°¡ ÀÌ ÄÁÅ×À̳Ê, ¶Ç´Â ±×ÀڽĿ¡ °Ô µî·ÏÁ¦ÀÇ °æ¿ì, ÀÌ ÄÁÅ×À̳ʿ¡ Ãß°¡Çϱâ Àü¿¡ »èÁ¦µË´Ï´Ù.

ÀÌ°ÍÀº ÇÁ·Î±×·¥ÀÌ ÄÁÅ×À̳ʿ¡ÀÇ ¸ðµç Ãß°¡ ¿ä±¸¸¦ ÃßÀûÇÒ ÇÊ¿ä°¡ ÀÖ´Â °æ¿ì¿¡ ¿À¹ö¶óÀ̵å(override) ÇÏ´Â ¸Þ¼­µåÀÔ´Ï´Ù. ´Ù¸¥ ¸ðµç Ãß°¡ ¸Þ¼­µå¿¡¼­´Â ÃßÀûÀ» ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù. ¿À¹ö¶óÀ̵å(override) ÇÏ´Â ¸Þ¼­µå´Â º¸Åë, ¸Þ¼­µåÀÇ ½´ÆÛ Å¬·¡½ºÀÇ ¹öÀüÀÇ È£ÃâÀ» Æ÷ÇÔÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

super.addImpl(comp, constraints, index)

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Container ³»ÀÇ addImpl
ÆĶó¹ÌÅÍ:
comp - Ãß°¡µÇ´Â ÄÄÆÛ³ÍÆ®
constraints - ÀÌ ÄÄÆÛ³ÍÆ®ÀÇ ¹èÄ¡ Á¦¾àÀ» Ç¥ÇöÇÏ´Â °´Ã¼
index - ÄÄÆÛ³ÍÆ®¸¦ »ðÀÔÇÏ´Â ÄÁÅ×À̳ÊÀÇ ¸®½ºÆ®³»¿¡¼­ÀÇ À§Ä¡. -1 ´Â ¸¶Áö¸·¿¡ »ðÀÔÇÏ´Â °ÍÀ»ÀǹÌÇÏ´Â
°ü·Ã Ç׸ñ:
Container.add(Component), Container.add(Component, int), Container.add(Component, java.lang.Object), LayoutManager, LayoutManager2

remove

public void remove(int index)
ÀÌ ±¸È¹À¸·ÎºÎÅÍ À妽º ÷ºÎÀÇ ÄÄÆÛ³ÍÆ®¸¦ »èÁ¦ÇÕ´Ï´Ù. Àý´ë À妽ºÀ̸ç, ·¹À̾î´Â ¹«½ÃÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Container ³»ÀÇ remove
ÆĶó¹ÌÅÍ:
index - »èÁ¦ÇÏ´Â ÄÄÆÛ³ÍÆ®¸¦ ÁöÁ¤ÇÑ int°ª
°ü·Ã Ç׸ñ:
getIndexOf(java.awt.Component)

removeAll

public void removeAll()
ÄÁÅ×À̳ʷκÎÅÍ ¸ðµç ÄÄÆÛ³ÍÆ®¸¦ »èÁ¦ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Container ³»ÀÇ removeAll
µµÀÔµÈ ¹öÀü :
1.5
°ü·Ã Ç׸ñ:
Container.add(java.awt.Component), Container.remove(int)

isOptimizedDrawingEnabled

public boolean isOptimizedDrawingEnabled()
±¸È¹³»ÀÇ ÄÄÆÛ³ÍÆ®°¡ ¿À¹ö·¦ °¡´ÉÇÑ °æ¿ì¿¡´Â false¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ °æ¿ì ÃÖÀûÀÎ ·»´õ¸µ´Â ºÒ°¡´ÉÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ isOptimizedDrawingEnabled
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®°¡ ¿À¹ö·¦ °¡´ÉÇÑ °æ¿ì´Â false, ±×·¸Áö ¾ÊÀº °æ¿ì´Â true
°ü·Ã Ç׸ñ:
JComponent.isOptimizedDrawingEnabled()

putLayer

public static void putLayer(JComponent  c,
                            int layer)
JComponent ·¹À̾î ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â setLayer()¿Í °°Àº ºÎÀÛ¿ë (ÆäÀÎÆ®, Ãß°¡/»èÁ¦µî)Àº ¾ø½À´Ï´Ù. ÀϹÝÀûÀ¸·Î ÇÊ¿äÇÑ ºÎÀÛ¿ë (Àç·»´õ¸µµî)À» ¾ò±â À§Çؼ­ ÀνºÅϽº ¸Þ¼­µåÀÇ setLayer()¸¦ »ç¿ëÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - À̵¿ÇÏ´Â JComponent
layer - À̵¿Ã³ÀÇ ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª
°ü·Ã Ç׸ñ:
setLayer(java.awt.Component, int)

getLayer

public static int getLayer(JComponent  c)
JComponent ·¹À̾î ÇÁ·ÎÆÛƼ¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â setLayer()¿Í °°Àº ºÎÀÛ¿ë (ÆäÀÎÆ®, Ãß°¡/»èÁ¦µî)Àº ¾ø½À´Ï´Ù. ÀϹÝÀûÀ¸·Î ÀνºÅϽº ¸Þ¼­µåÀÇ setLayer()¸¦ »ç¿ëÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - üũ ´ë»óÀÇ JComponent
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®ÀÇ ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª

getLayeredPaneAbove

public static JLayeredPane  getLayeredPaneAbove(Component  c)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ Æ÷ÇÔÇÑ ÃÖÃÊÀÇ JLayeredPane¸¦ µ¹·ÁÁÖ´Â °£ÀÌ ¸Þ¼­µåÀÔ´Ï´Ù. ¸ðµç JFrame´Â ·çÆ®¿¡ JLayeredPane¸¦ °¡Áö±â ¶§¹®¿¡ JFrame ¸ðµç ÄÄÆÛ³ÍÆ®´Â JLayeredPane¸¦ ºÎ¸ð·Î¼­ °¡Áý´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - üũ ´ë»óÀÇ Component
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®¸¦ Æ÷ÇÔÇÑ JLayeredPane. ÄÄÆÛ³ÍÆ® °èÃþ¿¡ JLayeredPane°¡ Æ÷ÇÔµÇÁö ¾ÊÀº °æ¿ì´Â null
°ü·Ã Ç׸ñ:
JFrame, JRootPane

setLayer

public void setLayer(Component  c,
                     int layer)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ·¹ÀÌ¾î ¼Ó¼ºÀ» ¼³Á¤ÇØ, ·¹À̾¿¡¼­ ¸Ç ¹ØÀÇ ÄÄÆÛ³ÍÆ®·Î ÇÕ´Ï´Ù. ºÎ¸ð¿¡°Ô Ãß°¡Çϱâ Àü¿¡ È£ÃâÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - ·¹À̾ ¼³Á¤ÇÏ´Â Component
layer - ¼³Á¤ÇÏ´Â ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª . °ªÀÌ ÀÛÀ» Á¤µµ ÇÏÃþ

setLayer

public void setLayer(Component  c,
                     int layer,
                     int position)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ·¹ÀÌ¾î ¼Ó¼º°ú ·¹À̾¿¡¼­ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - ·¹À̾ ¼³Á¤ÇÏ´Â Component
layer - ¼³Á¤ÇÏ´Â ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª . °ªÀÌ ÀÛÀ» Á¤µµ ÇÏÃþ
position - ·¹À̾¿¡¼­ÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÏ´Â int°ª . 0 ÀÌ ¸Ç À§,-1°¡ ¸Ç ¹Ø

getLayer

public int getLayer(Component  c)
ÁöÁ¤µÈ Component ·¹ÀÌ¾î ¼Ó¼ºÀ» ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - üũ ´ë»óÀÇ Component
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®ÀÇ ÇöÀçÀÇ ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª

getIndexOf

public int getIndexOf(Component  c)
ÁöÁ¤µÈ Component À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù. Àý´ë À妽ºÀ̸ç, ·¹À̾î´Â ¹«½ÃÇÕ´Ï´Ù. À妽º ¹øÈ£´Â À§Ä¡ ¹øÈ£¿Í °°ÀÌ, ¸Ç À§ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ¹øÈ£°¡ 0 ÀÌ µÇ¾î, °ªÀÌ Å« ¸¸Å­ ÇÏÃþ¿¡ ±Ùó µË´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - üũ ´ë»óÀÇ Component
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®ÀÇ À妽º¸¦ ÁöÁ¤ÇÏ´Â int°ª

moveToFront

public void moveToFront(Component  c)
ÄÄÆÛ³ÍÆ®¸¦ ÇöÀçÀÇ ·¹À̾î·Î ¸Ç À§ (À§Ä¡ 0)·Î À̵¿ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - À̵¿ÇÏ´Â Component
°ü·Ã Ç׸ñ:
setPosition(Component, int)

moveToBack

public void moveToBack(Component  c)
ÄÄÆÛ³ÍÆ®¸¦ ÇöÀçÀÇ ·¹À̾î·Î ¸Ç ¹Ø (À§Ä¡ -1)À¸·Î À̵¿ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - À̵¿ÇÏ´Â Component
°ü·Ã Ç׸ñ:
setPosition(Component, int)

setPosition

public void setPosition(Component  c,
                        int position)
ÄÄÆÛ³ÍÆ®¸¦ ÇöÀçÀÇ ·¹À̾îÀÇ position·Î À̵¿ÇÕ´Ï´Ù. 0 ÀÌ ¸Ç À§,-1°¡ ¸Ç ¹ØÀÔ´Ï´Ù.

ÁÖ: À§Ä¡ ¹øÈ£´Â java.awt.Container¿¡ ÀÇÇØ Á¤Àǵǰí ÀÖ¾î ·¹ÀÌ¾î ¹øÈ£ÀÇ ¼ø¼­ÀÇ ¹Ý´ë·Î µÇ¾î ÀÖ½À´Ï´Ù. À§Ä¡ ¹øÈ£°¡ ÀÛÀ» Á¤µµ À§ (0 ÀÌ ¸Ç À§), Å« ¸¸Å­ ¾Æ·¡°¡ µË´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - À̵¿ÇÏ´Â Component
position - -1 ~ N-1 (N´Â ÇöÀçÀÇ ·¹À̾îÀÇ ÄÄÆÛ³ÍÆ®¼ö)ÀÇ ¹üÀ§³»ÀÇ int°ª

getPosition

public int getPosition(Component  c)
·¹À̾¿¡¼­ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ »ó´ë À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - üũ ´ë»óÀÇ Component
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®ÀÇ À§Ä¡¸¦ ³ªÅ¸³»´Â int°ª . 0 ÀÌ ¸Ç À§¿¡¼­ ÃÖ´ë À妽ºÄ¡´Â ·¹À̾ÀÇ ÄÄÆÛ³ÍÆ®¼ö -1
°ü·Ã Ç׸ñ:
getComponentCountInLayer(int)

highestLayer

public int highestLayer()
ÇöÀçÀÇ ¸ðµçÀÚ½Ä ·ÎºÎÅÍ ÃÖ´ë ·¹À̾îÄ¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÚ½ÄÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì¿¡´Â 0À» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
±¸È¹³»ÀÇ ¸Ç À§ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ·¹À̾ ³ªÅ¸³»´Â int°ª . ÀÚ½ÄÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â 0

lowestLayer

public int lowestLayer()
ÇöÀçÀÇ ¸ðµçÀÚ½Ä ·ÎºÎÅÍ ÃÖ¼Ò ·¹À̾îÄ¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÚ½ÄÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì¿¡´Â 0À» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
±¸È¹³»ÀÇ ¸Ç ¹ØÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ·¹À̾ ³ªÅ¸³»´Â int°ª . ÀÚ½ÄÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â 0

getComponentCountInLayer

public int getComponentCountInLayer(int layer)
ÁöÁ¤µÈ ·¹À̾îÀÇ ÇöÀçÀÇÀÚ½Ä ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
layer - üũÇÏ´Â ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª
¹Ýȯ°ª:
·¹À̾îÀÇ ÄÄÆÛ³ÍÆ®¼ö¸¦ ÁöÁ¤ÇÏ´Â int°ª

getComponentsInLayer

public Component [] getComponentsInLayer(int layer)
ÁöÁ¤µÈ ·¹À̾îÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
layer - üũÇÏ´Â ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª
¹Ýȯ°ª:
·¹À̾ Æ÷ÇԵǾî ÀÖ´Â Component ¹è¿­

paint

public void paint(Graphics  g)
ÁöÁ¤µÈ ±×·¡ÇÈ ÄÁÅؽºÆ® À¸·Î ÀÌ JLayeredPane¸¦ ·»´õ¸µ ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ paint
ÆĶó¹ÌÅÍ:
g - ÆäÀÎƮó°¡ µÇ´Â Graphics ÄÁÅؽºÆ®
°ü·Ã Ç׸ñ:
JComponent.paintComponent(java.awt.Graphics), JComponent.paintBorder(java.awt.Graphics), JComponent.paintChildren(java.awt.Graphics), JComponent.getComponentGraphics(java.awt.Graphics), JComponent.repaint(long, int, int, int, int)

getComponentToLayer

protected Hashtable <Component,
Integer > getComponentToLayer()
ÄÄÆÛ³ÍÆ®¸¦ ·¹À̾ ¸ÅÇÎ ÇÏ´Â Çؽà Å×À̺íÀ» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®¸¦ ·¹À̾ ¸ÅÇÎÇϱâ À§ÇÑ Çؽà Å×À̺í

getObjectForLayer

protected Integer  getObjectForLayer(int layer)
ÁöÁ¤µÈ ·¹À̾ °ü·ÃÇÑ Integer °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
layer - ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª
¹Ýȯ°ª:
·¹À̾îÀÇ Integer °´Ã¼

insertIndexForLayer

protected int insertIndexForLayer(int layer,
                                  int position)
·¹ÀÌ¾î ¹× À§Ä¡ÀÇ ¿ä±¸¿¡ µû¶ó »õ·Î¿î ÀÚ½ÄÀ» »ðÀÔÇÏ´Â ÀûÀýÇÑ À§Ä¡¸¦ °áÁ¤Çϱâ À§ÇÑ ¿ø½ÃÀû ¸Þ¼­µåÀÔ´Ï´Ù.

ÆĶó¹ÌÅÍ:
layer - ·¹À̾ ÁöÁ¤ÇÏ´Â int°ª
position - ·¹À̾ÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÏ´Â int°ª
¹Ýȯ°ª:
(Àý´ë) »ðÀÔ À妽º¸¦ ÁöÁ¤ÇÏ´Â int°ª
°ü·Ã Ç׸ñ:
getIndexOf(java.awt.Component)

paramString

protected String  paramString()
ÀÌ JLayeredPane ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â µð¹ö±× Àü¿ëÀ̸ç, ¸®ÅÏµÈ Ä³¸¯ÅÍ ¶óÀÎÀÇ ³»¿ë ¹× Çü½ÄÀº ±¸Çö¿¡ µû¶ó¼­ ´Ù¸¨´Ï´Ù. ¸®ÅÏµÈ Ä³¸¯ÅÍ ¶óÀÎÀº ºñ¾îÀÖ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù¸¸, null·Î´Â µÇÁö ¾Ê½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ paramString
¹Ýȯ°ª:
ÀÌ JLayeredPane ij¸¯ÅÍ ¶óÀΠǥÇö

getAccessibleContext

public AccessibleContext  getAccessibleContext()
ÀÌ JLayeredPane¿¡ °ü·ÃÇÑ AccessibleContext¸¦ ¸®ÅÏÇÕ´Ï´Ù. °èÃþÈ­ ±¸È¹ÀÇ °æ¿ì, AccessibleContext Àº AccessibleJLayeredPane Çü½ÄÀ» ÃëÇÕ´Ï´Ù. ÇÊ¿ä¿¡ µû¶ó¼­ »õ·Î¿îÀÇ AccessibleJLayeredPane ÀνºÅϽº°¡ ÀÛ¼ºµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Accessible ³»ÀÇ getAccessibleContext
¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ getAccessibleContext
¹Ýȯ°ª:
ÀÌ JLayeredPane AccessibleContext À¸·Î¼­ ±â´ÉÇÏ´Â AccessibleJLayeredPane

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.