JavaTM Platform
Standard Ed. 6

javax.swing.plaf.basic
클래스 BasicTabbedPaneUI

java.lang.Object 
  상위를 확장 javax.swing.plaf.ComponentUI 
      상위를 확장 javax.swing.plaf.TabbedPaneUI 
          상위를 확장 javax.swing.plaf.basic.BasicTabbedPaneUI
모든 구현된 인터페이스:
SwingConstants
직계의 기존의 서브 클래스:
MetalTabbedPaneUI


public class BasicTabbedPaneUI
extends TabbedPaneUI
implements SwingConstants

TabbedPaneUI 의 기본 Look & Feel 에 의한 구현입니다.


상자의 클래스의 개요
 class BasicTabbedPaneUI.FocusHandler
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicTabbedPaneUI.MouseHandler
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicTabbedPaneUI.PropertyChangeHandler
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicTabbedPaneUI.TabbedPaneLayout
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicTabbedPaneUI.TabSelectionHandler
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 
필드의 개요
protected  Rectangle calcRect
          실행중에 많은 신규 Rectangle 가 구축되는 것을 막기 위해, 일반의 레이아웃 계산에 사용되는 구형입니다.
protected  Insets contentBorderInsets
           
protected  Color darkShadow
           
protected  KeyStroke downKey
          추천 되고 있지 않습니다.  Java 2 플랫폼 1.3 이후 사용되고 있지 않습니다.
protected  Color focus
           
protected  FocusListener focusListener
           
protected  Color highlight
           
protected  KeyStroke leftKey
          추천 되고 있지 않습니다.  Java 2 플랫폼 1.3 이후 사용되고 있지 않습니다.
protected  Color lightHighlight
           
protected  int maxTabHeight
           
protected  int maxTabWidth
           
protected  MouseListener mouseListener
           
protected  PropertyChangeListener propertyChangeListener
           
protected  Rectangle [] rects
           
protected  KeyStroke rightKey
          추천 되고 있지 않습니다.  Java 2 플랫폼 1.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 플랫폼 1.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 ()
           
protected  JButton createScrollButton (int direction)
          특정의 방향으로 탭을 스크롤 할 수 있도록(듯이) 하는 JButton 를 생성해, 그것을 돌려줍니다.
static ComponentUI createUI (JComponent  c)
           
protected  void expandTabRunsArray ()
           
protected  int getBaseline (int tab)
          지정된 탭의 baseline를 돌려줍니다.
 int getBaseline (JComponent  c, int width, int height)
          baseline를 돌려줍니다.
protected  int getBaselineOffset ()
          baseline의 오프셋(offset)량을 돌려줍니다.
 Component.BaselineResizeBehavior getBaselineResizeBehavior (JComponent  c)
          사이즈의 변화에 맞추어 컴퍼넌트의 baseline가 어떻게 변화하는지를 나타내는 열거를 돌려줍니다.
protected  Insets getContentBorderInsets (int tabPlacement)
           
protected  int getFocusIndex ()
          포커스가 있는 탭의 인덱스를 돌려줍니다.
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)
           
protected  int getPreviousTabIndex (int base)
           
protected  int getPreviousTabIndexInRun (int tabCount, int base)
           
protected  int getPreviousTabRun (int baseRun)
           
protected  int getRolloverTab ()
          마우스가 현재 놓여져 있는 탭을 돌려주어, 마우스가 탭 위에 없는 경우는 -1 을 돌려줍니다.
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)를 draw 하는데 필요한, 텍스트 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 에 적절한, 지정된 컴퍼넌트를 그립니다.
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)
          탭 영역의 탭을 그립니다.
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)
           각 탭의 주위에 경계를 draw 합니다.
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 setRolloverTab (int index)
          마우스가 현재 놓여져 있는 탭을 index 로 설정합니다.
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 , getPreferredSize , update
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

필드의 상세

tabPane

protected JTabbedPane  tabPane

highlight

protected Color  highlight

lightHighlight

protected Color  lightHighlight

shadow

protected Color  shadow

darkShadow

protected Color  darkShadow

focus

protected Color  focus

textIconGap

protected int textIconGap

tabRunOverlay

protected int tabRunOverlay

