Java Doc for WindowsTabbedPaneUI.java in  » Swing-Library » jgoodies-looks » com » jgoodies » looks » windows » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » jgoodies looks » com.jgoodies.looks.windows 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jgoodies.looks.windows.WindowsTabbedPaneUI

WindowsTabbedPaneUI
final public class WindowsTabbedPaneUI extends com.sun.java.swing.plaf.windows.WindowsTabbedPaneUI (Code)
The JGoodies Windows L&F implementation of TabbedPaneUI.

The flat appearance is work in progress; currently it works only for a single line of tabs and paints distored tabs for multiple lines.
author:
   Karsten Lentzsch
version:
   $Revision: 1.5 $





Method Summary
protected  PropertyChangeListenercreatePropertyChangeListener()
     Creates and answer a handler that listens to property changes.
public static  ComponentUIcreateUI(JComponent x)
     Creates and answers the WindowsTabbedPaneUI.
protected  InsetsgetContentBorderInsets(int tabPlacement)
    
protected  IcongetIconForTab(int tabIndex)
     Answers the icon for the tab with the specified index.
protected  InsetsgetSelectedTabPadInsets(int tabPlacement)
    
protected  InsetsgetTabAreaInsets(int tabPlacement)
    
protected  intgetTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
    
protected  intgetTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
    
public  voidinstallUI(JComponent c)
     Installs the UI.
protected  voidlayoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
     Copied here from super(super)class to avoid labels being centered on vertical tab runs if they consist of icon and text.
protected  voidpaintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
     Paints the bottom edge of the pane's content border.
protected  voidpaintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
     Paints the left Edge of the pane's content border.
protected  voidpaintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
     Paints the right Edge of the pane's content border.
protected  voidpaintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
     Paints the top edge of the pane's content border.
protected  voidpaintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rectangles, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
    
protected  voidpaintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
     Paints the border for a single tab; it does not paint the tab's background.
protected  booleanshouldRotateTabRuns(int tabPlacement)
    



Method Detail
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()(Code)
Creates and answer a handler that listens to property changes. Unlike the superclass BasicTabbedPane, the PlasticTabbedPaneUI uses an extended Handler.



createUI
public static ComponentUI createUI(JComponent x)(Code)
Creates and answers the WindowsTabbedPaneUI.
See Also:   javax.swing.plaf.ComponentUI.createUI(JComponent)



getContentBorderInsets
protected Insets getContentBorderInsets(int tabPlacement)(Code)



getIconForTab
protected Icon getIconForTab(int tabIndex)(Code)
Answers the icon for the tab with the specified index. In case, we have globally switched of the use tab icons, we answer null if and only if we have a title.



getSelectedTabPadInsets
protected Insets getSelectedTabPadInsets(int tabPlacement)(Code)



getTabAreaInsets
protected Insets getTabAreaInsets(int tabPlacement)(Code)



getTabLabelShiftX
protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)(Code)



getTabLabelShiftY
protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)(Code)



installUI
public void installUI(JComponent c)(Code)
Installs the UI.
See Also:   javax.swing.plaf.ComponentUI.installUI(JComponent)



layoutLabel
protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)(Code)
Copied here from super(super)class to avoid labels being centered on vertical tab runs if they consist of icon and text.



paintContentBorderBottomEdge
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code)
Paints the bottom edge of the pane's content border.



paintContentBorderLeftEdge
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code)
Paints the left Edge of the pane's content border.



paintContentBorderRightEdge
protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code)
Paints the right Edge of the pane's content border.



paintContentBorderTopEdge
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code)
Paints the top edge of the pane's content border.



paintFocusIndicator
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rectangles, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)(Code)



paintTabBorder
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)(Code)
Paints the border for a single tab; it does not paint the tab's background.



shouldRotateTabRuns
protected boolean shouldRotateTabRuns(int tabPlacement)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.