com.l2fprod.common.swing.plaf.basic
Class BasicOutlookBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
com.l2fprod.common.swing.plaf.basic.BasicOutlookBarUI
- All Implemented Interfaces:
- OutlookBarUI, javax.swing.SwingConstants
- Direct Known Subclasses:
- WindowsOutlookBarUI
public class BasicOutlookBarUI
- extends javax.swing.plaf.basic.BasicTabbedPaneUI
- implements OutlookBarUI
BasicOutlookBarUI.
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.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, 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 |
protected BasicOutlookBarUI.TabButton |
buttonForTab(int index)
|
protected javax.swing.event.ChangeListener |
createChangeListener()
|
protected java.awt.event.MouseListener |
createMouseListener()
Overriden to return an empty adapter, the default listener was
just implementing the tab selection mechanism |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
|
protected BasicOutlookBarUI.TabButton |
createTabButton()
|
protected java.awt.event.ContainerListener |
createTabListener()
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
java.awt.Rectangle |
getTabBounds(javax.swing.JTabbedPane pane,
int index)
|
int |
getTabRunCount(javax.swing.JTabbedPane pane)
|
protected int |
indexOfComponent(java.awt.Component component)
|
protected void |
installDefaults()
|
protected void |
installListeners()
|
javax.swing.JScrollPane |
makeScrollPane(java.awt.Component component)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
paintContentBorder(java.awt.Graphics g,
int tabPlacement,
int selectedIndex)
|
protected void |
paintContentBorderBottomEdge(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderLeftEdge(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderRightEdge(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderTopEdge(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
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 |
paintIcon(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
javax.swing.Icon icon,
java.awt.Rectangle iconRect,
boolean isSelected)
|
protected void |
paintTab(java.awt.Graphics g,
int tabPlacement,
java.awt.Rectangle[] rects,
int tabIndex,
java.awt.Rectangle iconRect,
java.awt.Rectangle textRect)
|
protected void |
paintTabArea(java.awt.Graphics g,
int tabPlacement,
int selectedIndex)
|
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)
|
protected boolean |
requestFocusForVisibleComponent0()
|
protected void |
tabAdded(java.awt.Component newTab)
|
int |
tabForCoordinate(javax.swing.JTabbedPane pane,
int x,
int y)
|
protected void |
tabRemoved(java.awt.Component removedTab)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallListeners()
|
protected void |
updateTabButtonAt(int index)
Called whenever a property of a tab is changed |
protected void |
updateTabLayoutOrientation()
|
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI |
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createFocusListener, createLayoutManager, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, uninstallComponents, uninstallKeyboardActions, 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 |
BasicOutlookBarUI
public BasicOutlookBarUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
makeScrollPane
public javax.swing.JScrollPane makeScrollPane(java.awt.Component component)
- Specified by:
makeScrollPane
in interface OutlookBarUI
- Returns:
- a JScrollPane with
component
as view - See Also:
JOutlookBar.makeScrollPane(Component)
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class javax.swing.plaf.basic.BasicTabbedPaneUI
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in class javax.swing.plaf.basic.BasicTabbedPaneUI
installListeners
protected void installListeners()
- Overrides:
installListeners
in class javax.swing.plaf.basic.BasicTabbedPaneUI
createTabListener
protected java.awt.event.ContainerListener createTabListener()
createPropertyChangeListener
protected java.beans.PropertyChangeListener createPropertyChangeListener()
- Overrides:
createPropertyChangeListener
in class javax.swing.plaf.basic.BasicTabbedPaneUI
createChangeListener
protected javax.swing.event.ChangeListener createChangeListener()
- Overrides:
createChangeListener
in class javax.swing.plaf.basic.BasicTabbedPaneUI
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getTabBounds
public java.awt.Rectangle getTabBounds(javax.swing.JTabbedPane pane,
int index)
- Overrides:
getTabBounds
in class javax.swing.plaf.basic.BasicTabbedPaneUI
getTabRunCount
public int getTabRunCount(javax.swing.JTabbedPane pane)
- Overrides:
getTabRunCount
in class javax.swing.plaf.basic.BasicTabbedPaneUI
tabForCoordinate
public int tabForCoordinate(javax.swing.JTabbedPane pane,
int x,
int y)
- Overrides:
tabForCoordinate
in class javax.swing.plaf.basic.BasicTabbedPaneUI
indexOfComponent
protected int indexOfComponent(java.awt.Component component)
createTabButton
protected BasicOutlookBarUI.TabButton createTabButton()
tabAdded
protected void tabAdded(java.awt.Component newTab)
tabRemoved
protected void tabRemoved(java.awt.Component removedTab)
updateTabButtonAt
protected void updateTabButtonAt(int index)
- Called whenever a property of a tab is changed
- Parameters:
index
-
buttonForTab
protected BasicOutlookBarUI.TabButton buttonForTab(int index)
updateTabLayoutOrientation
protected void updateTabLayoutOrientation()
requestFocusForVisibleComponent0
protected boolean requestFocusForVisibleComponent0()
createMouseListener
protected java.awt.event.MouseListener createMouseListener()
- Overriden to return an empty adapter, the default listener was
just implementing the tab selection mechanism
- Overrides:
createMouseListener
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
paintContentBorder
protected void paintContentBorder(java.awt.Graphics g,
int tabPlacement,
int selectedIndex)
- Overrides:
paintContentBorder
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintContentBorderBottomEdge
protected void paintContentBorderBottomEdge(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorderBottomEdge
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintContentBorderLeftEdge
protected void paintContentBorderLeftEdge(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorderLeftEdge
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintContentBorderRightEdge
protected void paintContentBorderRightEdge(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorderRightEdge
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintContentBorderTopEdge
protected void paintContentBorderTopEdge(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorderTopEdge
in class javax.swing.plaf.basic.BasicTabbedPaneUI
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
paintIcon
protected void paintIcon(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
javax.swing.Icon icon,
java.awt.Rectangle iconRect,
boolean isSelected)
- Overrides:
paintIcon
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintTab
protected void paintTab(java.awt.Graphics g,
int tabPlacement,
java.awt.Rectangle[] rects,
int tabIndex,
java.awt.Rectangle iconRect,
java.awt.Rectangle textRect)
- Overrides:
paintTab
in class javax.swing.plaf.basic.BasicTabbedPaneUI
paintTabArea
protected void paintTabArea(java.awt.Graphics g,
int tabPlacement,
int selectedIndex)
- Overrides:
paintTabArea
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
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
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