Class KopiTabbedPaneUI

  • All Implemented Interfaces:
    javax.swing.SwingConstants

    public class KopiTabbedPaneUI
    extends javax.swing.plaf.metal.MetalTabbedPaneUI
    • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int calculateTabWidth​(int tabPlacement, int tabIndex, java.awt.FontMetrics metrics)  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      protected int getTabRunIndent​(int tabPlacement, int run)  
      protected void installDefaults()  
      protected boolean isFirstTab​(int tabIndex)  
      protected void layoutLabel​(int tabPlacement, java.awt.FontMetrics metrics, int tabIndex, java.lang.String title, javax.swing.Icon icon, java.awt.Rectangle tabRect, java.awt.Rectangle iconRect, java.awt.Rectangle textRect, boolean isSelected)  
      protected void paintContentBorderBottomEdge​(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 paintTabArea​(java.awt.Graphics g, int tabPlacement, int selectedIndex)  
      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)  
      • Methods inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI

        calculateMaxTabHeight, createLayoutManager, getBaselineOffset, getColorForGap, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, paint, paintBottomTabBorder, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintHighlightBelowTab, paintLeftTabBorder, paintRightTabBorder, paintTabBackground, paintTopTabBorder, shouldFillGap, shouldPadTabRun, shouldRotateTabRuns, update
      • Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI

        assureRectsCreated, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, 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, getTabRunOffset, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installListeners, installUI, lastTabInRun, navigateSelectedTab, paintContentBorder, paintIcon, paintTab, 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

      • KopiTabbedPaneUI

        public KopiTabbedPaneUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • 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
      • 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.metal.MetalTabbedPaneUI
      • isFirstTab

        protected boolean isFirstTab​(int tabIndex)
      • 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.metal.MetalTabbedPaneUI
      • getTabRunIndent

        protected int getTabRunIndent​(int tabPlacement,
                                      int run)
        Overrides:
        getTabRunIndent 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
      • calculateTabWidth

        protected int calculateTabWidth​(int tabPlacement,
                                        int tabIndex,
                                        java.awt.FontMetrics metrics)
        Overrides:
        calculateTabWidth 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.metal.MetalTabbedPaneUI
      • 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.metal.MetalTabbedPaneUI
      • layoutLabel

        protected void layoutLabel​(int tabPlacement,
                                   java.awt.FontMetrics metrics,
                                   int tabIndex,
                                   java.lang.String title,
                                   javax.swing.Icon icon,
                                   java.awt.Rectangle tabRect,
                                   java.awt.Rectangle iconRect,
                                   java.awt.Rectangle textRect,
                                   boolean isSelected)
        Overrides:
        layoutLabel in class javax.swing.plaf.basic.BasicTabbedPaneUI
      • installDefaults

        protected void installDefaults()
        Overrides:
        installDefaults in class javax.swing.plaf.metal.MetalTabbedPaneUI