JavaTM 2
Platform
Std.  Ed.  v1. 4.0

javax.swing
Ŭ·¡½º JLayeredPane

java.lang.Object 
  |
  +--java.awt.Component 
        |
        +--java.awt.Container 
              |
              +--javax.swing.JComponent 
                    |
                    +--javax.swing.JLayeredPane
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
Accessible , ImageObserver , MenuContainer , Serializable
Á÷°èÀÇ ±âÁ¸ÀÇ ¼­ºê Ŭ·¡½º:
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)
(À»)¸¦ È£ÃâÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ·¹À̾î´Â ¾ÆÀ̸¦ ºÎ¸ð¿¡°Ô Ãß°¡Çϱâ ÀüÀ¸·Î ¼³Á¤ÇÏÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù.

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

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 
Åë»óÀÇ paint/À̺¥Æ® ¹æ½ÄÀ¸·Î´Â 1a °¡ ¸Ç ¹Ø, 5a °¡ ¸Ç À§¿¡ Ç¥½ÃµË´Ï´Ù.

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

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿Í ȣȯÀº ¾Æ´Ï°Ô µÉ ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ ¼­Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ¿¡¼­´Â ¸ðµç JavaBeansTM ÀÇ Àå±â°£ÀÇ ¿î¿ë¿¡ ´ëÇÑ ¼­Æ÷Æ®°¡ java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ¾ú½À´Ï´Ù. XMLEncoder ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.


ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä
protected  class JLayeredPane.AccessibleJLayeredPane
          ÀÌ Å¬·¡½º´Â JLayeredPane Ŭ·¡½º¿ëÀÇ À¯Àú º¸Á¶ ±â´ÉÀÇ ¼­Æ÷Æ®¸¦ ±¸ÇöÇϰí ÀÖ½À´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
 
Ŭ·¡½º java.awt. Container À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
 
Ŭ·¡½º java.awt. Component À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
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 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 ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù.
static void putLayer (JComponent  c, int layer)
          JComponent ÀÇ ·¹À̾î ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void remove (int index)
          ÀÌ ±¸È¹À¸·ÎºÎÅÍ À妽º ÷ºÎÀÇ ÄÄÆÛ³ÍÆ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 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 , addPropertyChangeListener , addPropertyChangeListener , addVetoableChangeListener , computeVisibleRect , contains , createToolTip , disable , enable , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , fireVetoableChange , getActionForKeyStroke , getActionMap , getAlignmentX , getAlignmentY , getAncestorListeners , getAutoscrolls , getBorder , getBounds , getClientProperty , getComponentGraphics , getConditionForKeyStroke , getDebugGraphicsOptions , getDefaultLocale , getGraphics , getHeight , getInputMap , getInputMap , getInputVerifier , getInsets , getInsets , getListeners , getLocation , getMaximumSize , getMinimumSize , getNextFocusableComponent , getPreferredSize , getPropertyChangeListeners , getPropertyChangeListeners , getRegisteredKeyStrokes , getRootPane , getSize , getToolTipLocation , getToolTipText , getToolTipText , getTopLevelAncestor , getTransferHandler , getUIClassID , getVerifyInputWhenFocusTarget , getVetoableChangeListeners , getVisibleRect , getWidth , getX , getY , grabFocus , isDoubleBuffered , isLightweightComponent , isManagingFocus , isMaximumSizeSet , isMinimumSizeSet , isOpaque , isPaintingTile , isPreferredSizeSet , isRequestFocusEnabled , isValidateRoot , paintBorder , paintChildren , paintComponent , paintImmediately , paintImmediately , print , printAll , printBorder , printChildren , printComponent , processComponentKeyEvent , processKeyBinding , processKeyEvent , processMouseMotionEvent , putClientProperty , registerKeyboardAction , registerKeyboardAction , removeAncestorListener , removeNotify , removePropertyChangeListener , removePropertyChangeListener , removeVetoableChangeListener , repaint , repaint , requestDefaultFocus , requestFocus , requestFocus , requestFocusInWindow , requestFocusInWindow , resetKeyboardActions , reshape , revalidate , scrollRectToVisible , setActionMap , setAlignmentX , setAlignmentY , setAutoscrolls , setBackground , setBorder , setDebugGraphicsOptions , setDefaultLocale , setDoubleBuffered , setEnabled , setFont , setForeground , 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 , applyComponentOrientation , areFocusTraversalKeysSet , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getContainerListeners , getFocusTraversalKeys , getFocusTraversalPolicy , getLayout , insets , invalidate , isAncestorOf , isFocusCycleRoot , isFocusCycleRoot , isFocusTraversalPolicySet , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , removeAll , removeContainerListener , setFocusCycleRoot , setFocusTraversalKeys , setFocusTraversalPolicy , 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 , getBackground , getBounds , getColorModel , getComponentListeners , getComponentOrientation , getCursor , getDropTarget , getFocusCycleRootAncestor , getFocusListeners , getFocusTraversalKeysEnabled , getFont , getFontMetrics , getForeground , getGraphicsConfiguration , getHierarchyBoundsListeners , getHierarchyListeners , getIgnoreRepaint , getInputContext , getInputMethodListeners , getInputMethodRequests , getKeyListeners , getLocale , getLocation , getLocationOnScreen , getMouseListeners , getMouseMotionListeners , getMouseWheelListeners , getName , getParent , getPeer , getSize , getToolkit , getTreeLock , gotFocus , handleEvent , hasFocus , hide , imageUpdate , inside , isBackgroundSet , isCursorSet , isDisplayable , isEnabled , isFocusable , isFocusOwner , isFocusTraversable , isFontSet , isForegroundSet , isLightweight , 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 , processMouseEvent , processMouseWheelEvent , remove , removeComponentListener , removeFocusListener , removeHierarchyBoundsListener , removeHierarchyListener , removeInputMethodListener , removeKeyListener , removeMouseListener , removeMouseMotionListener , removeMouseWheelListener , 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 °³ÀÇ Á¦ÇÑÀ» Á¤ÀÇÇÕ´Ï´Ù.

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

À̰ÍÀº ÇÁ·Î±×·¥ÀÌ ÄÁÅ×À̳ʿ¡ÀÇ ¸ðµç Ãß°¡ ¿ä±¸¸¦ ÃßÀûÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì¿¡ ¿À¹ö¶óÀ̵å(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)

isOptimizedDrawingEnabled

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

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

putLayer

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

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

getLayer

public static int getLayer(JComponent  c)
JComponent ÀÇ ·¹À̾î ÇÁ·ÎÆÛƼ¸¦ µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â setLayer()¿Í °°Àº ºÎÀÛ¿ë (paint, Ãß°¡/»èÁ¦µî)Àº ¾ø½À´Ï´Ù. Åë»óÀº ÀνºÅϽº ¸Þ¼ÒµåÀÇ 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 - paintó°¡ µÇ´Â 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  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¸¯ÅÍ ¶óÀÎÀÇ ³»¿ë ¹× Çü½ÄÀº ±¸Çö¿¡ µû¶ó¼­ ´Ù¸¨´Ï´Ù. µ¹·ÁÁÖ¾îÁö´Â ij¸¯ÅÍ ¶óÀÎÀº ºñ¾úÀ» °æ¿ì°¡ ÀÖ½À´Ï´Ù¸¸,null ·Î´Â µÇÁö ¾Ê½À´Ï´Ù.

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

getAccessibleContext

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

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

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.