Java Doc for SubstanceSliderUI.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) 


java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.SliderUI
         javax.swing.plaf.basic.BasicSliderUI
            org.jvnet.substance.SubstanceSliderUI

SubstanceSliderUI
public class SubstanceSliderUI extends BasicSliderUI implements Trackable(Code)
UI for sliders in Substance look and feel.
author:
   Kirill Grouchnikov


Field Summary
protected  IconhorizontalIcon
     Icon for horizontal sliders.
protected  IconroundIcon
     Icon for sliders without labels and ticks.
protected  FadeStateListenersubstanceFadeStateListener
     Listener for fade animations.
protected  IconverticalIcon
     Icon for vertical sliders.

Constructor Summary
public  SubstanceSliderUI(JSlider slider)
     Simple constructor.

Method Summary
protected  voidcalculateLabelRect()
    
protected  voidcalculateThumbLocation()
    
protected  voidcalculateTickRect()
    
protected  voidcalculateTrackRect()
    
public static  ComponentUIcreateUI(JComponent c)
    
public  ButtonModelgetButtonModel()
     Returns the button model for tracking the thumb transitions.
protected  IcongetIcon()
     Returns the thumb icon for the associated slider.
public  DimensiongetPreferredHorizontalSize()
    
public  DimensiongetPreferredSize(JComponent c)
    
public  DimensiongetPreferredVerticalSize()
    
protected  intgetThumbOverhang()
     Returns the amount that the thumb goes past the slide bar.
protected  DimensiongetThumbSize()
    
protected  intgetTickLength()
    
protected  intgetTrackWidth()
     Returns the shorter dimension of the track.
protected  voidinstallDefaults(JSlider slider)
    
protected  voidinstallListeners(JSlider slider)
    
public  booleanisInside(MouseEvent me)
    
public synchronized  voidpaint(Graphics g, JComponent c)
    
public  voidpaintFocus(Graphics g)
    
public  voidpaintLabels(Graphics g)
    
protected  voidpaintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
    
protected  voidpaintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
    
protected  voidpaintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
    
protected  voidpaintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
    
public  voidpaintThumb(Graphics g)
    
public  voidpaintTicks(Graphics g)
    
public  voidpaintTrack(Graphics g)
    
public  voidsetThumbLocation(int x, int y)
    
protected  voiduninstallListeners(JSlider slider)
    

Field Detail
horizontalIcon
protected Icon horizontalIcon(Code)
Icon for horizontal sliders.



roundIcon
protected Icon roundIcon(Code)
Icon for sliders without labels and ticks.



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



verticalIcon
protected Icon verticalIcon(Code)
Icon for vertical sliders.




Constructor Detail
SubstanceSliderUI
public SubstanceSliderUI(JSlider slider)(Code)
Simple constructor.
Parameters:
  slider - Slider.




Method Detail
calculateLabelRect
protected void calculateLabelRect()(Code)



calculateThumbLocation
protected void calculateThumbLocation()(Code)



calculateTickRect
protected void calculateTickRect()(Code)



calculateTrackRect
protected void calculateTrackRect()(Code)



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



getButtonModel
public ButtonModel getButtonModel()(Code)
Returns the button model for tracking the thumb transitions. Button model for tracking the thumb transitions.



getIcon
protected Icon getIcon()(Code)
Returns the thumb icon for the associated slider. The thumb icon for the associated slider.



getPreferredHorizontalSize
public Dimension getPreferredHorizontalSize()(Code)



getPreferredSize
public Dimension getPreferredSize(JComponent c)(Code)



getPreferredVerticalSize
public Dimension getPreferredVerticalSize()(Code)



getThumbOverhang
protected int getThumbOverhang()(Code)
Returns the amount that the thumb goes past the slide bar. Amount that the thumb goes past the slide bar.



getThumbSize
protected Dimension getThumbSize()(Code)



getTickLength
protected int getTickLength()(Code)



getTrackWidth
protected int getTrackWidth()(Code)
Returns the shorter dimension of the track. Shorter dimension of the track.



