Java Doc for SubstanceScrollBarUI.java in  » Swing-Library » substance-look-feel » org » jvnet » substance » 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 » substance look feel » org.jvnet.substance 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.plaf.basic.BasicScrollBarUI
   org.jvnet.substance.SubstanceScrollBarUI

SubstanceScrollBarUI
public class SubstanceScrollBarUI extends BasicScrollBarUI implements Trackable(Code)
UI for scroll bars in Substance look and feel.
author:
   Kirill Grouchnikov

Inner Class :protected class SubstanceTrackListener extends TrackListener
Inner Class :protected class SubstanceArrowButtonListener extends ArrowButtonListener
Inner Class :protected class PolicyChanger implements ActionListener

Field Summary
protected  CompositeButtonModelcompositeButtonsModel
     Surrogate model to sync between rollover effects of scroll buttons and scroll track / scroll thumb.
protected  CompositeButtonModelcompositeScrollTrackModel
     Surrogate model to sync between rollover effects of scroll buttons and scroll track / scroll thumb.
protected  JButtonmySecondDecreaseButton
     The second decrease button.
protected  JButtonmySecondIncreaseButton
     The second increase button.
protected  intscrollBarWidth
     Scroll bar width.
protected  AdjustmentListenersubstanceAdjustmentListener
     Listener on adjustments made to the scrollbar model - this is for the overlay mode (see SubstanceLookAndFeel.OVERLAY_PROPERTY and repaiting both scrollbars with the viewport.
protected  MouseListenersubstanceDebugUiListener
     Listener for debui UI mode.
protected  FadeStateListenersubstanceFadeStateListener
     Listener for fade animations.

Constructor Summary
protected  SubstanceScrollBarUI(JComponent b)
     Simple constructor.

Method Summary
protected  ArrowButtonListenercreateArrowButtonListener()
    
protected  JButtoncreateDecreaseButton(int orientation)
    
protected  JButtoncreateGeneralDecreaseButton(int orientation, boolean isRegular)
     Creates a decrease button.
Parameters:
  orientation - Button orientation.
Parameters:
  isRegular - if true, the regular (upper / left) decreasebutton is created, if false, the additional(lower / right) decrease button is created forSubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT,SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLEandSubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTHkinds.
protected  JButtoncreateGeneralIncreaseButton(int orientation, boolean isRegular)
     Creates a increase button.
Parameters:
  orientation - Button orientation.
Parameters:
  isRegular - if true, the regular (lower / right) increasebutton is created, if false, the additional(upper / left) increase button is created forSubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTHkind.
protected  JButtoncreateIncreaseButton(int orientation)
    
protected  TrackListenercreateTrackListener()
    
public static  ComponentUIcreateUI(JComponent b)
    
public static  StringgetMemoryUsage()
     Returns the memory usage string.
public  DimensiongetPreferredSize(JComponent c)
    
protected  ComponentStategetState(JButton scrollButton)
     Returns the scroll button state.
Parameters:
  scrollButton - Scroll button.
protected  voidinstallComponents()
    
protected  voidinstallDefaults()
    
protected  voidinstallListeners()
    
public  booleanisInside(MouseEvent me)
    
protected  voidlayoutHScrollbar(JScrollBar sb)
    
protected  voidlayoutHScrollbarAdjacent(JScrollBar sb)
     Lays out the horizontal scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT .
protected  voidlayoutHScrollbarMultiple(JScrollBar sb)
     Lays out the horizontal scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE .
protected  voidlayoutHScrollbarMultipleBoth(JScrollBar sb)
     Lays out the horizontal scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE .
protected  voidlayoutHScrollbarNone(JScrollBar sb)
     Lays out the horizontal scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.NONE .
protected  voidlayoutVScrollbar(JScrollBar sb)
    
protected  voidlayoutVScrollbarAdjacent(JScrollBar sb)
     Lays out the vertical scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT .
protected  voidlayoutVScrollbarMultiple(JScrollBar sb)
     Lays out the vertical scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE .
protected  voidlayoutVScrollbarMultipleBoth(JScrollBar sb)
     Lays out the vertical scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTH .
protected  voidlayoutVScrollbarNone(JScrollBar sb)
     Lays out the vertical scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT .
public  voidpaint(Graphics g, JComponent c)
    
protected  voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
    
protected  voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds)
    
public static synchronized  voidreset()
     Resets image maps (used when setting new theme).
public  voidscrollByBlock(int direction)
    
public  voidscrollByUnits(int direction, int units)
     Scrolls the associated scroll bar.
protected  voiduninstallComponents()
    
protected  voiduninstallListeners()
    

Field Detail
compositeButtonsModel
protected CompositeButtonModel compositeButtonsModel(Code)
Surrogate model to sync between rollover effects of scroll buttons and scroll track / scroll thumb.
since:
   version 3.2



compositeScrollTrackModel
protected CompositeButtonModel compositeScrollTrackModel(Code)
Surrogate model to sync between rollover effects of scroll buttons and scroll track / scroll thumb.
since:
   version 3.2