tabInsets

protected Insets  tabInsets

selectedTabPadInsets

protected Insets  selectedTabPadInsets

tabAreaInsets

protected Insets  tabAreaInsets

contentBorderInsets

protected Insets  contentBorderInsets

upKey

@Deprecated 
protected KeyStroke  upKey
추천 되고 있지 않습니다.  Java 2 플랫폼 1.3 이후 사용되고 있지 않습니다.
문서로부터 삭제 끝난 이 필드는, Java 2 플랫폼 1.3 에서는 사용되지 않습니다. 키 바인딩은 LookAndFeel 에 의해 정의됩니다. 자세한 것은 키 바인딩의 스펙을 참조해 주세요.


downKey

@Deprecated 
protected KeyStroke  downKey
추천 되고 있지 않습니다.  Java 2 플랫폼 1.3 이후 사용되고 있지 않습니다.
문서로부터 삭제 끝난 이 필드는, Java 2 플랫폼 1.3 에서는 사용되지 않습니다. 키 바인딩은 LookAndFeel 에 의해 정의됩니다. 자세한 것은 키 바인딩의 스펙을 참조해 주세요.


leftKey

@Deprecated 
protected KeyStroke  leftKey
추천 되고 있지 않습니다.  Java 2 플랫폼 1.3 이후 사용되고 있지 않습니다.
문서로부터 삭제 끝난 이 필드는, Java 2 플랫폼 1.3 에서는 사용되지 않습니다. 키 바인딩은 LookAndFeel 에 의해 정의됩니다. 자세한 것은 키 바인딩의 스펙을 참조해 주세요.


rightKey

@Deprecated 
protected KeyStroke  rightKey
추천 되고 있지 않습니다.  Java 2 플랫폼 1.3 이후 사용되고 있지 않습니다.
문서로부터 삭제 끝난 이 필드는, Java 2 플랫폼 1.3 에서는 사용되지 않습니다. 키 바인딩은 LookAndFeel 에 의해 정의됩니다. 자세한 것은 키 바인딩의 스펙을 참조해 주세요.


tabRuns

protected int[] tabRuns

runCount

protected int runCount

selectedRun

protected int selectedRun

rects

protected Rectangle [] rects

maxTabHeight

protected int maxTabHeight

maxTabWidth

protected int maxTabWidth

tabChangeListener

protected ChangeListener  tabChangeListener

propertyChangeListener

protected PropertyChangeListener  propertyChangeListener

mouseListener

protected MouseListener  mouseListener

focusListener

protected FocusListener  focusListener

calcRect

protected transient Rectangle  calcRect
실행중에 많은 신규 Rectangle 가 구축되는 것을 막기 위해, 일반의 레이아웃 계산에 사용되는 구형입니다.

생성자 의 상세

BasicTabbedPaneUI

public BasicTabbedPaneUI()
메소드의 상세

createUI

public static ComponentUI  createUI(JComponent  c)

installUI

public void installUI(JComponent  c)
클래스 ComponentUI 의 기술:
Look & Feel 에 적절한, 지정된 컴퍼넌트를 구성합니다. 이 메소드는,ComponentUI 인스턴스가, 지정된 컴퍼넌트의 UI 위양으로서 인스톨 되고 있을 때 불려 갑니다. 이 메소드는, 이하를 포함한 Look & Feel 용의 컴퍼넌트를 완전하게 구성할 필요가 있습니다.
  1. 칼라, 폰트, 경계, 아이콘, 불투명함 등 모든 디폴트 프로퍼티의 값을 컴퍼넌트에 인스톨 한다. 가능한 경우는, 클라이언트 프로그램에 의해 초기화된 프로퍼티의 값을 오버라이드(override) 해서는 안 된다
  2. 필요에 따라서, 컴퍼넌트에 LayoutManager 를 인스톨 한다
  3. 필요한 서브 컴퍼넌트를, 컴퍼넌트에 작성 또는 추가한다
  4. 이벤트 청취자를, 컴퍼넌트에 작성 또는 인스톨 한다
  5. 컴퍼넌트의 프로퍼티의 변경을 적절히 검출해, 응답하기 위해서,PropertyChangeListener 를 컴퍼넌트에 작성 또는 인스톨 한다
  6. 키보드 UI (니마닉(mnemonic), traversal등)를, 컴퍼넌트에 인스톨 한다
  7. 적절한 인스턴스의 데이터를 초기화한다

