< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java

Print this page




  39 /**
  40  * Provides the Synth L&amp;F UI delegate for
  41  * {@link javax.swing.JTabbedPane}.
  42  *
  43  * <p>Looks up the {@code selectedTabPadInsets} property from the Style,
  44  * which represents additional insets for the selected tab.
  45  *
  46  * @author Scott Violet
  47  * @since 1.7
  48  */
  49 public class SynthTabbedPaneUI extends BasicTabbedPaneUI
  50                                implements PropertyChangeListener, SynthUI {
  51 
  52     /**
  53      * <p>If non-zero, tabOverlap indicates the amount that the tab bounds
  54      * should be altered such that they would overlap with a tab on either the
  55      * leading or trailing end of a run (ie: in TOP, this would be on the left
  56      * or right).</p>
  57 
  58      * <p>A positive overlap indicates that tabs should overlap right/down,
  59      * while a negative overlap indicates tha tabs should overlap left/up.</p>
  60      *
  61      * <p>When tabOverlap is specified, it both changes the x position and width
  62      * of the tab if in TOP or BOTTOM placement, and changes the y position and
  63      * height if in LEFT or RIGHT placement.</p>
  64      *
  65      * <p>This is done for the following reason. Consider a run of 10 tabs.
  66      * There are 9 gaps between these tabs. If you specified a tabOverlap of
  67      * "-1", then each of the tabs "x" values will be shifted left. This leaves
  68      * 9 pixels of space to the right of the right-most tab unpainted. So, each
  69      * tab's width is also extended by 1 pixel to make up the difference.</p>
  70      *
  71      * <p>This property respects the RTL component orientation.</p>
  72      */
  73     private int tabOverlap = 0;
  74 
  75     /**
  76      * When a tabbed pane has multiple rows of tabs, this indicates whether
  77      * the tabs in the upper row(s) should extend to the base of the tab area,
  78      * or whether they should remain at their normal tab height. This does not
  79      * affect the bounds of the tabs, only the bounds of area painted by the




  39 /**
  40  * Provides the Synth L&amp;F UI delegate for
  41  * {@link javax.swing.JTabbedPane}.
  42  *
  43  * <p>Looks up the {@code selectedTabPadInsets} property from the Style,
  44  * which represents additional insets for the selected tab.
  45  *
  46  * @author Scott Violet
  47  * @since 1.7
  48  */
  49 public class SynthTabbedPaneUI extends BasicTabbedPaneUI
  50                                implements PropertyChangeListener, SynthUI {
  51 
  52     /**
  53      * <p>If non-zero, tabOverlap indicates the amount that the tab bounds
  54      * should be altered such that they would overlap with a tab on either the
  55      * leading or trailing end of a run (ie: in TOP, this would be on the left
  56      * or right).</p>
  57 
  58      * <p>A positive overlap indicates that tabs should overlap right/down,
  59      * while a negative overlap indicates that tabs should overlap left/up.</p>
  60      *
  61      * <p>When tabOverlap is specified, it both changes the x position and width
  62      * of the tab if in TOP or BOTTOM placement, and changes the y position and
  63      * height if in LEFT or RIGHT placement.</p>
  64      *
  65      * <p>This is done for the following reason. Consider a run of 10 tabs.
  66      * There are 9 gaps between these tabs. If you specified a tabOverlap of
  67      * "-1", then each of the tabs "x" values will be shifted left. This leaves
  68      * 9 pixels of space to the right of the right-most tab unpainted. So, each
  69      * tab's width is also extended by 1 pixel to make up the difference.</p>
  70      *
  71      * <p>This property respects the RTL component orientation.</p>
  72      */
  73     private int tabOverlap = 0;
  74 
  75     /**
  76      * When a tabbed pane has multiple rows of tabs, this indicates whether
  77      * the tabs in the upper row(s) should extend to the base of the tab area,
  78      * or whether they should remain at their normal tab height. This does not
  79      * affect the bounds of the tabs, only the bounds of area painted by the


< prev index next >