org.crosswire.common.swing.plaf
Class WindowsBorderlessTabbedPaneUI

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.sun.java.swing.plaf.windows.WindowsTabbedPaneUI
                  extended by org.crosswire.common.swing.plaf.WindowsBorderlessTabbedPaneUI
All Implemented Interfaces:
SwingConstants

public class WindowsBorderlessTabbedPaneUI
extends com.sun.java.swing.plaf.windows.WindowsTabbedPaneUI

Provides customization to WindowsLF Tabbed panes.

Author:
Willie Thean
See Also:
The GNU General Public License for details.

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
 
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
WindowsBorderlessTabbedPaneUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
protected  Insets getContentBorderInsets(int tabPlacement)
          Return the content border insets based on tabPlacement.
 
Methods inherited from class com.sun.java.swing.plaf.windows.WindowsTabbedPaneUI
installDefaults, paintContentBorder, paintTabBackground, paintTabBorder, setRolloverTab, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createLayoutManager, createMouseListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, 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, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paint, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, 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
 

Constructor Detail

WindowsBorderlessTabbedPaneUI

public WindowsBorderlessTabbedPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

getContentBorderInsets

protected Insets getContentBorderInsets(int tabPlacement)
Return the content border insets based on tabPlacement. E.g. tabPlacement = SwingConstants.TOP returns new Insets(1, 0, 0, 0) tabPlacement = SwingConstants.RIGHT returns new Insets(0, 0, 0, 1)

Overrides:
getContentBorderInsets in class BasicTabbedPaneUI
Parameters:
tabPlacement - tab placement of the tabbed pane
Returns:
an Inset instance based on tabPlacement

Copyright ยจ 2003-2015