오버라이드(override):
클래스 ComponentUI 내의 installUI
파라미터:
c - UI 위양이 인스톨 되고 있는 컴퍼넌트
관련 항목:
ComponentUI.uninstallUI(javax.swing.JComponent) , JComponent.setUI(javax.swing.plaf.ComponentUI) , JComponent.updateUI()

uninstallUI

public void uninstallUI(JComponent  c)
클래스 ComponentUI 의 기술:
installUI 시에, 지정된 컴퍼넌트로 구성된 내용을 취소합니다. 이 메소드는, 지정된 컴퍼넌트의 UI 위양으로서의 UIComponent 인스턴스가 삭제되고 있을 때 불려 갑니다. 이 메소드는,installUI 에 의해 실행된 구성을 바탕으로 되돌릴 필요가 있습니다. 이 경우,JComponent 인스턴스를 깨끗한 상태 (여분의 청취자나, Look & Feel 고유의 프로퍼티 객체가 남지 않게)로 하도록(듯이) 충분히 주의해 주세요. 순서에는 다음의 것이 있습니다.
  1. UI 로서 설정된 모든 경계를, 컴퍼넌트로부터 삭제한다
  2. UI 로서 설정된 모든 레이아웃 매니저를, 컴퍼넌트로부터 삭제한다
  3. UI 로서 추가된 모든 서브 컴퍼넌트를, 컴퍼넌트로부터 삭제한다
  4. UI 로서 추가된 모든 이벤트/청취자를, 컴퍼넌트로부터 삭제한다
  5. UI 로서 인스톨 된 모든 키보드 UI 를, 컴퍼넌트로부터 삭제한다
  6. GC 용으로 할당할 수 있던 모든 인스턴스의 데이터 객체를 무효로 한다

오버라이드(override):
클래스 ComponentUI 내의 uninstallUI
파라미터:
c - 이 UI 위양을 삭제하는 컴퍼넌트. 이 인수는 일반적으로 무시되지만, UI 객체에 상태가 없고, 복수의 컴퍼넌트에 공유되고 있는 경우는 사용되는 일이 있는
관련 항목:
ComponentUI.installUI(javax.swing.JComponent) , JComponent.updateUI()

createLayoutManager

protected LayoutManager  createLayoutManager()
installUI 에 의해 기동되어JTabbedPane 를 관리하기 위한 레이아웃 매니저 객체를 작성합니다.

반환값:
레이아웃 매니저 객체
관련 항목:
BasicTabbedPaneUI.TabbedPaneLayout , JTabbedPane.getTabLayoutPolicy()

installComponents

protected void installComponents()
JTabbedPane 에 필요한 임의의 서브 컴퍼넌트를 작성 및 인스톨 합니다. installUI 에 의해 불려 갑니다.

도입된 버젼:
1.4

createScrollButton

protected JButton  createScrollButton(int direction)
특정의 방향으로 탭을 스크롤 할 수 있도록(듯이) 하는 JButton 를 생성해, 그것을 돌려줍니다. 반환된 JButton 는 UIResource 의 인스턴스가 아니면 안됩니다.

파라미터:
direction - SwingConstants 정수, SOUTH, NORTH, EAST, 또는 WEST 의 언젠가
반환값:
사용자를 위한 위젯
예외:
IllegalArgumentException - direction 가 NORTH, SOUTH, EAST, 또는 WEST 의 어떤 것도 아닌 경우
도입된 버젼:
1.5
관련 항목:
JTabbedPane.setTabPlacement(int) , SwingConstants

uninstallComponents

protected void uninstallComponents()
인스톨 된 임의의 서브 컴퍼넌트를, JTabbedPane 로부터 삭제합니다. uninstallUI 에 의해 불려 갑니다.

도입된 버젼:
1.4

installDefaults

protected void installDefaults()

uninstallDefaults

protected void uninstallDefaults()

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

createMouseListener

protected MouseListener  createMouseListener()

createFocusListener

protected FocusListener  createFocusListener()

