org.openbp.swing.plaf.sky
Class SkyTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
javax.swing.plaf.metal.MetalTabbedPaneUI
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 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 |
| 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 |
|
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 |
SkyTabbedPaneUI
public SkyTabbedPaneUI()
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 valueg - a Graphics valuex - an int valuey - an int valuew - an int valueh - an int valuebtm - an int valuerght - an int valueisSelected - 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 valueg - a Graphics valuex - an int valuey - an int valuew - an int valueh - an int valuebtm - an int valuerght - an int valueisSelected - 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 valueg - a Graphics valuex - an int valuey - an int valuew - an int valueh - an int valuebtm - an int valuerght - an int valueisSelected - 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 valueg - a Graphics valuex - an int valuey - an int valuew - an int valueh - an int valuebtm - an int valuerght - an int valueisSelected - 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 valuetabPlacement - an int valuerects - a Rectangle[] valuetabIndex - an int valueiconRect - a Rectangle valuetextRect - a Rectangle valueisSelected - 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 valuetabPlacement - an int valuetabIndex - an int valuex - an int valuey - an int valuew - an int valueh - an int valueisSelected - a boolean value
Copyright © 2011. All Rights Reserved.