com.neatech.climbplan.userinterface.components
Class CloseableTabbedPane.CloseableTabbedPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TabbedPaneUI
          extended by javax.swing.plaf.basic.BasicTabbedPaneUI
              extended by com.neatech.climbplan.userinterface.components.CloseableTabbedPane.CloseableTabbedPaneUI
All Implemented Interfaces:
SwingConstants
Enclosing class:
CloseableTabbedPane

 class CloseableTabbedPane.CloseableTabbedPaneUI
extends BasicTabbedPaneUI

A specific BasicTabbedPaneUI.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandler
 
Field Summary
private  int horizontalTextPosition
          the horizontal position of the text
 
Fields inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
calcRect, contentBorderInsets, darkShadow, downKey, focus, focusListener, highlight, leftKey, lightHighlight, maxTabHeight, maxTabWidth, mouseListener, propertyChangeListener, rects, rightKey, runCount, selectedRun, selectedTabPadInsets, shadow, tabAreaInsets, tabChangeListener, tabInsets, tabPane, tabRunOverlay, tabRuns, textIconGap, upKey
 
Fields inherited from interface 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
 
Constructor Summary
CloseableTabbedPane.CloseableTabbedPaneUI()
          Creates a new instance of CloseableTabbedPaneUI
CloseableTabbedPane.CloseableTabbedPaneUI(int horizontalTextPosition)
          Creates a new instance of CloseableTabbedPaneUI
 
Method Summary
protected  void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
          Layouts the label
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createLayoutManager, createMouseListener, createPropertyChangeListener, createScrollButton, createUI, expandTabRunsArray, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, lastTabInRun, navigateSelectedTab, paint, paintContentBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintIcon, paintTab, paintTabArea, paintTabBackground, paintTabBorder, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

horizontalTextPosition

private int horizontalTextPosition
the horizontal position of the text

Constructor Detail

CloseableTabbedPane.CloseableTabbedPaneUI

public CloseableTabbedPane.CloseableTabbedPaneUI()
Creates a new instance of CloseableTabbedPaneUI


CloseableTabbedPane.CloseableTabbedPaneUI

public CloseableTabbedPane.CloseableTabbedPaneUI(int horizontalTextPosition)
Creates a new instance of CloseableTabbedPaneUI

Parameters:
horizontalTextPosition - the horizontal position of the text (e.g. SwingUtilities.TRAILING or SwingUtilities.LEFT)
Method Detail

layoutLabel

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

Overrides:
layoutLabel in class BasicTabbedPaneUI
Parameters:
tabPlacement - the placement of the tabs
metrics - the font metrics
tabIndex - the index of the tab
title - the title of the tab
icon - the icon of the tab
tabRect - the tab boundaries
iconRect - the icon boundaries
textRect - the text boundaries
isSelected - true whether the tab is selected, false otherwise