mySecondDecreaseButton
protected JButton mySecondDecreaseButton(Code)
The second decrease button. Is shown under SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT , SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE and SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTH modes.
since:
   version 3.1



mySecondIncreaseButton
protected JButton mySecondIncreaseButton(Code)
The second increase button. Is shown only under SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTH mode.
since:
   version 3.1



scrollBarWidth
protected int scrollBarWidth(Code)
Scroll bar width.



substanceAdjustmentListener
protected AdjustmentListener substanceAdjustmentListener(Code)
Listener on adjustments made to the scrollbar model - this is for the overlay mode (see SubstanceLookAndFeel.OVERLAY_PROPERTY and repaiting both scrollbars with the viewport.
since:
   version 3.2



substanceDebugUiListener
protected MouseListener substanceDebugUiListener(Code)
Listener for debui UI mode.



substanceFadeStateListener
protected FadeStateListener substanceFadeStateListener(Code)
Listener for fade animations.




Constructor Detail
SubstanceScrollBarUI
protected SubstanceScrollBarUI(JComponent b)(Code)
Simple constructor.
Parameters:
  b - Associated component.




Method Detail
createArrowButtonListener
protected ArrowButtonListener createArrowButtonListener()(Code)



createDecreaseButton
protected JButton createDecreaseButton(int orientation)(Code)



createGeneralDecreaseButton
protected JButton createGeneralDecreaseButton(int orientation, boolean isRegular)(Code)
Creates a decrease button.
Parameters:
  orientation - Button orientation.
Parameters:
  isRegular - if true, the regular (upper / left) decreasebutton is created, if false, the additional(lower / right) decrease button is created forSubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT,SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLEandSubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTHkinds. Decrease button.



createGeneralIncreaseButton
protected JButton createGeneralIncreaseButton(int orientation, boolean isRegular)(Code)
Creates a increase button.
Parameters:
  orientation - Button orientation.
Parameters:
  isRegular - if true, the regular (lower / right) increasebutton is created, if false, the additional(upper / left) increase button is created forSubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTHkind. Increase button.



createIncreaseButton
protected JButton createIncreaseButton(int orientation)(Code)



createTrackListener
protected TrackListener createTrackListener()(Code)



createUI
public static ComponentUI createUI(JComponent b)(Code)



getMemoryUsage
public static String getMemoryUsage()(Code)
Returns the memory usage string. The memory usage string.



getPreferredSize
public Dimension getPreferredSize(JComponent c)(Code)



getState
protected ComponentState getState(JButton scrollButton)(Code)
Returns the scroll button state.
Parameters:
  scrollButton - Scroll button. Scroll button state.



installComponents
protected void installComponents()(Code)



installDefaults
protected void installDefaults()(Code)



installListeners
protected void installListeners()(Code)



isInside
public boolean isInside(MouseEvent me)(Code)



layoutHScrollbar
protected void layoutHScrollbar(JScrollBar sb)(Code)



layoutHScrollbarAdjacent
protected void layoutHScrollbarAdjacent(JScrollBar sb)(Code)
Lays out the horizontal scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT .
Parameters:
  sb - Scroll bar.



layoutHScrollbarMultiple
protected void layoutHScrollbarMultiple(JScrollBar sb)(Code)
Lays out the horizontal scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE .
Parameters:
  sb - Scroll bar.



layoutHScrollbarMultipleBoth
protected void layoutHScrollbarMultipleBoth(JScrollBar sb)(Code)
Lays out the horizontal scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE .
Parameters:
  sb - Scroll bar.



layoutHScrollbarNone
protected void layoutHScrollbarNone(JScrollBar sb)(Code)
Lays out the horizontal scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.NONE .
Parameters:
  sb - Scroll bar.



layoutVScrollbar
protected void layoutVScrollbar(JScrollBar sb)(Code)



layoutVScrollbarAdjacent
protected void layoutVScrollbarAdjacent(JScrollBar sb)(Code)
Lays out the vertical scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT .
Parameters:
  sb - Scroll bar.



layoutVScrollbarMultiple
protected void layoutVScrollbarMultiple(JScrollBar sb)(Code)
Lays out the vertical scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE .
Parameters:
  sb - Scroll bar.



layoutVScrollbarMultipleBoth
protected void layoutVScrollbarMultipleBoth(JScrollBar sb)(Code)
Lays out the vertical scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTH .
Parameters:
  sb - Scroll bar.



layoutVScrollbarNone
protected void layoutVScrollbarNone(JScrollBar sb)(Code)
Lays out the vertical scroll bar when the button policy is SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT .
Parameters:
  sb - Scroll bar.



paint
public void paint(Graphics g, JComponent c)(Code)



paintThumb
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)(Code)



paintTrack
protected void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)(Code)



reset
public static synchronized void reset()(Code)
Resets image maps (used when setting new theme).
See Also:   SubstanceLookAndFeel.setCurrentTheme(String)
See Also:   SubstanceLookAndFeel.setCurrentTheme(SubstanceTheme)



