org.openbp.swing.plaf.sky
Class SkyTabbedPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TabbedPaneUI
          extended by javax.swing.plaf.basic.BasicTabbedPaneUI
              extended by javax.swing.plaf.metal.MetalTabbedPaneUI
                  extended by org.openbp.swing.plaf.sky.SkyTabbedPaneUI
All Implemented Interfaces:
javax.swing.SwingConstants

public class SkyTabbedPaneUI
extends javax.swing.plaf.metal.MetalTabbedPaneUI

LookAndFeel for a TabbedPane

Author:
Jens Ferchland

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI.FocusHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.MouseHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
minTabWidth, selectColor, selectHighlight, tabAreaBackground
 
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
SkyTabbedPaneUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates a new Instance of the SkyTabbedPaneUI.
protected  void paintBottomTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
          Paint a tab when its positioned on bottom of the pane.
protected  void paintFocusIndicator(java.awt.Graphics g, int tabPlacement, java.awt.Rectangle[] rects, int tabIndex, java.awt.Rectangle iconRect, java.awt.Rectangle textRect, boolean isSelected)
          Paint the focus - if necessary the normal focusindicator.
protected  void paintLeftTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
          Paint a tab when its positioned on the left of the pane.
protected  void paintRightTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
          Paint a tab when its positioned on the right of the pane.
protected  void paintTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
          Paint the background of a tab.
protected  void paintTopTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
          Paint a tab when its positioned on top of the pane.
 
Methods inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
calculateMaxTabHeight, createLayoutManager, getBaselineOffset, getColorForGap, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, installDefaults, paint, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintHighlightBelowTab, paintTabBorder, shouldFillGap, shouldPadTabRun, shouldRotateTabRuns, update
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyTabbedPaneUI

public SkyTabbedPaneUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates a new Instance of the SkyTabbedPaneUI.

Parameters:
c - a JComponent value
Returns:
a ComponentUI value

paintTopTabBorder

protected void paintTopTabBorder(int tabIndex,
                                 java.awt.Graphics g,
                                 int x,
                                 int y,
                                 int w,
                                 int h,
                                 int btm,
                                 int rght,
                                 boolean isSelected)
Paint a tab when its positioned on top of the pane.

Overrides:
paintTopTabBorder in class javax.swing.plaf.metal.MetalTabbedPaneUI
Parameters:
tabIndex - an int value
g - a Graphics value
x - an int value
y - an int value
w - an int value
h - an int value
btm - an int value
rght - an int value
isSelected - a boolean value

paintLeftTabBorder

protected void paintLeftTabBorder(int tabIndex,
                                  java.awt.Graphics g,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  int btm,
                                  int rght,
                                  boolean isSelected)
Paint a tab when its positioned on the left of the pane.

Overrides:
paintLeftTabBorder in class javax.swing.plaf.metal.MetalTabbedPaneUI
Parameters:
tabIndex - an int value
g - a Graphics value
x - an int value
y - an int value
w - an int value
h - an int value
btm - an int value
rght - an int value
isSelected - a boolean value

paintBottomTabBorder

protected void paintBottomTabBorder(int tabIndex,
                                    java.awt.Graphics g,
                                    int x,
                                    int y,
                                    int w,
                                    int h,
                                    int btm,
                                    int rght,
                                    boolean isSelected)
Paint a tab when its positioned on bottom of the pane.

Overrides:
paintBottomTabBorder in class javax.swing.plaf.metal.MetalTabbedPaneUI
Parameters:
tabIndex - an int value
g - a Graphics value
x - an int value
y - an int value
w - an int value
h - an int value
btm - an int value
rght - an int value
isSelected - a boolean value

paintRightTabBorder

protected void paintRightTabBorder(int tabIndex,
                                   java.awt.Graphics g,
                                   int x,
                                   int y,
                                   int w,
                                   int h,
                                   int btm,
                                   int rght,
                                   boolean isSelected)
Paint a tab when its positioned on the right of the pane.

Overrides:
paintRightTabBorder in class javax.swing.plaf.metal.MetalTabbedPaneUI
Parameters:
tabIndex - an int value
g - a Graphics value
x - an int value
y - an int value
w - an int value
h - an int value
btm - an int value
rght - an int value
isSelected - a boolean value

paintFocusIndicator

protected void paintFocusIndicator(java.awt.Graphics g,
                                   int tabPlacement,
                                   java.awt.Rectangle[] rects,
                                   int tabIndex,
                                   java.awt.Rectangle iconRect,
                                   java.awt.Rectangle textRect,
                                   boolean isSelected)
Paint the focus - if necessary the normal focusindicator.

Overrides:
paintFocusIndicator in class javax.swing.plaf.metal.MetalTabbedPaneUI
Parameters:
g - a Graphics value
tabPlacement - an int value
rects - a Rectangle[] value
tabIndex - an int value
iconRect - a Rectangle value
textRect - a Rectangle value
isSelected - a boolean value

paintTabBackground

protected void paintTabBackground(java.awt.Graphics g,
                                  int tabPlacement,
                                  int tabIndex,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  boolean isSelected)
Paint the background of a tab.

Overrides:
paintTabBackground in class javax.swing.plaf.metal.MetalTabbedPaneUI
Parameters:
g - a Graphics value
tabPlacement - an int value
tabIndex - an int value
x - an int value
y - an int value
w - an int value
h - an int value
isSelected - a boolean value


Copyright © 2011. All Rights Reserved.