Class Eclipse3xJideTabbedPaneUI

  • All Implemented Interfaces:
    java.util.EventListener, javax.swing.event.DocumentListener, javax.swing.SwingConstants

    public class Eclipse3xJideTabbedPaneUI
    extends VsnetJideTabbedPaneUI
    A eclipse L&f implementation of JideTabbedPaneUI
    • Field Detail

      • _closeButtonMargin

        protected int _closeButtonMargin
      • _closeButtonMarginSize

        protected int _closeButtonMarginSize
      • _iconMarginHorizon

        protected int _iconMarginHorizon
      • _iconMarginVertical

        protected int _iconMarginVertical
    • Constructor Detail

      • Eclipse3xJideTabbedPaneUI

        public Eclipse3xJideTabbedPaneUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • paintTabArea

        protected void paintTabArea​(java.awt.Graphics g,
                                    int tabPlacement,
                                    int selectedIndex,
                                    java.awt.Component c)
        Paints the tabs in the tab area. Invoked by paint(). The graphics parameter must be a valid Graphics object. Tab placement may be either: JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, or JTabbedPane.RIGHT. The selected index must be a valid tabbed pane tab index (0 to tab count - 1, inclusive) or -1 if no tab is currently selected. The handling of invalid parameters is unspecified.
        Overrides:
        paintTabArea in class BasicJideTabbedPaneUI
        Parameters:
        g - the graphics object to use for rendering
        tabPlacement - the placement for the tabs within the JTabbedPane
        selectedIndex - the tab index of the selected component
        c - the component
      • 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 BasicJideTabbedPaneUI
      • paintTabBorder

        protected void paintTabBorder​(java.awt.Graphics g,
                                      int tabPlacement,
                                      int tabIndex,
                                      int x,
                                      int y,
                                      int w,
                                      int h,
                                      boolean isSelected)
        this function draws the border around each tab note that this function does now draw the background of the tab. that is done elsewhere
        Overrides:
        paintTabBorder in class BasicJideTabbedPaneUI
        Parameters:
        g - the Graphics instance
        tabPlacement - the tab placement
        tabIndex - the tab index
        x - x
        y - y
        w - width
        h - height
        isSelected - if the tab is selected
      • 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 VsnetJideTabbedPaneUI
      • paintContentBorder

        protected void paintContentBorder​(java.awt.Graphics g,
                                          int tabPlacement,
                                          int selectedIndex)
        Description copied from class: BasicJideTabbedPaneUI
        Paints the border of the conten pane which should reflect the tabs as well.
        Overrides:
        paintContentBorder in class BasicJideTabbedPaneUI
        Parameters:
        g - the Graphics instance
        tabPlacement - the tab placement
        selectedIndex - the selected tab index
      • paintContentBorderTopEdge

        protected void paintContentBorderTopEdge​(java.awt.Graphics g,
                                                 int tabPlacement,
                                                 int selectedIndex,
                                                 int x,
                                                 int y,
                                                 int w,
                                                 int h)
        Overrides:
        paintContentBorderTopEdge in class VsnetJideTabbedPaneUI
      • paintContentBorderBottomEdge

        protected void paintContentBorderBottomEdge​(java.awt.Graphics g,
                                                    int tabPlacement,
                                                    int selectedIndex,
                                                    int x,
                                                    int y,
                                                    int w,
                                                    int h)
        Overrides:
        paintContentBorderBottomEdge in class VsnetJideTabbedPaneUI
      • paintContentBorderLeftEdge

        protected void paintContentBorderLeftEdge​(java.awt.Graphics g,
                                                  int tabPlacement,
                                                  int selectedIndex,
                                                  int x,
                                                  int y,
                                                  int w,
                                                  int h)
        Overrides:
        paintContentBorderLeftEdge in class VsnetJideTabbedPaneUI
      • paintContentBorderRightEdge

        protected void paintContentBorderRightEdge​(java.awt.Graphics g,
                                                   int tabPlacement,
                                                   int selectedIndex,
                                                   int x,
                                                   int y,
                                                   int w,
                                                   int h)
        Overrides:
        paintContentBorderRightEdge in class VsnetJideTabbedPaneUI
      • 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 BasicJideTabbedPaneUI