16 package net.squiz.matrix.plaf;
19 import javax.swing.plaf.basic.*;
26 private boolean tabsVertical;
29 this.tabsVertical = tabsVertical;
32 protected void installDefaults() {
33 super.installDefaults();
37 tabAreaInsets =
new Insets(2, 2, 0, 0);
41 tabInsets =
new Insets(0, 0, 0, 0);
45 contentBorderInsets =
new Insets(0, 0, 0, 0);
49 selectedTabPadInsets =
new Insets(2, 0, 1, 1);
53 protected void paintFocusIndicator(Graphics g,
64 protected void paintTabBorder(Graphics g,
73 if (!isSelected && tabsVertical) {
75 int right_x = x + w - 1;
76 g.drawLine(right_x, y, right_x, y+h);
79 super.paintTabBorder(g, tabPlacement, tabIndex, x, y, w, h, isSelected);