|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.TabbedPaneUI | +--javax.swing.plaf.basic.BasicTabbedPaneUI
TabbedPaneUI ÀÇ ±âº» Look & Feel ¿¡ ÀÇÇÑ ±¸ÇöÀÔ´Ï´Ù.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
class |
BasicTabbedPaneUI.FocusHandler
ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù. |
class |
BasicTabbedPaneUI.MouseHandler
ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù. |
class |
BasicTabbedPaneUI.PropertyChangeHandler
ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù. |
class |
BasicTabbedPaneUI.TabbedPaneLayout
ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù. |
class |
BasicTabbedPaneUI.TabSelectionHandler
ÀÌ ³»ºÎ Ŭ·¡½º´Â public ¿Í ¸¶Å© µË´Ï´Ù¸¸, À̰ÍÀº ÄÄÆÄÀÏ·¯ÀÇ ¹ö±×°¡ ¿øÀÎÀÔ´Ï´Ù. |
ÇʵåÀÇ °³¿ä | |
protected Rectangle |
calcRect
½ÇÇàÁß¿¡ ¸¹Àº ½Å±Ô Rectangles °¡ ±¸ÃàµÇ´Â °ÍÀ» ¸·±â À§ÇØ, ÀϹÝÀÇ ·¹À̾ƿô °è»ê¿¡ »ç¿ëµÇ´Â ±¸ÇüÀÔ´Ï´Ù. |
protected Insets |
contentBorderInsets
|
protected Color |
darkShadow
|
protected KeyStroke |
downKey
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. Java 2 Ç÷§Æû v1. 3 ½ÃÁ¡ |
protected Color |
focus
|
protected FocusListener |
focusListener
|
protected Color |
highlight
|
protected KeyStroke |
leftKey
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. Java 2 Ç÷§Æû v1. 3 ½ÃÁ¡ |
protected Color |
lightHighlight
|
protected int |
maxTabHeight
|
protected int |
maxTabWidth
|
protected MouseListener |
mouseListener
|
protected PropertyChangeListener |
propertyChangeListener
|
protected Rectangle [] |
rects
|
protected KeyStroke |
rightKey
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. Java 2 Ç÷§Æû v1. 3 ½ÃÁ¡ |
protected int |
runCount
|
protected int |
selectedRun
|
protected Insets |
selectedTabPadInsets
|
protected Color |
shadow
|
protected Insets |
tabAreaInsets
|
protected ChangeListener |
tabChangeListener
|
protected Insets |
tabInsets
|
protected JTabbedPane |
tabPane
|
protected int |
tabRunOverlay
|
protected int[] |
tabRuns
|
protected int |
textIconGap
|
protected KeyStroke |
upKey
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. Java 2 Ç÷§Æû v1. 3 ½ÃÁ¡ |
ÀÎÅÍÆäÀ̽º 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 |
»ý¼ºÀÚÀÇ °³¿ä | |
BasicTabbedPaneUI ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
protected void |
assureRectsCreated (int tabCount)
|
protected int |
calculateMaxTabHeight (int tabPlacement)
|
protected int |
calculateMaxTabWidth (int tabPlacement)
|
protected int |
calculateTabAreaHeight (int tabPlacement,
int horizRunCount,
int maxTabHeight)
|
protected int |
calculateTabAreaWidth (int tabPlacement,
int vertRunCount,
int maxTabWidth)
|
protected int |
calculateTabHeight (int tabPlacement,
int tabIndex,
int fontHeight)
|
protected int |
calculateTabWidth (int tabPlacement,
int tabIndex,
FontMetrics metrics)
|
protected ChangeListener |
createChangeListener ()
|
protected FocusListener |
createFocusListener ()
|
protected LayoutManager |
createLayoutManager ()
installUI ¿¡ ÀÇÇØ ±âµ¿µÇ¾îJTabbedPane ¸¦ °ü¸®Çϱâ À§ÇÑ ·¹À̾ƿô ¸Å´ÏÀú ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected MouseListener |
createMouseListener ()
|
protected PropertyChangeListener |
createPropertyChangeListener ()
|
static ComponentUI |
createUI (JComponent c)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI delegateÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected void |
expandTabRunsArray ()
|
protected Insets |
getContentBorderInsets (int tabPlacement)
|
protected FontMetrics |
getFontMetrics ()
|
protected Icon |
getIconForTab (int tabIndex)
|
Dimension |
getMaximumSize (JComponent c)
Look & Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ´ë »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getMinimumSize (JComponent c)
Look & Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ¼Ò »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getNextTabIndex (int base)
|
protected int |
getNextTabIndexInRun (int tabCount,
int base)
|
protected int |
getNextTabRun (int baseRun)
|
Dimension |
getPreferredSize (JComponent c)
Look & Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ÀûÀýÇÑ »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getPreviousTabIndex (int base)
|
protected int |
getPreviousTabIndexInRun (int tabCount,
int base)
|
protected int |
getPreviousTabRun (int baseRun)
|
protected int |
getRunForTab (int tabCount,
int tabIndex)
|
protected Insets |
getSelectedTabPadInsets (int tabPlacement)
|
protected Insets |
getTabAreaInsets (int tabPlacement)
|
protected Rectangle |
getTabBounds (int tabIndex,
Rectangle dest)
JTabbedPane ÄÄÆÛ³ÍÆ®ÀÇ ÁÂÇ¥ °ø°£³»ÀÇ, ÁöÁ¤µÈ ÅÇÀÇ °æ°è¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Rectangle |
getTabBounds (JTabbedPane pane,
int i)
ÁöÁ¤µÈ ÅÇ À妽ºÀÇ °æ°è¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected Insets |
getTabInsets (int tabPlacement,
int tabIndex)
|
protected int |
getTabLabelShiftX (int tabPlacement,
int tabIndex,
boolean isSelected)
|
protected int |
getTabLabelShiftY (int tabPlacement,
int tabIndex,
boolean isSelected)
|
int |
getTabRunCount (JTabbedPane pane)
|
protected int |
getTabRunIndent (int tabPlacement,
int run)
|
protected int |
getTabRunOffset (int tabPlacement,
int tabCount,
int tabIndex,
boolean forward)
|
protected int |
getTabRunOverlay (int tabPlacement)
|
protected View |
getTextViewForTab (int tabIndex)
ÁöÁ¤µÈ ÅÇÀ» À§Çؼ(¶§¹®¿¡) ¾ç½ÄÈµÈ ÅØ½ºÆ® (HTML)¸¦ Ç¥Çö Çϴµ¥ ÇÊ¿äÇÑ, ÅØ½ºÆ® View ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected Component |
getVisibleComponent ()
|
protected void |
installComponents ()
JTabbedPane ¿¡ ÇÊ¿äÇÑ ÀÓÀÇÀÇ ¼ºê ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼º ¹× ÀνºÅç ÇÕ´Ï´Ù. |
protected void |
installDefaults ()
|
protected void |
installKeyboardActions ()
|
protected void |
installListeners ()
|
void |
installUI (JComponent c)
Look & Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ±¸¼ºÇÕ´Ï´Ù. |
protected int |
lastTabInRun (int tabCount,
int run)
|
protected void |
layoutLabel (int tabPlacement,
FontMetrics metrics,
int tabIndex,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
navigateSelectedTab (int direction)
|
void |
paint (Graphics g,
JComponent c)
Look &Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ paint ÇÕ´Ï´Ù. |
protected void |
paintContentBorder (Graphics g,
int tabPlacement,
int selectedIndex)
|
protected void |
paintContentBorderBottomEdge (Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderLeftEdge (Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderRightEdge (Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderTopEdge (Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintFocusIndicator (Graphics g,
int tabPlacement,
Rectangle [] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
paintIcon (Graphics g,
int tabPlacement,
int tabIndex,
Icon icon,
Rectangle iconRect,
boolean isSelected)
|
protected void |
paintTab (Graphics g,
int tabPlacement,
Rectangle [] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect)
|
protected void |
paintTabArea (Graphics g,
int tabPlacement,
int selectedIndex)
ÅÇ areaÀÇ ÅÇÀ» paint ÇÕ´Ï´Ù. |
protected void |
paintTabBackground (Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintTabBorder (Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
°¢ ÅÇÀÇ ÁÖÀ§¿¡ º¸´õ¸¦ Ç¥Çö ÇÕ´Ï´Ù. |
protected void |
paintText (Graphics g,
int tabPlacement,
Font font,
FontMetrics metrics,
int tabIndex,
String title,
Rectangle textRect,
boolean isSelected)
|
protected static void |
rotateInsets (Insets topInsets,
Insets targetInsets,
int targetPlacement)
|
protected void |
selectAdjacentRunTab (int tabPlacement,
int tabIndex,
int offset)
|
protected void |
selectNextTab (int current)
|
protected void |
selectNextTabInRun (int current)
|
protected void |
selectPreviousTab (int current)
|
protected void |
selectPreviousTabInRun (int current)
|
protected void |
setVisibleComponent (Component component)
|
protected boolean |
shouldPadTabRun (int tabPlacement,
int run)
|
protected boolean |
shouldRotateTabRuns (int tabPlacement)
|
int |
tabForCoordinate (JTabbedPane pane,
int x,
int y)
JTabbedPane ÁÂÇ¥ °ø°£³»ÀÇ ÁöÁ¤µÈ Á¡°ú ±³Â÷ÇÏ´Â ÅÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected void |
uninstallComponents ()
ÀνºÅç µÈ ÀÓÀÇÀÇ ¼ºê ÄÄÆÛ³ÍÆ®¸¦, JTabbedPane ·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
protected void |
uninstallDefaults ()
|
protected void |
uninstallKeyboardActions ()
|
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 JTabbedPane tabPane
protected Color highlight
protected Color lightHighlight
protected Color shadow
protected Color darkShadow
protected Color focus
protected int textIconGap
protected int tabRunOverlay
protected Insets tabInsets
protected Insets selectedTabPadInsets
protected Insets tabAreaInsets
protected Insets contentBorderInsets
protected KeyStroke upKey
protected KeyStroke downKey
protected KeyStroke leftKey
protected KeyStroke rightKey
protected int[] tabRuns
protected int runCount
protected int selectedRun
protected Rectangle [] rects
protected int maxTabHeight
protected int maxTabWidth
protected ChangeListener tabChangeListener
protected PropertyChangeListener propertyChangeListener
protected MouseListener mouseListener
protected FocusListener focusListener
protected transient Rectangle calcRect
»ý¼ºÀÚÀÇ »ó¼¼ |
public BasicTabbedPaneUI()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public static ComponentUI createUI(JComponent c)
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 LayoutManager createLayoutManager()
installUI
¿¡ ÀÇÇØ ±âµ¿µÇ¾îJTabbedPane
¸¦ °ü¸®Çϱâ À§ÇÑ ·¹À̾ƿô ¸Å´ÏÀú ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
BasicTabbedPaneUI.TabbedPaneLayout
,
JTabbedPane.getTabLayoutPolicy()
protected void installComponents()
protected void uninstallComponents()
protected void installDefaults()
protected void uninstallDefaults()
protected void installListeners()
protected void uninstallListeners()
protected MouseListener createMouseListener()
protected FocusListener createFocusListener()
protected ChangeListener createChangeListener()
protected PropertyChangeListener createPropertyChangeListener()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
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
ÀÇ ±â¼ú: null
°¡ µ¹·ÁÁÖ¾îÁö´Â °æ¿ì, ÃÖ¼Ò »çÀÌÁî´Â ´ë½Å¿¡ ÄÄÆÛ³ÍÆ®ÀÇ ·¹À̾ƿô ¸Å´ÏÀú¿¡ ÀÇÇØ °è»êµË´Ï´Ù (À̰ÍÀº ƯÁ¤ÀÇ ·¹À̾ƿô ¸Å´ÏÀú¸¦ ÀνºÅç µÇ¾î ÀÖ´Â ÄÄÆÛ³ÍÆ®ÀÇ °æ¿ì¿¡ Ãßõ ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù). ÀÌ ¸Þ¼ÒµåÀÇ µðÆúÆ® ±¸ÇöÀº getPreferredSize
¸¦ È£ÃâÇØ, ±× °ªÀ» µ¹·ÁÁÝ´Ï´Ù.
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)
public void paint(Graphics g, JComponent c)
ComponentUI
ÀÇ ±â¼ú: ComponentUI.update
¸Þ¼Òµå·ÎºÎÅÍ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®°¡ paint µÉ ¶§ ºÒ·Á °©´Ï´Ù. ¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ÁöÁ¤µÈ Graphics
¿ÀºêÁ§Æ®¸¦ »ç¿ëÇØ ÄÄÆÛ³ÍÆ®ÀÇ ³»¿ëÀ» Ç¥Çö ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
ComponentUI
³»ÀÇ paint
g
- paintó°¡ µÇ´Â Graphics
¹®¸Æc
- paint µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
Graphics
¿ÀºêÁ§Æ®ÀÏ Çʿ䰡 ÀÖ½À´Ï´Ù. ÅÇÀÇ ¹èÄ¡ ¹æ¹ýÀº JTabbedPane.TOP
,JTabbedPane.BOTTOM
,JTabbedPane.LEFT
, ¶Ç´Â JTabbedPane.RIGHT
ÀÇ ¾î¶² °ÍÀΰ¡°¡ µË´Ï´Ù. ¼±ÅÃµÈ À妽º´Â À¯È¿ÇÑ ÅÇ ±¸È¹ ÅÇ À妽º (0 ÀÌ»ó, ÅǼö¸¶À̳ʽº 1 ÀÌÇÏ)°¡ µÇ´ÂÁö ÇöÀç ÅÇÀÌ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì,-1 °¡ µÉ Çʿ䰡 ÀÖ½À´Ï´Ù. ¹«È¿ÀÎ ÆÄ¶ó¹ÌÅÍÀÇ Ã³¸®´Â ÁöÁ¤µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù.
g
- ·»´õ¸µ¿¡ »ç¿ëÇÏ´Â ±×·¡ÇȽº ¿ÀºêÁ§Æ®tabPlacement
- JTabbedPane ³»ÀÇ ÅÇÀÇ ¹èÄ¡ ¹æ¹ýselectedIndex
- ¼±ÅÃµÈ ÄÄÆÛ³ÍÆ®ÀÇ ÅÇ À妽ºprotected void paintTab(Graphics g, int tabPlacement, Rectangle [] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
protected void paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle [] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
public Rectangle getTabBounds(JTabbedPane pane, int i)
TabbedPaneUI
³»ÀÇ getTabBounds
public int getTabRunCount(JTabbedPane pane)
TabbedPaneUI
³»ÀÇ getTabRunCount
public int tabForCoordinate(JTabbedPane pane, int x, int y)
TabbedPaneUI
³»ÀÇ tabForCoordinate
protected Rectangle getTabBounds(int tabIndex, Rectangle dest)
Rectangle
ÀνºÅϽº°¡ µÉ Çʿ䰡 ÀÖ½À´Ï´Ù. ¹«È¿ÀÎ ÆÄ¶ó¹ÌÅÍÀÇ Ã³¸®´Â ÁöÁ¤µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù.
tabIndex
- ÅÇÀÇ À妽ºdest
- °á°ú°¡ ³õ¿©Áö´Â ±¸Çü
protected Component getVisibleComponent()
protected void setVisibleComponent(Component component)
protected void assureRectsCreated(int tabCount)
protected void expandTabRunsArray()
protected int getRunForTab(int tabCount, int tabIndex)
protected int lastTabInRun(int tabCount, int run)
protected int getTabRunOverlay(int tabPlacement)
protected int getTabRunIndent(int tabPlacement, int run)
protected boolean shouldPadTabRun(int tabPlacement, int run)
protected boolean shouldRotateTabRuns(int tabPlacement)
protected Icon getIconForTab(int tabIndex)
protected View getTextViewForTab(int tabIndex)
tabIndex
- ÅÇÀÇ À妽º
protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight)
protected int calculateMaxTabHeight(int tabPlacement)
protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)
protected int calculateMaxTabWidth(int tabPlacement)
protected int calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight)
protected int calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth)
protected Insets getTabInsets(int tabPlacement, int tabIndex)
protected Insets getSelectedTabPadInsets(int tabPlacement)
protected Insets getTabAreaInsets(int tabPlacement)
protected Insets getContentBorderInsets(int tabPlacement)
protected FontMetrics getFontMetrics()
protected void navigateSelectedTab(int direction)
protected void selectNextTabInRun(int current)
protected void selectPreviousTabInRun(int current)
protected void selectNextTab(int current)
protected void selectPreviousTab(int current)
protected void selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset)
protected int getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward)
protected int getPreviousTabIndex(int base)
protected int getNextTabIndex(int base)
protected int getNextTabIndexInRun(int tabCount, int base)
protected int getPreviousTabIndexInRun(int tabCount, int base)
protected int getPreviousTabRun(int baseRun)
protected int getNextTabRun(int baseRun)
protected static void rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)
|
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.