|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.Box
BoxLayout ¿ÀºêÁ§Æ®¸¦ ·¹À̾ƿô ¸Å´ÏÀú·Î¼ »ç¿ëÇÏ´Â °æ·®ÀÎ ÄÁÅ×À̳ÊÀÔ´Ï´Ù. Box ¿¡´Â BoxLayout ¸¦ »ç¿ëÇÏ´Â ÄÁÅ×ÀÌ³Ê ¶Ç´Â Box °¡ ¾Æ´Ñ ÄÁÅ×À̳ʿ¡µµ Æí¸®ÇÑ Å¬·¡½º ¸Þ¼Òµå°¡ ¸î°³Àΰ¡ ÁغñµÇ¾î ÀÖ½À´Ï´Ù.
Box Ŭ·¡½º´Â ·¹À̾ƿô¿¡ ¿µÇâÀ» ÁÖ´Â ¿©·¯Á¾·ùÀÇ ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, Á¢ÂøÁ¦ (glue), ±âµÕ (strut), ¹× °íÁ¤ area (rigid area)ÀÔ´Ï´Ù. ¹Ú½º¿¡ Æ÷ÇԵǴ ¸ðµç ÄÄÆÛ³ÍÆ®ÀÇ »çÀÌÁî°¡ °íÁ¤µÇ°í ÀÖ´Â °æ¿ì´Â createGlue
°¡ µ¹·ÁÁÖ´Â Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ »ç¿ëÇØ, ÄÄÆÛ³ÍÆ®ÀÇ À§Ä¡¸¦ Á¦¾îÇÒ ¼ö ÀÖ½À´Ï´Ù. 2 °³ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ »çÀÌ¿¡ ÀÏÁ¤ÇÑ °ø°£ÀÌ ÇÊ¿äÇÑ °æ¿ì´Â ±âµÕÀ» »ç¿ëÇØ º¸´Â °ÍÀ» ÃßõÇÕ´Ï´Ù (createHorizontalStrut
¶Ç´Â createVerticalStrut
). Ç×»ó °°Àº ¾çÀÇ °ø°£À» Â÷ÁöÇÏ´Â ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®°¡ ÇÊ¿äÇÑ °æ¿ì´Â createRigidArea
¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î, ±× ÄÄÆÛ³ÍÆ®¸¦ ÃëµæÇÕ´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄ ¸±¸®½º µÇ´Â Swing ¿ÍÀÇ È£È¯¼ºÀº ¾ø½À´Ï´Ù. ÇöÀç ¼Æ÷Æ®µÇ°í ÀÖ´Â Á÷·ÄÈ´Â ´Ü±â°£ÀÇ º¸°ü, ¶Ç´Â °°Àº ¹öÁ¯ÀÇ Swing °¡ °¡µ¿Çϰí ÀÖ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ·ÎºÎÅÍ´Â ¸ðµç JavaBeansTM ÀÇ Àå±â°£ÀÇ º¸°üÀÌ java.beans
ÆÐŰÁö·Î Ãß°¡ ¼Æ÷Æ®µÇ°í ÀÖ½À´Ï´Ù. XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
BoxLayout
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
protected class |
Box.AccessibleBox
ÀÌ Å¬·¡½º´Â Box Ŭ·¡½º¿ëÀÇ À¯Àú º¸Á¶ ±â´ÉÀÇ ¼Æ÷Æ®¸¦ ±¸ÇöÇϰí ÀÖ½À´Ï´Ù. |
static class |
Box.Filler
·¹À̾ƿô¿¡ °ü·ÃÇØ, ºä¸¦ °¡ÁöÁö ¾Ê´Â °æ·® ÄÄÆÛ³ÍÆ®ÀÇ ±¸ÇöÀÔ´Ï´Ù. |
Ŭ·¡½º javax.swing. JComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
JComponent.AccessibleJComponent |
Ŭ·¡½º java.awt. Container À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
|
Ŭ·¡½º java.awt. Component À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
Component.BltBufferStrategy , Component.FlipBufferStrategy |
ÇʵåÀÇ °³¿ä | |
protected AccessibleContext |
accessibleContext
ÇöÀç ¼³Á¤µÇ¾î ÀÖ´Â AccessibleContext ¿ÀºêÁ§Æ®ÀÔ´Ï´Ù. |
Ŭ·¡½º javax.swing. JComponent ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
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 |
»ý¼ºÀÚÀÇ °³¿ä | |
Box (int axis)
ÁöÁ¤µÈ ÃàÀ¸·Î µû¶ó ÄÄÆÛ³ÍÆ®¸¦ ´Ã¾î³õ´Â Box ¸¦ »ý¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
static Component |
createGlue ()
ºÒ°¡½ÃÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
static Box |
createHorizontalBox ()
ÄÄÆÛ³ÍÆ®¸¦ ¿ÞÂÊ¿¡¼ ¿À¸¥ÂÊ¿¡ ´Ã¾î³õ´Â Box ¸¦ »ý¼ºÇÕ´Ï´Ù. |
static Component |
createHorizontalGlue ()
¼öÆò ¹æÇâÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
static Component |
createHorizontalStrut (int width)
ºÒ°¡½ÃÀÇ °íÁ¤ÆøÄÄÆÛ³ÍÆ®¸¦ »ý¼ºÇÕ´Ï´Ù. |
static Component |
createRigidArea (Dimension d)
Ç×»ó ÁöÁ¤µÈ »çÀÌÁîÀÎ, ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®¸¦ »ý¼ºÇÕ´Ï´Ù. |
static Box |
createVerticalBox ()
ÄÄÆÛ³ÍÆ®¸¦ À§¿¡¼ ¹ØÀ¸·Î ´Ã¾î³õ´Â Box ¸¦ »ý¼ºÇÕ´Ï´Ù. |
static Component |
createVerticalGlue ()
¼öÁ÷ ¹æÇâÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
static Component |
createVerticalStrut (int height)
ºÒ°¡½ÃÀÇ, ³ôÀ̰¡ °íÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
AccessibleContext |
getAccessibleContext ()
ÀÌ ¹Ú½º¿¡ °ü·ÃÇÑ AccessibleContext ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
setLayout (LayoutManager l)
AWTError ¸¦ ½½·Î¿ì ÇÕ´Ï´Ù. |
Ŭ·¡½º java.awt. Container ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
add , add , add , add , add , addContainerListener , addImpl , 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 , remove , removeAll , removeContainerListener , setFocusCycleRoot , setFocusTraversalKeys , setFocusTraversalPolicy , transferFocusBackward , transferFocusDownCycle , validate , validateTree |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected AccessibleContext accessibleContext
»ý¼ºÀÚÀÇ »ó¼¼ |
public Box(int axis)
Box
¸¦ »ý¼ºÇÕ´Ï´Ù.
axis
- BoxLayout.X_AXIS
(ÄÄÆÛ³ÍÆ®¸¦ ¿ÞÂÊ¿¡¼ ¿À¸¥ÂÊ¿¡ ´Ã¾î³õ´Â´Ù) ¶Ç´Â BoxLayout.Y_AXIS
(À§¿¡¼ ¹ØÀ¸·Î ´Ã¾î³õ´Â´Ù)createHorizontalBox()
,
createVerticalBox()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public static Box createHorizontalBox()
Box
¸¦ »ý¼ºÇÕ´Ï´Ù.
public static Box createVerticalBox()
Box
¸¦ »ý¼ºÇÕ´Ï´Ù.
public static Component createRigidArea(Dimension d)
d
- ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®ÀÇ »çÀÌÁî
createGlue()
,
createHorizontalStrut(int)
,
createVerticalStrut(int)
public static Component createHorizontalStrut(int width)
width
- ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®ÀÇ Çȼ¿ ´ÜÀ§ÀÇ Æø. °ªÀº Á¦·Î ÀÌ»ó
createVerticalStrut(int)
,
createGlue()
,
createRigidArea(java.awt.Dimension)
public static Component createVerticalStrut(int height)
height
- ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®ÀÇ Çȼ¿ ´ÜÀ§ÀÇ ³ôÀÌ. °ªÀº Á¦·Î ÀÌ»ó
createHorizontalStrut(int)
,
createGlue()
,
createRigidArea(java.awt.Dimension)
public static Component createGlue()
¿¹¸¦ µé¾î, 1 °³ÀÇ ¼öÆò ¹Ú½º¿¡, °íÁ¤ »çÀÌÁîÀÇ ÄÄÆÛ³ÍÆ®°¡ 2 °³ Æ÷ÇԵǾî ÀÖ´Ù°í ÇÕ´Ï´Ù. ÀÌ ¹Ú½º¿¡ °ø°£ÀÌ Ãß°¡µÇ¾îµµ, °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®´Â Ä¿ÁöÁö ¾Ê½À´Ï´Ù. ÀÌ ¶§, Á¢ÂøÁ¦°¡ ¾ø´Â °æ¿ì, 2 ¹øÂ°ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ¿À¸¥ÂÊÀÇ °ø°£ÀÌ ³²½À´Ï´Ù. ¿©±â¼ Á¢ÂøÁ¦¸¦ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®ÀÇ »çÀÌ¿¡ µÎ¸é(ÀÚ), ³²Àº °ø°£À» Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®°¡ Â÷ÁöÇÕ´Ï´Ù. Á¢ÂøÁ¦¸¦ 1 ¹øÂ°ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®ÀÇ Àü¿¡ µÎ¸é(ÀÚ), ³²Àº °ø°£À» Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®°¡ Â÷ÁöÇØ 2 °³ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®´Â ¹Ú½ºÀÇ ¿À¸¥ÂÊÀ¸·Î ÀüÇØÁý´Ï´Ù. 1 ¹øÂ°ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®ÀÇ Àü, ¹× 2 ¹øÂ°ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®ÀÇ ÈÄ¿¡ Á¢ÂøÁ¦¸¦ µÎ¸é(ÀÚ), 2 °³ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®´Â ¹Ú½ºÀÇ Áß¾Ó¿¡ ÀüÇØÁý´Ï´Ù.
Á¢ÂøÁ¦¸¦ »ç¿ëÇÏ·Á¸é ,Box.createGlue
¸¦ È£ÃâÇØ, µ¹·ÁÁÖ¾îÁø ÄÄÆÛ³ÍÆ®¸¦ ÄÁÅ×À̳ʿ¡ Ãß°¡ÇÕ´Ï´Ù. Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¿¡´Â ÃÖ¼ÒÀÇ »çÀÌÁî, ȤÀº ÀûÀýÇÑ »çÀÌÁî°¡ ¾ø½À´Ï´Ù. ±× ¶§¹®¿¡, ¿©ºÐÀÇ °ø°£ÀÌ ¾ø´Â ÇÑ, °ø°£À» Â÷ÁöÇÒ °ÍÀº ¾ø½À´Ï´Ù. ¿©ºÐÀÇ °ø°£ÀÌ ÀÖÀ¸¸é, Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®´Â ¼öÆò ¹æÇâ, ¶Ç´Â ¼öÁ÷ ¹æÇâÀÇ ÀÌ¿ë °¡´ÉÇÑ °ø°£À» Â÷ÁöÇÕ´Ï´Ù. À̰ÍÀº Æø ȤÀº ³ôÀÌÀÇ ÃÖ´ëÄ¡ÀÇ ÁöÁ¤ÀÌ ¾ø´Â ÄÄÆÛ³ÍÆ®¿Í °°½À´Ï´Ù.
public static Component createHorizontalGlue()
public static Component createVerticalGlue()
public void setLayout(LayoutManager l)
Container
³»ÀÇ setLayout
l
- »ç¿ëÇÏ´Â ·¹À̾ƿô ¸Å´ÏÀúContainer.doLayout()
,
Container.getLayout()
public AccessibleContext getAccessibleContext()
Accessible
³»ÀÇ getAccessibleContext
JComponent
³»ÀÇ getAccessibleContext
|
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.