installDefaults
protected void installDefaults(JSlider slider)(Code)



installListeners
protected void installListeners(JSlider slider)(Code)



isInside
public boolean isInside(MouseEvent me)(Code)



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



paintFocus
public void paintFocus(Graphics g)(Code)



paintLabels
public void paintLabels(Graphics g)(Code)



paintMajorTickForHorizSlider
protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)(Code)



paintMajorTickForVertSlider
protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)(Code)



paintMinorTickForHorizSlider
protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)(Code)



paintMinorTickForVertSlider
protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)(Code)



paintThumb
public void paintThumb(Graphics g)(Code)



paintTicks
public void paintTicks(Graphics g)(Code)



paintTrack
public void paintTrack(Graphics g)(Code)



setThumbLocation
public void setThumbLocation(int x, int y)(Code)



uninstallListeners
protected void uninstallListeners(JSlider slider)(Code)



Fields inherited from javax.swing.plaf.basic.BasicSliderUI
final public static int MAX_SCROLL(Code)(Java Doc)
final public static int MIN_SCROLL(Code)(Java Doc)
final public static int NEGATIVE_SCROLL(Code)(Java Doc)
final public static int POSITIVE_SCROLL(Code)(Java Doc)
protected ChangeListener changeListener(Code)(Java Doc)
protected ComponentListener componentListener(Code)(Java Doc)
protected Rectangle contentRect(Code)(Java Doc)
protected Insets focusInsets(Code)(Java Doc)
protected FocusListener focusListener(Code)(Java Doc)
protected Rectangle focusRect(Code)(Java Doc)
protected Insets insetCache(Code)(Java Doc)
protected Rectangle labelRect(Code)(Java Doc)
protected boolean leftToRightCache(Code)(Java Doc)
protected PropertyChangeListener propertyChangeListener(Code)(Java Doc)
protected ScrollListener scrollListener(Code)(Java Doc)
protected Timer scrollTimer(Code)(Java Doc)
protected JSlider slider(Code)(Java Doc)
protected Rectangle thumbRect(Code)(Java Doc)
protected Rectangle tickRect(Code)(Java Doc)
protected int trackBuffer(Code)(Java Doc)
protected TrackListener trackListener(Code)(Java Doc)
protected Rectangle trackRect(Code)(Java Doc)

