/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaTabbedPaneUI.java | 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) { argument 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, fina argument 221 getTabLabelShiftX(final int tabPlacement, final int tabIndex, final boolean isSelected) argument 237 getTabLabelShiftY(final int tabPlacement, final int tabIndex, final boolean isSelected) argument 249 getIconForScrollTab(final int tabPlacement, final int tabIndex, final boolean enabled) argument 269 paintContents(final Graphics g, final int tabPlacement, final int tabIndex, final Rectangle tabRect, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) argument 361 rotateGraphics(final Graphics2D g2d, final Rectangle tabRect, final Rectangle textRect, final Rectangle iconRect, final int tabPlacement) argument 408 paintTabNormal(final Graphics g, final int tabPlacement, final int tabIndex, final boolean active, final boolean frameActive, final boolean isLeftToRight) argument 412 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) argument 423 paintCUITab(final Graphics g, final int tabPlacement, final Rectangle tabRect, final boolean isSelected, final boolean frameActive, final boolean isLeftToRight, final int nonRectIndex) argument 541 getAlterationFor(final int tabPlacement) argument 553 fillTabWithBackground(final Graphics g, final Rectangle rect, final int tabPlacement, final boolean first, final boolean last, final Color color) argument 565 getContentBorderInsets(final int tabPlacement) argument 607 getContentDrawingInsets(final int tabPlacement) argument 629 paintContentBorder(final Graphics g, final int tabPlacement, final int selectedIndex) argument 727 getTabInsets(final int tabPlacement, final int tabIndex) argument 736 calculateTabHeight(final int tabPlacement, final int tabIndex, final int fontHeight) argument 746 shouldRotateTabRuns(final int tabPlacement) argument 1020 preferredTabAreaWidth(final int tabPlacement, final int height) argument 1032 preferredTabAreaHeight(final int tabPlacement, final int width) argument 1040 calculateTabRects(final int tabPlacement, final int tabCount) argument 1051 padTabRun(final int tabPlacement, final int start, final int end, final int max) argument 1082 superCalculateTabRects(final int tabPlacement, final int tabCount) argument 1166 calculateHorizontalTabRunRect(final Rectangle rect, final FontMetrics metrics, final int tabPlacement, final int returnAt, final int i, final int x, final int y) argument 1184 calculateVerticalTabRunRect(final Rectangle rect, final FontMetrics metrics, final int tabPlacement, final int returnAt, final int i, final int x, final int y) argument [all...] |
H A D | AquaTabbedPaneCopyFromBasicUI.java | 716 final int tabPlacement = tabPane.getTabPlacement(); 717 maxTabHeight = calculateMaxTabHeight(tabPlacement); 730 final int height = calculateTabHeight(tabPlacement, 0, fontHeight); 732 final int newHeight = calculateTabHeight(tabPlacement, i, fontHeight); 746 final int tabPlacement = tabPane.getTabPlacement(); 752 paintContentBorder(g, tabPlacement, selectedIndex); 758 paintTabArea(g, tabPlacement, selectedIndex); 761 paintContentBorder(g, tabPlacement, selectedIndex); 777 * @param tabPlacement the placement for the tabs within the JTabbedPane 782 protected void paintTabArea(final Graphics g, final int tabPlacement, fina argument 807 paintTab(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect) argument 870 createCroppedTabShape(final int tabPlacement, final Rectangle tabRect, final int cropline) argument 962 layoutLabel(final int tabPlacement, final FontMetrics metrics, final int tabIndex, final String title, final Icon icon, final Rectangle tabRect, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) argument 982 paintIcon(final Graphics g, final int tabPlacement, final int tabIndex, final Icon icon, final Rectangle iconRect, final boolean isSelected) argument 988 paintText(final Graphics g, final int tabPlacement, final Font font, final FontMetrics metrics, final int tabIndex, final String title, final Rectangle textRect, final boolean isSelected) argument 1021 getTabLabelShiftX(final int tabPlacement, final int tabIndex, final boolean isSelected) argument 1039 getTabLabelShiftY(final int tabPlacement, final int tabIndex, final boolean isSelected) argument 1058 paintFocusIndicator(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) argument 1098 paintTabBorder(final Graphics g, final int tabPlacement, final int tabIndex, final int x, final int y, final int w, final int h, final boolean isSelected) argument 1155 paintTabBackground(final Graphics g, final int tabPlacement, final int tabIndex, final int x, final int y, final int w, final int h, boolean isSelected) argument 1173 paintContentBorder(final Graphics g, final int tabPlacement, final int selectedIndex) argument 1233 paintContentBorderTopEdge(final Graphics g, final int tabPlacement, final int selectedIndex, final int x, final int y, final int w, final int h) argument 1256 paintContentBorderLeftEdge(final Graphics g, final int tabPlacement, final int selectedIndex, final int x, final int y, final int w, final int h) argument 1276 paintContentBorderBottomEdge(final Graphics g, final int tabPlacement, final int selectedIndex, final int x, final int y, final int w, final int h) argument 1304 paintContentBorderRightEdge(final Graphics g, final int tabPlacement, final int selectedIndex, final int x, final int y, final int w, final int h) argument 1550 getTabRunOverlay(final int tabPlacement) argument 1554 getTabRunIndent(final int tabPlacement, final int run) argument 1558 shouldPadTabRun(final int tabPlacement, final int run) argument 1562 shouldRotateTabRuns(final int tabPlacement) argument 1588 calculateTabHeight(final int tabPlacement, final int tabIndex, final int fontHeight) argument 1613 calculateMaxTabHeight(final int tabPlacement) argument 1624 calculateTabWidth(final int tabPlacement, final int tabIndex, final FontMetrics metrics) argument 1648 calculateMaxTabWidth(final int tabPlacement) argument 1658 calculateTabAreaHeight(final int tabPlacement, final int horizRunCount, final int maxTabHeight) argument 1664 calculateTabAreaWidth(final int tabPlacement, final int vertRunCount, final int maxTabWidth) argument 1670 getTabInsets(final int tabPlacement, final int tabIndex) argument 1674 getSelectedTabPadInsets(final int tabPlacement) argument 1679 getTabAreaInsets(final int tabPlacement) argument 1684 getContentBorderInsets(final int tabPlacement) argument 1809 selectAdjacentRunTab(final int tabPlacement, final int tabIndex, final int offset) argument 1882 getTabRunOffset(final int tabPlacement, final int tabCount, final int tabIndex, final boolean forward) argument 2182 preferredTabAreaHeight(final int tabPlacement, final int width) argument 2206 preferredTabAreaWidth(final int tabPlacement, final int height) argument 2380 calculateTabRects(final int tabPlacement, final int tabCount) argument 2566 rotateTabRuns(final int tabPlacement, final int selectedRun) argument 2576 normalizeTabRuns(final int tabPlacement, final int tabCount, final int start, final int max) argument 2643 padTabRun(final int tabPlacement, final int start, final int end, final int max) argument 2674 padSelectedTab(final int tabPlacement, final int selectedIndex) argument 2717 preferredTabAreaHeight(final int tabPlacement, final int width) argument 2721 preferredTabAreaWidth(final int tabPlacement, final int height) argument 2958 calculateTabRects(final int tabPlacement, final int tabCount) argument 3066 ScrollableTabSupport(final int tabPlacement) argument 3100 scrollForward(final int tabPlacement) argument 3116 scrollBackward(final int tabPlacement) argument 3123 setLeadingTabIndex(final int tabPlacement, final int index) argument [all...] |
H A D | AquaTabbedPaneTabState.java | 246 protected void alignRectsRunFor(final Rectangle[] rects, final Dimension tabPaneSize, final int tabPlacement, final boolean isRightToLeft) { argument 247 final boolean isVertical = tabPlacement == SwingConstants.LEFT || tabPlacement == SwingConstants.RIGHT;
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/ |
H A D | WindowsTabbedPaneUI.java | 121 protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) { argument 136 if (tabPlacement == LEFT || tabPlacement == RIGHT) { 137 int tabWidth = calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth); 138 if (tabPlacement == LEFT) { 143 int tabHeight = calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight); 144 if (tabPlacement == TOP) { 150 paintRotatedSkin(g, skin, tabPlacement, x, y, w, h, null); 154 super.paintContentBorder(g, tabPlacement, selectedIndex); 157 protected void paintTabBackground(Graphics g, int tabPlacement, in argument 164 paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected ) argument 201 paintRotatedSkin(Graphics g, Skin skin, int tabPlacement, int x, int y, int w, int h, State state) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicTabbedPaneUI.java | 754 int tabPlacement = tabPane.getTabPlacement(); 755 maxTabHeight = calculateMaxTabHeight(tabPlacement); 769 int height = calculateTabHeight(tabPlacement, 0, fontHeight); 771 int newHeight = calculateTabHeight(tabPlacement, i,fontHeight); 785 int tabPlacement = tabPane.getTabPlacement(); 791 paintContentBorder(g, tabPlacement, selectedIndex); 797 paintTabArea(g, tabPlacement, selectedIndex); 800 paintContentBorder(g, tabPlacement, selectedIndex); 816 * @param tabPlacement the placement for the tabs within the JTabbedPane 821 protected void paintTabArea(Graphics g, int tabPlacement, in argument 847 paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) argument 921 createCroppedTabShape(int tabPlacement, Rectangle tabRect, int cropline) argument 1015 layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected ) argument 1048 paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected ) argument 1056 paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) argument 1100 getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) argument 1118 getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) argument 1135 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) argument 1178 paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected ) argument 1238 paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected ) argument 1260 paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) argument 1322 paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument 1351 paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument 1377 paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument 1410 paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument 1672 getTabRunOverlay(int tabPlacement) argument 1676 getTabRunIndent(int tabPlacement, int run) argument 1680 shouldPadTabRun(int tabPlacement, int run) argument 1684 shouldRotateTabRuns(int tabPlacement) argument 1711 calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) argument 1736 calculateMaxTabHeight(int tabPlacement) argument 1747 calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) argument 1771 calculateMaxTabWidth(int tabPlacement) argument 1781 calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight) argument 1790 calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth) argument 1799 getTabInsets(int tabPlacement, int tabIndex) argument 1803 getSelectedTabPadInsets(int tabPlacement) argument 1808 getTabAreaInsets(int tabPlacement) argument 1813 getContentBorderInsets(int tabPlacement) argument 1941 selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset) argument 2019 getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward) argument 2339 preferredTabAreaHeight(int tabPlacement, int width) argument 2363 preferredTabAreaWidth(int tabPlacement, int height) argument 2548 calculateTabRects(int tabPlacement, int tabCount) argument 2736 rotateTabRuns(int tabPlacement, int selectedRun) argument 2746 normalizeTabRuns(int tabPlacement, int tabCount, int start, int max) argument 2814 padTabRun(int tabPlacement, int start, int end, int max) argument 2845 padSelectedTab(int tabPlacement, int selectedIndex) argument 2888 preferredTabAreaHeight(int tabPlacement, int width) argument 2892 preferredTabAreaWidth(int tabPlacement, int height) argument 3146 calculateTabRects(int tabPlacement, int tabCount) argument 3256 ScrollableTabSupport(int tabPlacement) argument 3290 scrollForward(int tabPlacement) argument 3306 scrollBackward(int tabPlacement) argument 3313 setLeadingTabIndex(int tabPlacement, int index) argument [all...] |
/openjdk7/jdk/test/javax/swing/JTabbedPane/6416920/ |
H A D | bug6416920.java | 73 public void padSelectedTab(int tabPlacement, int selectedIndex) { argument 74 super.padSelectedTab(tabPlacement, selectedIndex);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
H A D | SynthTabbedPaneUI.java | 339 protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) { argument 341 return super.getTabLabelShiftX(tabPlacement, tabIndex, isSelected); 351 protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) { argument 353 return super.getTabLabelShiftY(tabPlacement, tabIndex, isSelected); 441 int tabPlacement = tabPane.getTabPlacement(); 456 switch(tabPlacement) { 458 width = calculateTabAreaWidth(tabPlacement, runCount, 462 size = calculateTabAreaWidth(tabPlacement, runCount, 468 size = calculateTabAreaHeight(tabPlacement, runCount, 475 height = calculateTabAreaHeight(tabPlacement, runCoun 491 paintTabArea(Graphics g, int tabPlacement, int selectedIndex) argument 504 paintTabArea(SynthContext ss, Graphics g, int tabPlacement, int selectedIndex, Rectangle tabAreaBounds) argument 588 paintTab(SynthContext ss, Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) argument 656 layoutLabel(SynthContext ss, int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected ) argument 683 paintText(SynthContext ss, Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) argument 705 paintContentBorder(SynthContext ss, Graphics g, int tabPlacement, int selectedIndex) argument 756 calculateMaxTabHeight(int tabPlacement) argument 772 calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) argument 803 calculateMaxTabWidth(int tabPlacement) argument 819 getTabInsets(int tabPlacement, int tabIndex) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/ |
H A D | MotifTabbedPaneUI.java | 90 protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, argument 100 if (tabPlacement != TOP || selectedIndex < 0 || 113 protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, argument 123 if (tabPlacement != BOTTOM || selectedIndex < 0 || 135 protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, argument 144 if (tabPlacement != RIGHT || selectedIndex < 0 || 158 int tabPlacement, int tabIndex, 162 switch(tabPlacement) { 184 int tabPlacement, int tabIndex, 189 switch(tabPlacement) { 157 paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected ) argument 183 paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) argument 234 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) argument 272 getTabRunIndent(int tabPlacement, int run) argument 276 getTabRunOverlay(int tabPlacement) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalTabbedPaneUI.java | 96 protected void paintTabBorder( Graphics g, int tabPlacement, argument 102 switch ( tabPlacement ) { 727 protected void paintTabBackground( Graphics g, int tabPlacement, argument 737 switch ( tabPlacement ) { 756 switch ( tabPlacement ) { 781 protected int getTabLabelShiftX( int tabPlacement, int tabIndex, boolean isSelected ) { argument 789 protected int getTabLabelShiftY( int tabPlacement, int tabIndex, boolean isSelected ) { argument 803 int tabPlacement = tabPane.getTabPlacement(); 816 switch ( tabPlacement ) { 819 calculateTabAreaWidth( tabPlacement, runCoun 851 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) argument 939 paintContentBorderTopEdge( Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h ) argument 1011 paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument 1059 paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument 1101 paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument 1163 shouldRotateTabRuns( int tabPlacement, int selectedRun ) argument 1168 shouldPadTabRun( int tabPlacement, int run ) argument 1208 normalizeTabRuns( int tabPlacement, int tabCount, int start, int max ) argument 1221 rotateTabRuns( int tabPlacement, int selectedRun ) argument 1225 padSelectedTab( int tabPlacement, int selectedIndex ) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | JTabbedPane.java | 137 protected int tabPlacement = TOP; field in class:JTabbedPane 179 * @param tabPlacement the placement for the tabs relative to the content 182 public JTabbedPane(int tabPlacement) { argument 183 this(tabPlacement, WRAP_TAB_LAYOUT); 194 * @param tabPlacement the placement for the tabs relative to the content 201 public JTabbedPane(int tabPlacement, int tabLayoutPolicy) { argument 202 setTabPlacement(tabPlacement); 463 return tabPlacement; 476 * @param tabPlacement the placement for the tabs relative to the content 491 public void setTabPlacement(int tabPlacement) { argument [all...] |
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ |
H A D | Group.java | 62 private int tabPlacement; field in class:Group 130 public void setTabbed(int tabPlacement) { argument 132 this.tabPlacement = tabPlacement; 177 JTabbedPane jtp = new JTabbedPane(tabPlacement);
|