com.alee.laf.tabbedpane
Class WebTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
com.alee.laf.tabbedpane.WebTabbedPaneUI
- All Implemented Interfaces:
- ShapeProvider, BorderMethods, SwingMethods, javax.swing.SwingConstants
public class WebTabbedPaneUI
- extends javax.swing.plaf.basic.BasicTabbedPaneUI
- implements ShapeProvider, BorderMethods
User: mgarin Date: 27.04.11 Time: 18:39
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.TabbedPaneLayout, javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler |
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, 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)
|
Painter |
getBackgroundPainterAt(int tabIndex)
|
java.awt.Color |
getBottomBg()
|
protected java.awt.Insets |
getContentBorderInsets(int tabPlacement)
|
java.awt.Shape |
getContentClip()
|
java.awt.Insets |
getContentInsets()
|
Painter |
getPainter()
|
int |
getRound()
|
java.awt.Color |
getSelectedBottomBg()
|
java.awt.Color |
getSelectedForegroundAt(int tabIndex)
|
protected java.awt.Insets |
getSelectedTabPadInsets(int tabPlacement)
|
java.awt.Color |
getSelectedTopBg()
|
int |
getShadeWidth()
|
protected java.awt.Insets |
getTabAreaInsets(int tabPlacement)
|
int |
getTabAreaLength(int tabPlacement)
|
TabbedPaneStyle |
getTabbedPaneStyle()
|
java.awt.Insets |
getTabInsets()
|
protected java.awt.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 |
getTabOverlay()
|
int |
getTabRunIndent()
|
protected int |
getTabRunIndent(int tabPlacement,
int run)
|
protected int |
getTabRunOverlay(int tabPlacement)
|
TabStretchType |
getTabStretchType()
|
java.awt.Color |
getTopBg()
|
void |
installUI(javax.swing.JComponent c)
|
boolean |
isRotateTabInsets()
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
paintContentBorder(java.awt.Graphics g,
int tabPlacement,
int selectedIndex)
|
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)
|
protected void |
paintTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintText(java.awt.Graphics g,
int tabPlacement,
java.awt.Font font,
java.awt.FontMetrics metrics,
int tabIndex,
java.lang.String title,
java.awt.Rectangle textRect,
boolean isSelected)
|
java.awt.Shape |
provideShape()
Returns component shape. |
void |
setBackgroundPainterAt(int tabIndex,
Painter painter)
|
void |
setBottomBg(java.awt.Color bottomBg)
|
void |
setContentInsets(java.awt.Insets contentInsets)
|
void |
setPainter(Painter painter)
|
void |
setRotateTabInsets(boolean rotateTabInsets)
|
void |
setRound(int round)
|
void |
setSelectedBottomBg(java.awt.Color selectedBottomBg)
|
void |
setSelectedForegroundAt(int tabIndex,
java.awt.Color foreground)
|
void |
setSelectedTopBg(java.awt.Color selectedTopBg)
|
void |
setShadeWidth(int shadeWidth)
|
void |
setTabbedPaneStyle(TabbedPaneStyle tabbedPaneStyle)
|
void |
setTabInsets(java.awt.Insets tabInsets)
|
void |
setTabOverlay(int tabOverlay)
|
void |
setTabRunIndent(int tabRunIndent)
|
void |
setTabStretchType(TabStretchType tabStretchType)
|
void |
setTopBg(java.awt.Color topBg)
|
protected boolean |
shouldPadTabRun(int tabPlacement,
int run)
|
protected boolean |
shouldRotateTabRuns(int tabPlacement)
|
void |
uninstallUI(javax.swing.JComponent c)
|
void |
updateBorder()
Updates custom WebLaF border. |
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, getTabBounds, getTabBounds, getTabRunCount, getTabRunOffset, getTextViewForTab, getVisibleComponent, installComponents, installDefaults, installKeyboardActions, installListeners, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintIcon, paintTab, paintTabArea, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
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 |
WebTabbedPaneUI
public WebTabbedPaneUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in class javax.swing.plaf.basic.BasicTabbedPaneUI
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in class javax.swing.plaf.basic.BasicTabbedPaneUI
provideShape
public java.awt.Shape provideShape()
- Description copied from interface:
ShapeProvider
- Returns component shape.
- Specified by:
provideShape
in interface ShapeProvider
- Returns:
- component shape
updateBorder
public void updateBorder()
- Updates custom WebLaF border.
- Specified by:
updateBorder
in interface BorderMethods
getShadeWidth
public int getShadeWidth()
setShadeWidth
public void setShadeWidth(int shadeWidth)
isRotateTabInsets
public boolean isRotateTabInsets()
setRotateTabInsets
public void setRotateTabInsets(boolean rotateTabInsets)
getRound
public int getRound()
setRound
public void setRound(int round)
getContentInsets
public java.awt.Insets getContentInsets()
setContentInsets
public void setContentInsets(java.awt.Insets contentInsets)
getTabInsets
public java.awt.Insets getTabInsets()
setTabInsets
public void setTabInsets(java.awt.Insets tabInsets)
getSelectedTopBg
public java.awt.Color getSelectedTopBg()
setSelectedTopBg
public void setSelectedTopBg(java.awt.Color selectedTopBg)
getSelectedBottomBg
public java.awt.Color getSelectedBottomBg()
setSelectedBottomBg
public void setSelectedBottomBg(java.awt.Color selectedBottomBg)
getTopBg
public java.awt.Color getTopBg()
setTopBg
public void setTopBg(java.awt.Color topBg)
getBottomBg
public java.awt.Color getBottomBg()
setBottomBg
public void setBottomBg(java.awt.Color bottomBg)
setSelectedForegroundAt
public void setSelectedForegroundAt(int tabIndex,
java.awt.Color foreground)
getSelectedForegroundAt
public java.awt.Color getSelectedForegroundAt(int tabIndex)
setBackgroundPainterAt
public void setBackgroundPainterAt(int tabIndex,
Painter painter)
getBackgroundPainterAt
public Painter getBackgroundPainterAt(int tabIndex)
getTabbedPaneStyle
public TabbedPaneStyle getTabbedPaneStyle()
setTabbedPaneStyle
public void setTabbedPaneStyle(TabbedPaneStyle tabbedPaneStyle)
getPainter
public Painter getPainter()
setPainter
public void setPainter(Painter painter)
getTabRunIndent
public int getTabRunIndent()
setTabRunIndent
public void setTabRunIndent(int tabRunIndent)
getTabOverlay
public int getTabOverlay()
setTabOverlay
public void setTabOverlay(int tabOverlay)
getTabStretchType
public TabStretchType getTabStretchType()
setTabStretchType
public void setTabStretchType(TabStretchType tabStretchType)
getTabRunIndent
protected int getTabRunIndent(int tabPlacement,
int run)
- Overrides:
getTabRunIndent
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getTabRunOverlay
protected int getTabRunOverlay(int tabPlacement)
- Overrides:
getTabRunOverlay
in class javax.swing.plaf.basic.BasicTabbedPaneUI
shouldPadTabRun
protected boolean shouldPadTabRun(int tabPlacement,
int run)
- Overrides:
shouldPadTabRun
in class javax.swing.plaf.basic.BasicTabbedPaneUI
shouldRotateTabRuns
protected boolean shouldRotateTabRuns(int tabPlacement)
- Overrides:
shouldRotateTabRuns
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getContentBorderInsets
protected java.awt.Insets getContentBorderInsets(int tabPlacement)
- Overrides:
getContentBorderInsets
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getTabAreaInsets
protected java.awt.Insets getTabAreaInsets(int tabPlacement)
- Overrides:
getTabAreaInsets
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getTabInsets
protected java.awt.Insets getTabInsets(int tabPlacement,
int tabIndex)
- Overrides:
getTabInsets
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getSelectedTabPadInsets
protected java.awt.Insets getSelectedTabPadInsets(int tabPlacement)
- Overrides:
getSelectedTabPadInsets
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getTabLabelShiftX
protected int getTabLabelShiftX(int tabPlacement,
int tabIndex,
boolean isSelected)
- Overrides:
getTabLabelShiftX
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getTabLabelShiftY
protected int getTabLabelShiftY(int tabPlacement,
int tabIndex,
boolean isSelected)
- Overrides:
getTabLabelShiftY
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintTabBorder
protected void paintTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
- Overrides:
paintTabBorder
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintTabBackground
protected void paintTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
- Overrides:
paintTabBackground
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintText
protected void paintText(java.awt.Graphics g,
int tabPlacement,
java.awt.Font font,
java.awt.FontMetrics metrics,
int tabIndex,
java.lang.String title,
java.awt.Rectangle textRect,
boolean isSelected)
- Overrides:
paintText
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintContentBorder
protected void paintContentBorder(java.awt.Graphics g,
int tabPlacement,
int selectedIndex)
- Overrides:
paintContentBorder
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getTabAreaLength
public int getTabAreaLength(int tabPlacement)
getContentClip
public java.awt.Shape getContentClip()
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)
- Overrides:
paintFocusIndicator
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint
in class javax.swing.plaf.basic.BasicTabbedPaneUI