createChangeListener

protected ChangeListener  createChangeListener()

createPropertyChangeListener

protected PropertyChangeListener  createPropertyChangeListener()

installKeyboardActions

protected void installKeyboardActions()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

setRolloverTab

protected void setRolloverTab(int index)
마우스가 현재 놓여져 있는 탭을 index 로 설정합니다. 마우스를 더 이상 탭 위에 두지 않는 경우는,index 를 -1 로 합니다. 건네받은 인덱스가 유효한 탭을 식별할지 어떨지의 확인은 행해지지 않습니다.

파라미터:
index - 마우스가 놓여져 있는 탭의 인덱스
도입된 버젼:
1.5

getRolloverTab

protected int getRolloverTab()
마우스가 현재 놓여져 있는 탭을 돌려주어, 마우스가 탭 위에 없는 경우는 -1 을 돌려줍니다.

반환값:
마우스가 현재 놓여져 있는 탭. 마우스가 탭 위에 없는 경우는 -1
도입된 버젼:
1.5

getMinimumSize

public Dimension  getMinimumSize(JComponent  c)
클래스 ComponentUI 의 기술:
Look & Feel 에 적절한, 지정된 컴퍼넌트의 최소 사이즈를 돌려줍니다. null 가 반환되는 경우, 최소 사이즈는 대신에 컴퍼넌트의 레이아웃 매니저에 의해 계산됩니다 (이것은, 특정의 레이아웃 매니저를 인스톨 되어 있는 컴퍼넌트의 경우에 추천 하는 방법입니다). 이 메소드의 디폴트 구현은 getPreferredSize 를 호출해, 그 값을 돌려줍니다.

오버라이드(override):
클래스 ComponentUI 내의 getMinimumSize
파라미터:
c - 최소 사이즈가 조회되는 컴퍼넌트. 이 인수는 일반적으로 무시되지만, UI 객체에 상태가 없고, 복수의 컴퍼넌트에 공유되고 있는 경우는 사용되는 일이 있다
반환값:
Dimension 객체, 또는 null
관련 항목:
JComponent.getMinimumSize() , LayoutManager.minimumLayoutSize(java.awt.Container) , ComponentUI.getPreferredSize(javax.swing.JComponent)

getMaximumSize

public Dimension  getMaximumSize(JComponent  c)
클래스 ComponentUI 의 기술:
Look & Feel 에 적절한, 지정된 컴퍼넌트의 최대 사이즈를 돌려줍니다. null 가 반환되는 경우, 최대 사이즈는 대신에 컴퍼넌트의 레이아웃 매니저에 의해 계산됩니다 (이것은, 특정의 레이아웃 매니저를 인스톨 되어 있는 컴퍼넌트의 경우에 추천 하는 방법입니다). 이 메소드의 디폴트 구현은 getPreferredSize 를 호출해, 그 값을 돌려줍니다.

오버라이드(override):
클래스 ComponentUI 내의 getMaximumSize
파라미터:
c - 최대 사이즈가 조회되는 컴퍼넌트. 이 인수는 일반적으로 무시되지만, UI 객체에 상태가 없고, 복수의 컴퍼넌트에 공유되고 있는 경우는 사용되는 일이 있다
반환값:
Dimension 객체, 또는 null
관련 항목:
JComponent.getMaximumSize() , LayoutManager2.maximumLayoutSize(java.awt.Container)

getBaseline

public int getBaseline(JComponent  c,
                       int width,
                       int height)
baseline를 돌려줍니다.

오버라이드(override):
클래스 ComponentUI 내의 getBaseline
파라미터:
c - 요구되는 JComponent baseline
width - baseline를 취득하는 폭
height - baseline를 취득하는 높이
반환값:
baseline 또는 0 보다 작은 값 (적절한 baseline가 존재하지 않는다)
예외:
NullPointerException - cnull 의 경우
IllegalArgumentException - 폭 또는 높이가 0 보다 작은 경우
도입된 버젼:
1.6
관련 항목:
JComponent.getBaseline(int, int)

getBaselineResizeBehavior

public Component.BaselineResizeBehavior  getBaselineResizeBehavior(JComponent  c)
사이즈의 변화에 맞추어 컴퍼넌트의 baseline가 어떻게 변화하는지를 나타내는 열거를 돌려줍니다.

