Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gtk.java.swing.plaf.gtk
Class GtkTabbedPaneUI  view GtkTabbedPaneUI download GtkTabbedPaneUI.java

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.TabbedPaneUI
          extended byjavax.swing.plaf.basic.BasicTabbedPaneUI
              extended byorg.gtk.java.swing.plaf.gtk.GtkTabbedPaneUI
All Implemented Interfaces:
javax.swing.SwingConstants

public class GtkTabbedPaneUI
extends javax.swing.plaf.basic.BasicTabbedPaneUI

Version:
1.41 08/28/98

Nested Class Summary
 
Nested classes 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
 
Field Summary
protected  java.awt.Color darkShadow
           
protected  java.awt.Color lightShadow
           
protected  java.awt.Color mediumShadow
           
protected  java.awt.Color unselectedTabBackground
           
protected  java.awt.Color unselectedTabForeground
           
protected  java.awt.Color unselectedTabHighlight
           
protected  java.awt.Color unselectedTabShadow
           
 
Fields inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
calcRect, contentBorderInsets, 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
GtkTabbedPaneUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent tabbedPane)
          This method creates a new BasicTabbedPaneUI.
protected  int getTabRunIndent(int tabPlacement, int run)
          This method returns the tab run indent.
protected  int getTabRunOverlay(int tabPlacement)
          This method returns the tab run overlay.
protected  void installDefaults()
          This method installs defaults for the Look and Feel.
protected  void paintBottomTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void paintContentBorderBottomEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
          This method paints the bottom edge of the content border.
protected  void paintContentBorderLeftEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
          This method paints the left edge of the content border.
protected  void paintContentBorderRightEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
          This method paints the right edge of the content border.
protected  void paintContentBorderTopEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
          This method paints the top edge of the content border.
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)
          This method paints the focus rectangle around the selected tab.
protected  void paintLeftTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void paintRightTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void paintTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
          This method paints the background for an individual tab.
protected  void paintTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
          This method paints the border for an individual tab.
protected  void paintTopTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void uninstallDefaults()
          This method uninstalls defaults for the Look and Feel.
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createLayoutManager, createMouseListener, createPropertyChangeListener, expandTabRunsArray, getContentBorderInsets, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunOffset, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paint, paintContentBorder, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, 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
 

Field Detail

unselectedTabBackground

protected java.awt.Color unselectedTabBackground

unselectedTabForeground

protected java.awt.Color unselectedTabForeground

unselectedTabShadow

protected java.awt.Color unselectedTabShadow

unselectedTabHighlight

protected java.awt.Color unselectedTabHighlight

mediumShadow

protected java.awt.Color mediumShadow

lightShadow

protected java.awt.Color lightShadow

darkShadow

protected java.awt.Color darkShadow
Constructor Detail

GtkTabbedPaneUI

public GtkTabbedPaneUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent tabbedPane)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method creates a new BasicTabbedPaneUI.


installDefaults

protected void installDefaults()
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method installs defaults for the Look and Feel.


uninstallDefaults

protected void uninstallDefaults()
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method uninstalls defaults for the Look and Feel.


paintContentBorderTopEdge

protected void paintContentBorderTopEdge(java.awt.Graphics g,
                                         int tabPlacement,
                                         int selectedIndex,
                                         int x,
                                         int y,
                                         int w,
                                         int h)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method paints the top edge of the content border.


paintContentBorderBottomEdge

protected void paintContentBorderBottomEdge(java.awt.Graphics g,
                                            int tabPlacement,
                                            int selectedIndex,
                                            int x,
                                            int y,
                                            int w,
                                            int h)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method paints the bottom edge of the content border.


paintContentBorderRightEdge

protected void paintContentBorderRightEdge(java.awt.Graphics g,
                                           int tabPlacement,
                                           int selectedIndex,
                                           int x,
                                           int y,
                                           int w,
                                           int h)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method paints the right edge of the content border.


paintContentBorderLeftEdge

protected void paintContentBorderLeftEdge(java.awt.Graphics g,
                                          int tabPlacement,
                                          int selectedIndex,
                                          int x,
                                          int y,
                                          int w,
                                          int h)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method paints the left edge of the content border.


paintTabBackground

protected void paintTabBackground(java.awt.Graphics g,
                                  int tabPlacement,
                                  int tabIndex,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  boolean isSelected)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method paints the background for an individual tab.


paintTopTabBorder

protected void paintTopTabBorder(int tabIndex,
                                 java.awt.Graphics g,
                                 int x,
                                 int y,
                                 int w,
                                 int h,
                                 int btm,
                                 int rght,
                                 boolean isSelected)

paintBottomTabBorder

protected void paintBottomTabBorder(int tabIndex,
                                    java.awt.Graphics g,
                                    int x,
                                    int y,
                                    int w,
                                    int h,
                                    int btm,
                                    int rght,
                                    boolean isSelected)

paintLeftTabBorder

protected void paintLeftTabBorder(int tabIndex,
                                  java.awt.Graphics g,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  int btm,
                                  int rght,
                                  boolean isSelected)

paintRightTabBorder

protected void paintRightTabBorder(int tabIndex,
                                   java.awt.Graphics g,
                                   int x,
                                   int y,
                                   int w,
                                   int h,
                                   int btm,
                                   int rght,
                                   boolean isSelected)

paintTabBorder

protected void paintTabBorder(java.awt.Graphics g,
                              int tabPlacement,
                              int tabIndex,
                              int x,
                              int y,
                              int w,
                              int h,
                              boolean isSelected)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method paints the border for an individual tab.


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)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method paints the focus rectangle around the selected tab.


getTabRunIndent

protected int getTabRunIndent(int tabPlacement,
                              int run)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method returns the tab run indent. It is used in WRAP_TAB_LAYOUT and makes each tab run start indented by a certain amount.


getTabRunOverlay

protected int getTabRunOverlay(int tabPlacement)
Description copied from class: javax.swing.plaf.basic.BasicTabbedPaneUI
This method returns the tab run overlay.