DESY ACOP Beans Home

com.cosylab.gui.components.util
Class CosyUIElements.PlainTabbedPaneUI

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 com.cosylab.gui.components.util.CosyUIElements.FlushTabbedPaneUI
                      extended by com.cosylab.gui.components.util.CosyUIElements.PlainTabbedPaneUI
All Implemented Interfaces:
javax.swing.SwingConstants
Enclosing class:
CosyUIElements

public static final class CosyUIElements.PlainTabbedPaneUI
extends CosyUIElements.FlushTabbedPaneUI

A class implementing the user interface of a JTabbedPane. It assumes that the tabs are situated at the top of the pane, and that the components contained inside the tabbed pane have no border.


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
CosyUIElements.PlainTabbedPaneUI()
           
 
Method Summary
protected  java.awt.Insets getContentBorderInsets(int tabPlacement)
           
protected  void paintContentBorder(java.awt.Graphics g, int tabPlacement, int selectedIndex)
           
protected  void paintTopTabBorder(int tabIndex, java.awt.Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
 
Methods inherited from class com.cosylab.gui.components.util.CosyUIElements.FlushTabbedPaneUI
getTabAreaInsets, paintFocusIndicator, paintTabBackground
 
Methods inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
calculateMaxTabHeight, createLayoutManager, createUI, getBaselineOffset, getColorForGap, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, installDefaults, paint, paintBottomTabBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintHighlightBelowTab, paintLeftTabBorder, paintRightTabBorder, 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, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabBounds, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, 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

CosyUIElements.PlainTabbedPaneUI

public CosyUIElements.PlainTabbedPaneUI()
Method Detail

getContentBorderInsets

protected java.awt.Insets getContentBorderInsets(int tabPlacement)
Overrides:
getContentBorderInsets in class CosyUIElements.FlushTabbedPaneUI
See Also:
BasicTabbedPaneUI.getContentBorderInsets(int)

paintTopTabBorder

protected void paintTopTabBorder(int tabIndex,
                                 java.awt.Graphics g,
                                 int x,
                                 int y,
                                 int w,
                                 int h,
                                 int btm,
                                 int rght,
                                 boolean isSelected)
Overrides:
paintTopTabBorder in class CosyUIElements.FlushTabbedPaneUI
See Also:
MetalTabbedPaneUI.paintTopTabBorder(int, Graphics, int, int, int, int, int, int, boolean)

paintContentBorder

protected void paintContentBorder(java.awt.Graphics g,
                                  int tabPlacement,
                                  int selectedIndex)
Overrides:
paintContentBorder in class javax.swing.plaf.basic.BasicTabbedPaneUI
See Also:
BasicTabbedPaneUI.paintContentBorder(Graphics, int, int)


Copyright © 2010. All Rights Reserved.