오버라이드(override):
클래스 ComponentUI 내의 getBaselineResizeBehavior
파라미터:
c - baseline의 사이즈 변경의 동작을 돌려주는 JComponent
반환값:
컴퍼넌트의 사이즈 변경에 수반하는 baseline의 변화를 나타낸다 열거형의 값
예외:
NullPointerException - cnull 의 경우
도입된 버젼:
1.6
관련 항목:
JComponent.getBaseline(int, int)

getBaseline

protected int getBaseline(int tab)
지정된 탭의 baseline를 돌려줍니다.

파라미터:
tab - baseline를 취득하는 탭의 인덱스
반환값:
baseline 또는 0 보다 작은 값 (적절한 baseline가 존재하지 않는다)
예외:
IndexOutOfBoundsException - index 가 범위외에 있는 경우 (인덱스가 0 보다 작은 || 인덱스가 탭의 총수 이상)
도입된 버젼:
1.6

getBaselineOffset

protected int getBaselineOffset()
baseline의 오프셋(offset)량을 돌려줍니다. 이것은, 일반적으로,getTabLabelShiftY 와 같습니다.

반환값:
baseline의 오프셋(offset)량
도입된 버젼:
1.6

paint

public void paint(Graphics  g,
                  JComponent  c)
클래스 ComponentUI 의 기술:
Look &Feel 에 적절한, 지정된 컴퍼넌트를 그립니다. 이 메소드는 ComponentUI.update 메소드로부터, 지정된 컴퍼넌트가 페인트 될 때 불려 갑니다. 서브 클래스는, 이 메소드를 오버라이드(override) 해, 지정된 Graphics 객체를 사용해 컴퍼넌트의 내용을 draw 할 필요가 있습니다.

오버라이드(override):
클래스 ComponentUI 내의 paint
파라미터:
g - 페인트 대상의 Graphics 문맥
c - 페인트 되는 컴퍼넌트. 이 인수는 일반적으로 무시되지만, UI 객체에 상태가 없고, 복수의 컴퍼넌트에 공유되고 있는 경우는 사용되는 일이 있는
관련 항목:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

paintTabArea

protected void paintTabArea(Graphics  g,
                            int tabPlacement,
                            int selectedIndex)
탭 영역의 탭을 그립니다. paint()에 의해 기동됩니다. 그래픽스 파라미터는, 유효한 Graphics 객체일 필요가 있습니다. 탭 배치는,JTabbedPane.TOP,JTabbedPane.BOTTOM,JTabbedPane.LEFT, 또는 JTabbedPane.RIGHT 의 머지않아인가입니다. 선택된 인덱스는, 유효한 탭 구획 탭 인덱스 (0 이상, 탭수마이너스 1 이하)가 되는지, 현재 탭이 선택되어 있지 않은 경우,-1 가 될 필요가 있습니다. 무효인 파라미터의 처리는 지정되고 있지 않습니다.

파라미터:
g - 렌더링에 사용하는 그래픽스 객체
tabPlacement - JTabbedPane 내의 탭의 배치 방법
selectedIndex - 선택된 컴퍼넌트의 탭 인덱스
도입된 버젼:
1.4

paintTab

protected void paintTab(Graphics  g,
                        int tabPlacement,
                        Rectangle [] rects,
                        int tabIndex,
                        Rectangle  iconRect,
                        Rectangle  textRect)

layoutLabel

protected void layoutLabel(int tabPlacement,
                           FontMetrics  metrics,
                           int tabIndex,
                           String  title,
                           Icon  icon,
                           Rectangle  tabRect,
                           Rectangle  iconRect,
                           Rectangle  textRect,
                           boolean isSelected)

paintIcon

protected void paintIcon(Graphics  g,
                         int tabPlacement,
                         int tabIndex,
                         Icon  icon,
                         Rectangle  iconRect,
                         boolean isSelected)

paintText

protected void paintText(Graphics  g,
                         int tabPlacement,
                         Font  font,
                         FontMetrics  metrics,
                         int tabIndex,
                         String  title,
                         Rectangle  textRect,
                         boolean isSelected)

