Lines Matching refs:tabPlacement

132         final int tabPlacement = tabPane.getTabPlacement();
134 paintContentBorder(g, tabPlacement, selectedIndex);
142 final boolean isLeftToRight = tabPane.getComponentOrientation().isLeftToRight() || tabPlacement == LEFT || tabPlacement == RIGHT;
146 paintScrollingTabs(g, clipRect, tabPlacement, selectedIndex, active, frameActive, isLeftToRight);
151 paintAllTabs(g, clipRect, tabPlacement, selectedIndex, active, frameActive, isLeftToRight);
154 protected void paintAllTabs(final Graphics g, final Rectangle clipRect, final int tabPlacement, final int selectedIndex, final boolean active, final boolean frameActive, final boolean isLeftToRight) {
161 paintTabNormal(g, tabPlacement, i, active, frameActive, isLeftToRight);
168 paintTabNormal(g, tabPlacement, selectedIndex, active, frameActive, isLeftToRight);
172 protected void paintScrollingTabs(final Graphics g, final Rectangle clipRect, final int tabPlacement, final int selectedIndex, final boolean active, final boolean frameActive, final boolean isLeftToRight) {
188 paintTabNormal(g, tabPlacement, realIndex, active, frameActive, isLeftToRight);
195 paintTabNormalFromRect(g, tabPlacement, leftScrollTabRect, -2, fIconRect, fTextRect, visibleTabState.needsLeftScrollTab(), frameActive, isLeftToRight);
200 paintTabNormalFromRect(g, tabPlacement, rightScrollTabRect, -1, fIconRect, fTextRect, visibleTabState.needsRightScrollTab(), frameActive, isLeftToRight);
204 paintTabNormal(g, tabPlacement, selectedIndex, active, frameActive, isLeftToRight);
221 protected int getTabLabelShiftX(final int tabPlacement, final int tabIndex, final boolean isSelected) {
224 switch (tabPlacement) {
237 protected int getTabLabelShiftY(final int tabPlacement, final int tabIndex, final boolean isSelected) {
238 switch (tabPlacement) {
249 protected Icon getIconForScrollTab(final int tabPlacement, final int tabIndex, final boolean enabled) {
251 if (tabPlacement == RIGHT) shouldFlip = false;
252 if (tabPlacement == LEFT) shouldFlip = true;
269 protected void paintContents(final Graphics g, final int tabPlacement, final int tabIndex, final Rectangle tabRect, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) {
279 icon = getIconForScrollTab(tabPlacement, tabIndex, true);
291 final boolean isVertical = tabPlacement == RIGHT || tabPlacement == LEFT;
300 layoutLabel(tabPlacement, metrics, tabIndex < 0 ? 0 : tabIndex, title, icon, fContentRect, iconRect, textRect, false); // Never give it "isSelected" - ApprMgr handles this
317 rotateGraphics(g2d, tabRect, textRect, iconRect, tabPlacement);
326 paintIcon(g, tabPlacement, tabIndex, icon, iconRect, isSelected);
361 protected void rotateGraphics(final Graphics2D g2d, final Rectangle tabRect, final Rectangle textRect, final Rectangle iconRect, final int tabPlacement) {
367 final double rotateAmount = (tabPlacement == LEFT ? -kNinetyDegrees : kNinetyDegrees);
374 if (tabPlacement == LEFT) {
408 protected void paintTabNormal(final Graphics g, final int tabPlacement, final int tabIndex, final boolean active, final boolean frameActive, final boolean isLeftToRight) {
409 paintTabNormalFromRect(g, tabPlacement, rects[tabIndex], tabIndex, fIconRect, fTextRect, active, frameActive, isLeftToRight);
412 protected void paintTabNormalFromRect(final Graphics g, final int tabPlacement, final Rectangle tabRect, final int nonRectIndex, final Rectangle iconRect, final Rectangle textRect, final boolean active, final boolean frameActive, final boolean isLeftToRight) {
416 paintCUITab(g, tabPlacement, tabRect, isSelected, frameActive, isLeftToRight, nonRectIndex);
420 paintContents(g, tabPlacement, nonRectIndex, tabRect, iconRect, textRect, isSelected);
423 protected void paintCUITab(final Graphics g, final int tabPlacement, final Rectangle tabRect, final boolean isSelected, final boolean frameActive, final boolean isLeftToRight, final int nonRectIndex) {
445 if (tabPlacement == LEFT || tabPlacement == RIGHT) {
466 if (!isLeftToRight && (tabPlacement == TOP || tabPlacement == BOTTOM)) {
472 fillTabWithBackground(g, tabRect, tabPlacement, first, last, color);
541 protected static AlterRects getAlterationFor(final int tabPlacement) {
542 if (alterRects[tabPlacement] != null) return alterRects[tabPlacement];
544 switch (tabPlacement) {
553 protected void fillTabWithBackground(final Graphics g, final Rectangle rect, final int tabPlacement, final boolean first, final boolean last, final Color color) {
556 final AlterRects alteration = getAlterationFor(tabPlacement);
565 protected Insets getContentBorderInsets(final int tabPlacement) {
566 final Insets draw = getContentDrawingInsets(tabPlacement); // will be rotated
568 rotateInsets(contentBorderInsets, currentContentBorderInsets, tabPlacement);
607 protected Insets getContentDrawingInsets(final int tabPlacement) {
608 rotateInsets(contentDrawingInsets, currentContentDrawingInsets, tabPlacement);
629 protected void paintContentBorder(final Graphics g, final int tabPlacement, final int selectedIndex) {
639 switch (tabPlacement) {
669 final int tabPlacement = tabPane.getTabPlacement();
670 final Insets localContentBorderInsets = getContentBorderInsets(tabPlacement);
677 switch (tabPlacement) {
679 x += calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth);
690 y += calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight);
727 protected Insets getTabInsets(final int tabPlacement, final int tabIndex) {
728 switch (tabPlacement) {
736 protected int calculateTabHeight(final int tabPlacement, final int tabIndex, final int fontHeight) {
738 final int result = super.calculateTabHeight(tabPlacement, tabIndex, fontHeight);
746 protected boolean shouldRotateTabRuns(final int tabPlacement) {
1020 protected int preferredTabAreaWidth(final int tabPlacement, final int height) {
1025 if (tabPlacement == SwingConstants.LEFT || tabPlacement == SwingConstants.RIGHT) {
1026 return super.preferredTabAreaHeight(tabPlacement, height);
1029 return super.preferredTabAreaWidth(tabPlacement, height);
1032 protected int preferredTabAreaHeight(final int tabPlacement, final int width) {
1033 if (tabPlacement == SwingConstants.LEFT || tabPlacement == SwingConstants.RIGHT) {
1034 return super.preferredTabAreaWidth(tabPlacement, width);
1037 return super.preferredTabAreaHeight(tabPlacement, width);
1040 protected void calculateTabRects(final int tabPlacement, final int tabCount) {
1043 superCalculateTabRects(tabPlacement, tabCount); // does most of the hard work
1048 visibleTabState.alignRectsRunFor(rects, tabPane.getSize(), tabPlacement, AquaUtils.isLeftToRight(tabPane));
1051 protected void padTabRun(final int tabPlacement, final int start, final int end, final int max) {
1052 if (tabPlacement == SwingConstants.TOP || tabPlacement == SwingConstants.BOTTOM) {
1053 super.padTabRun(tabPlacement, start, end, max);
1082 protected synchronized void superCalculateTabRects(final int tabPlacement, final int tabCount) {
1085 final Insets localTabAreaInsets = getTabAreaInsets(tabPlacement);
1090 switch (tabPlacement) {
1092 maxTabWidth = calculateMaxTabHeight(tabPlacement);
1098 maxTabWidth = calculateMaxTabHeight(tabPlacement);
1104 maxTabHeight = calculateMaxTabHeight(tabPlacement);
1111 maxTabHeight = calculateMaxTabHeight(tabPlacement);
1118 tabRunOverlay = getTabRunOverlay(tabPlacement);
1126 final boolean verticalTabRuns = (tabPlacement == SwingConstants.LEFT || tabPlacement == SwingConstants.RIGHT);
1137 calculateVerticalTabRunRect(rect, metrics, tabPlacement, returnAt, i, x, y);
1144 calculateHorizontalTabRunRect(rect, metrics, tabPlacement, returnAt, i, x, y);
1166 private void calculateHorizontalTabRunRect(final Rectangle rect, final FontMetrics metrics, final int tabPlacement, final int returnAt, final int i, final int x, final int y) {
1177 rect.width = calculateTabWidth(tabPlacement, i, metrics);
1184 private void calculateVerticalTabRunRect(final Rectangle rect, final FontMetrics metrics, final int tabPlacement, final int returnAt, final int i, final int x, final int y) {
1195 rect.height = calculateTabWidth(tabPlacement, i, metrics);