Methods inherited from javax.swing.plaf.basic.BasicSliderUI
protected void calculateContentRect()(Code)(Java Doc)
protected void calculateFocusRect()(Code)(Java Doc)
protected void calculateGeometry()(Code)(Java Doc)
protected void calculateLabelRect()(Code)(Java Doc)
protected void calculateThumbLocation()(Code)(Java Doc)
protected void calculateThumbSize()(Code)(Java Doc)
protected void calculateTickRect()(Code)(Java Doc)
protected void calculateTrackBuffer()(Code)(Java Doc)
protected void calculateTrackRect()(Code)(Java Doc)
protected ChangeListener createChangeListener(JSlider slider)(Code)(Java Doc)
protected ComponentListener createComponentListener(JSlider slider)(Code)(Java Doc)
protected FocusListener createFocusListener(JSlider slider)(Code)(Java Doc)
protected PropertyChangeListener createPropertyChangeListener(JSlider slider)(Code)(Java Doc)
protected ScrollListener createScrollListener(JSlider slider)(Code)(Java Doc)
protected TrackListener createTrackListener(JSlider slider)(Code)(Java Doc)
public static ComponentUI createUI(JComponent b)(Code)(Java Doc)
protected boolean drawInverted()(Code)(Java Doc)
public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc)
protected Color getFocusColor()(Code)(Java Doc)
protected int getHeightOfHighValueLabel()(Code)(Java Doc)
protected int getHeightOfLowValueLabel()(Code)(Java Doc)
protected int getHeightOfTallestLabel()(Code)(Java Doc)
protected Integer getHighestValue()(Code)(Java Doc)
protected Component getHighestValueLabel()(Code)(Java Doc)
protected Color getHighlightColor()(Code)(Java Doc)
protected Integer getLowestValue()(Code)(Java Doc)
protected Component getLowestValueLabel()(Code)(Java Doc)
public Dimension getMaximumSize(JComponent c)(Code)(Java Doc)
public Dimension getMinimumHorizontalSize()(Code)(Java Doc)
public Dimension getMinimumSize(JComponent c)(Code)(Java Doc)
public Dimension getMinimumVerticalSize()(Code)(Java Doc)
public Dimension getPreferredHorizontalSize()(Code)(Java Doc)
public Dimension getPreferredSize(JComponent c)(Code)(Java Doc)
public Dimension getPreferredVerticalSize()(Code)(Java Doc)
protected Color getShadowColor()(Code)(Java Doc)
protected Dimension getThumbSize()(Code)(Java Doc)
protected int getTickLength()(Code)(Java Doc)
protected int getWidthOfHighValueLabel()(Code)(Java Doc)
protected int getWidthOfLowValueLabel()(Code)(Java Doc)
protected int getWidthOfWidestLabel()(Code)(Java Doc)
protected void installDefaults(JSlider slider)(Code)(Java Doc)
protected void installKeyboardActions(JSlider slider)(Code)(Java Doc)
protected void installListeners(JSlider slider)(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
protected boolean isDragging()(Code)(Java Doc)
protected boolean labelsHaveSameBaselines()(Code)(Java Doc)
public void paint(Graphics g, JComponent c)(Code)(Java Doc)
public void paintFocus(Graphics g)(Code)(Java Doc)
protected void paintHorizontalLabel(Graphics g, int value, Component label)(Code)(Java Doc)
public void paintLabels(Graphics g)(Code)(Java Doc)
protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)(Code)(Java Doc)
protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)(Code)(Java Doc)
protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)(Code)(Java Doc)
protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)(Code)(Java Doc)
public void paintThumb(Graphics g)(Code)(Java Doc)
public void paintTicks(Graphics g)(Code)(Java Doc)
public void paintTrack(Graphics g)(Code)(Java Doc)
protected void paintVerticalLabel(Graphics g, int value, Component label)(Code)(Java Doc)
protected void recalculateIfInsetsChanged()(Code)(Java Doc)
protected void recalculateIfOrientationChanged()(Code)(Java Doc)
public void scrollByBlock(int direction)(Code)(Java Doc)
public void scrollByUnit(int direction)(Code)(Java Doc)
protected void scrollDueToClickInTrack(int dir)(Code)(Java Doc)
public void setThumbLocation(int x, int y)(Code)(Java Doc)
protected void uninstallKeyboardActions(JSlider slider)(Code)(Java Doc)
protected void uninstallListeners(JSlider slider)(Code)(Java Doc)
public void uninstallUI(JComponent c)(Code)(Java Doc)
public int valueForXPosition(int xPos)(Code)(Java Doc)
public int valueForYPosition(int yPos)(Code)(Java Doc)
protected int xPositionForValue(int value)(Code)(Java Doc)
protected int yPositionForValue(int value)(Code)(Java Doc)
protected int yPositionForValue(int value, int trackY, int trackHeight)(Code)(Java Doc)


Methods inherited from javax.swing.plaf.ComponentUI
public boolean contains(JComponent c, int x, int y)(Code)(Java Doc)
public static ComponentUI createUI(JComponent c)(Code)(Java Doc)
public Accessible getAccessibleChild(JComponent c, int i)(Code)(Java Doc)
public int getAccessibleChildrenCount(JComponent c)(Code)(Java Doc)
public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc)
public Dimension getMaximumSize(JComponent c)(Code)(Java Doc)
public Dimension getMinimumSize(JComponent c)(Code)(Java Doc)
public Dimension getPreferredSize(JComponent c)(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
public void paint(Graphics g, JComponent c)(Code)(Java Doc)
public void uninstallUI(JComponent c)(Code)(Java Doc)
public void update(Graphics g, JComponent c)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.