scrollByBlock
public void scrollByBlock(int direction)(Code)



scrollByUnits
public void scrollByUnits(int direction, int units)(Code)
Scrolls the associated scroll bar.
Parameters:
  direction - Direction.
Parameters:
  units - Scroll units.



uninstallComponents
protected void uninstallComponents()(Code)



uninstallListeners
protected void uninstallListeners()(Code)



Fields inherited from javax.swing.plaf.basic.BasicScrollBarUI
final protected static int DECREASE_HIGHLIGHT(Code)(Java Doc)
final protected static int INCREASE_HIGHLIGHT(Code)(Java Doc)
final protected static int NO_HIGHLIGHT(Code)(Java Doc)
protected ArrowButtonListener buttonListener(Code)(Java Doc)
protected JButton decrButton(Code)(Java Doc)
protected JButton incrButton(Code)(Java Doc)
protected boolean isDragging(Code)(Java Doc)
protected Dimension maximumThumbSize(Code)(Java Doc)
protected Dimension minimumThumbSize(Code)(Java Doc)
protected ModelListener modelListener(Code)(Java Doc)
protected PropertyChangeListener propertyChangeListener(Code)(Java Doc)
protected ScrollListener scrollListener(Code)(Java Doc)
protected Timer scrollTimer(Code)(Java Doc)
protected JScrollBar scrollbar(Code)(Java Doc)
protected Color thumbColor(Code)(Java Doc)
protected Color thumbDarkShadowColor(Code)(Java Doc)
protected Color thumbHighlightColor(Code)(Java Doc)
protected Color thumbLightShadowColor(Code)(Java Doc)
protected Rectangle thumbRect(Code)(Java Doc)
protected Color trackColor(Code)(Java Doc)
protected int trackHighlight(Code)(Java Doc)
protected Color trackHighlightColor(Code)(Java Doc)
protected TrackListener trackListener(Code)(Java Doc)
protected Rectangle trackRect(Code)(Java Doc)

Methods inherited from javax.swing.plaf.basic.BasicScrollBarUI
public void addLayoutComponent(String name, Component child)(Code)(Java Doc)
protected void configureScrollBarColors()(Code)(Java Doc)
protected ArrowButtonListener createArrowButtonListener()(Code)(Java Doc)
protected JButton createDecreaseButton(int orientation)(Code)(Java Doc)
protected JButton createIncreaseButton(int orientation)(Code)(Java Doc)
protected ModelListener createModelListener()(Code)(Java Doc)
protected PropertyChangeListener createPropertyChangeListener()(Code)(Java Doc)
protected ScrollListener createScrollListener()(Code)(Java Doc)
protected TrackListener createTrackListener()(Code)(Java Doc)
public static ComponentUI createUI(JComponent c)(Code)(Java Doc)
public Dimension getMaximumSize(JComponent c)(Code)(Java Doc)
protected Dimension getMaximumThumbSize()(Code)(Java Doc)
protected Dimension getMinimumThumbSize()(Code)(Java Doc)
public Dimension getPreferredSize(JComponent c)(Code)(Java Doc)
public boolean getSupportsAbsolutePositioning()(Code)(Java Doc)
protected Rectangle getThumbBounds()(Code)(Java Doc)
protected Rectangle getTrackBounds()(Code)(Java Doc)
protected void installComponents()(Code)(Java Doc)
protected void installDefaults()(Code)(Java Doc)
protected void installKeyboardActions()(Code)(Java Doc)
protected void installListeners()(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
public boolean isThumbRollover()(Code)(Java Doc)
public void layoutContainer(Container scrollbarContainer)(Code)(Java Doc)
protected void layoutHScrollbar(JScrollBar sb)(Code)(Java Doc)
protected void layoutVScrollbar(JScrollBar sb)(Code)(Java Doc)
public Dimension minimumLayoutSize(Container scrollbarContainer)(Code)(Java Doc)
public void paint(Graphics g, JComponent c)(Code)(Java Doc)
protected void paintDecreaseHighlight(Graphics g)(Code)(Java Doc)
protected void paintIncreaseHighlight(Graphics g)(Code)(Java Doc)
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)(Code)(Java Doc)
protected void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)(Code)(Java Doc)
public Dimension preferredLayoutSize(Container scrollbarContainer)(Code)(Java Doc)
public void removeLayoutComponent(Component child)(Code)(Java Doc)
protected void scrollByBlock(int direction)(Code)(Java Doc)
protected void scrollByUnit(int direction)(Code)(Java Doc)
protected void setThumbBounds(int x, int y, int width, int height)(Code)(Java Doc)
protected void setThumbRollover(boolean active)(Code)(Java Doc)
protected void uninstallComponents()(Code)(Java Doc)
protected void uninstallDefaults()(Code)(Java Doc)
protected void uninstallKeyboardActions()(Code)(Java Doc)
protected void uninstallListeners()(Code)(Java Doc)
public void uninstallUI(JComponent c)(Code)(Java Doc)

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