getTabLabelShiftX

protected int getTabLabelShiftX(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)

getTabLabelShiftY

protected int getTabLabelShiftY(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)

paintFocusIndicator

protected void paintFocusIndicator(Graphics  g,
                                   int tabPlacement,
                                   Rectangle [] rects,
                                   int tabIndex,
                                   Rectangle  iconRect,
                                   Rectangle  textRect,
                                   boolean isSelected)

paintTabBorder

protected void paintTabBorder(Graphics  g,
                              int tabPlacement,
                              int tabIndex,
                              int x,
                              int y,
                              int w,
                              int h,
                              boolean isSelected)
각 탭의 주위에 경계를 draw 합니다. 이 함수는, 동시에 탭의 백그라운드도 draw 합니다만, 그것은 다른 장소에서 행해집니다.


paintTabBackground

protected void paintTabBackground(Graphics  g,
                                  int tabPlacement,
                                  int tabIndex,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  boolean isSelected)

paintContentBorder

protected void paintContentBorder(Graphics  g,
                                  int tabPlacement,
                                  int selectedIndex)

paintContentBorderTopEdge

protected void paintContentBorderTopEdge(Graphics  g,
                                         int tabPlacement,
                                         int selectedIndex,
                                         int x,
                                         int y,
                                         int w,
                                         int h)

paintContentBorderLeftEdge

protected void paintContentBorderLeftEdge(Graphics  g,
                                          int tabPlacement,
                                          int selectedIndex,
                                          int x,
                                          int y,
                                          int w,
                                          int h)

paintContentBorderBottomEdge

protected void paintContentBorderBottomEdge(Graphics  g,
                                            int tabPlacement,
                                            int selectedIndex,
                                            int x,
                                            int y,
                                            int w,
                                            int h)

paintContentBorderRightEdge

protected void paintContentBorderRightEdge(Graphics  g,
                                           int tabPlacement,
                                           int selectedIndex,
                                           int x,
                                           int y,
                                           int w,
                                           int h)

getTabBounds

public Rectangle  getTabBounds(JTabbedPane  pane,
                              int i)
지정된 탭 인덱스의 경계를 돌려줍니다. 경계는, JTabbedPane 의 좌표 공간을 기준으로 합니다.

정의:
클래스 TabbedPaneUI 내의 getTabBounds

getTabRunCount

public int getTabRunCount(JTabbedPane  pane)
정의:
클래스 TabbedPaneUI 내의 getTabRunCount

tabForCoordinate

public int tabForCoordinate(JTabbedPane  pane,
                            int x,
                            int y)
JTabbedPane 좌표 공간내의 지정된 점과 교차하는 탭 인덱스를 돌려줍니다.

정의:
클래스 TabbedPaneUI 내의 tabForCoordinate

getTabBounds

protected Rectangle  getTabBounds(int tabIndex,
                                 Rectangle  dest)
JTabbedPane 컴퍼넌트의 좌표 공간내의, 지정된 탭의 경계를 돌려줍니다. 탭 rects 는, 디폴트에서는, draw 되는 컴퍼넌트의 좌표 공간내에 정의되어(WRAP_TAB_LAYOUT 를 위한) JTabbedPane, 또는 (SCROLL_TAB_LAYOUT 을 위한) ScrollableTabPanel 등에 되므로, 이 메소드가 필요하게 됩니다. 탭의 구형이 JTabbedPane 자체에 관련해, (매회 신규의 Rectangle 를 인스턴스화해 돌려주는 것이 아니라,) 지정한 Rectangle 객체내에 결과를 둘 필요가 있는 경우에, 이 메소드는 사용됩니다. 탭의 인덱스 파라미터는, 유효한 탭 구획 탭 인덱스 (0 이상, 탭수마이너스 1 이하)가 될 필요가 있습니다. 출력처의 구형 파라미터는, 유효한 Rectangle 인스턴스가 될 필요가 있습니다. 무효인 파라미터의 처리는 지정되고 있지 않습니다.

파라미터:
tabIndex - 탭의 인덱스
dest - 결과가 놓여지는 구형
반환값:
결과적으로 얻을 수 있는 구형
도입된 버젼:
1.4

getVisibleComponent

protected Component  getVisibleComponent()

setVisibleComponent

protected void setVisibleComponent(Component  component)

assureRectsCreated

protected void assureRectsCreated(int tabCount)

expandTabRunsArray

protected void expandTabRunsArray()

getRunForTab

protected int getRunForTab(int tabCount,
                           int tabIndex)

lastTabInRun

protected int lastTabInRun(int tabCount,
                           int run)

getTabRunOverlay

protected int getTabRunOverlay(int tabPlacement)

getTabRunIndent

protected int getTabRunIndent(int tabPlacement,
                              int run)

shouldPadTabRun

protected boolean shouldPadTabRun(int tabPlacement,
                                  int run)

shouldRotateTabRuns

protected boolean shouldRotateTabRuns(int tabPlacement)

getIconForTab

protected Icon  getIconForTab(int tabIndex)

getTextViewForTab

protected View  getTextViewForTab(int tabIndex)
지정된 탭을 위해서(때문에) 양식화된 텍스트 (HTML)를 draw 하는데 필요한, 텍스트 View 객체를 돌려줍니다. 또는, 이 탭으로 특별한 텍스트의 렌더링이 필요없는 경우, null 를 돌려줍니다. 탭내의 HTML 렌더링을 지원하기 위해서 제공됩니다.

파라미터:
tabIndex - 탭의 인덱스
반환값:
탭의 텍스트를 draw하기 위한 텍스트 화면, 또는 특별한 렌더링이 필요하지 않은 경우 null
도입된 버젼:
1.4

calculateTabHeight

protected int calculateTabHeight(int tabPlacement,
                                 int tabIndex,
                                 int fontHeight)

calculateMaxTabHeight

protected int calculateMaxTabHeight(int tabPlacement)

calculateTabWidth

protected int calculateTabWidth(int tabPlacement,
                                int tabIndex,
                                FontMetrics  metrics)

calculateMaxTabWidth

protected int calculateMaxTabWidth(int tabPlacement)

calculateTabAreaHeight

protected int calculateTabAreaHeight(int tabPlacement,
                                     int horizRunCount,
                                     int maxTabHeight)

calculateTabAreaWidth

protected int calculateTabAreaWidth(int tabPlacement,
                                    int vertRunCount,
                                    int maxTabWidth)

getTabInsets

protected Insets  getTabInsets(int tabPlacement,
                              int tabIndex)

getSelectedTabPadInsets

protected Insets  getSelectedTabPadInsets(int tabPlacement)

getTabAreaInsets

protected Insets  getTabAreaInsets(int tabPlacement)

getContentBorderInsets

protected Insets  getContentBorderInsets(int tabPlacement)

getFontMetrics

protected FontMetrics  getFontMetrics()

navigateSelectedTab

protected void navigateSelectedTab(int direction)

selectNextTabInRun

protected void selectNextTabInRun(int current)

selectPreviousTabInRun

protected void selectPreviousTabInRun(int current)

selectNextTab

protected void selectNextTab(int current)

selectPreviousTab

protected void selectPreviousTab(int current)

selectAdjacentRunTab

protected void selectAdjacentRunTab(int tabPlacement,
                                    int tabIndex,
                                    int offset)

getFocusIndex

protected int getFocusIndex()
포커스가 있는 탭의 인덱스를 돌려줍니다.

반환값:
포커스가 있는 탭의 인덱스
도입된 버젼:
1.5

getTabRunOffset

protected int getTabRunOffset(int tabPlacement,
                              int tabCount,
                              int tabIndex,
                              boolean forward)

getPreviousTabIndex

protected int getPreviousTabIndex(int base)

getNextTabIndex

protected int getNextTabIndex(int base)

getNextTabIndexInRun

protected int getNextTabIndexInRun(int tabCount,
                                   int base)

getPreviousTabIndexInRun

protected int getPreviousTabIndexInRun(int tabCount,
                                       int base)

getPreviousTabRun

protected int getPreviousTabRun(int baseRun)

getNextTabRun

protected int getNextTabRun(int baseRun)

rotateInsets

protected static void rotateInsets(Insets  topInsets,
                                   Insets  targetInsets,
                                   int targetPlacement)

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.