Java Doc for XScrollbar.java in  » 6.0-JDK-Platform » solaris » sun » awt » X11 » 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 » 6.0 JDK Platform » solaris » sun.awt.X11 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.awt.X11.XScrollbar

All known Subclasses:   sun.awt.X11.XVerticalScrollbar,  sun.awt.X11.XHorizontalScrollbar,
XScrollbar
abstract class XScrollbar (Code)
A simple vertical scroll bar.


Field Summary
final public static  intALIGNMENT_VERTICALALIGNMENT_HORIZONTAL
    
 intalignment
    
 intarrowArea
    
 intbarWidthbarLength
    
 PolygonfirstArrowsecondArrow
    
 intmode
    
 XScrollbarClientsb
    
 PointthumbOffset
    
 intwidthheight
    

Constructor Summary
public  XScrollbar(int alignment, XScrollbarClient sb)
    

Method Summary
abstract  booleanbeforeThumb(int x, int y)
    
 voidcalculateArrowWidth()
    
protected  RectanglecalculateThumbRect()
     Method to calculate the scroll thumb's size and position.
protected  PolygoncreateArrowShape(boolean vertical, boolean up)
    
 intgetArrowAreaWidth()
    
 intgetArrowWidth()
    
 intgetBlockIncrement()
     Gets the block increment for this scrollbar.
 intgetMaximum()
     Returns the maximum value of this Scrollbar.
 intgetMinimum()
     Returns the minimum value of this Scrollbar.
abstract protected  RectanglegetThumbArea()
    
 intgetUnitIncrement()
     Gets the unit increment for this scrollbar.
 intgetValue()
     Returns the current value of this Scrollbar.
 intgetVisibleAmount()
     Returns the visible amount of this Scrollbar.
public  voidhandleMouseEvent(int id, int modifiers, int x, int y)
    
 booleanisInArrow(int x, int y)
    
 booleanisInThumb(int x, int y)
     Is x,y in the scroll thumb? If we ever cache the thumb rect, we may need to clone the result of calculateThumbRect().
public  booleanneedsRepaint()
    
 voidnotifyValue(int v)
    
 voidnotifyValue(int v, boolean isAdjusting)
    
 voidpaint(Graphics g, Color colors, boolean paintAll)
    
 voidpaintArrows(Graphics2D g, Color background, Color darkShadow, Color lightShadow)
    
abstract protected  voidrebuildArrows()
    
 voidscroll()
     Scroll one unit.
synchronized  voidsetBlockIncrement(int blockSize)
     Sets the block increment for this scrollbar.
synchronized  voidsetMaximum(int newMaximum)
     Sets the maximum value for this Scrollbar.
synchronized  voidsetMinimum(int newMinimum)
     Sets the minimum value for this Scrollbar.
public  voidsetMode(int mode)
     The set method for mode property.
public  voidsetSize(int width, int height)
    
synchronized  voidsetUnitIncrement(int unitSize)
     Sets the unit increment for this scrollbar.
synchronized  voidsetValue(int newValue)
     Sets the value of this Scrollbar to the specified value.
Parameters:
  value - the new value of the Scrollbar.
synchronized  voidsetValues(int value, int visible, int minimum, int maximum)
     Sets the values for this Scrollbar. This method enforces the same constraints as in java.awt.Scrollbar:
  • The maximum must be greater than the minimum
  • The value must be greater than or equal to the minumum and less than or equal to the maximum minus the visible amount
  • The visible amount must be greater than 1 and less than or equal to the difference between the maximum and minimum values.
synchronized  voidsetValues(int value, int visible, int minimum, int maximum, int unitSize, int blockSize)
     Sets param of this Scrollbar to the specified values.
synchronized  voidsetVisibleAmount(int newAmount)
     Sets the visible amount of this Scrollbar, which is the range of values represented by the width of the scroll bar's bubble.
 voidstartScrolling()
     Tell the scroller to start scrolling.
 voidstartScrollingInstance()
     Tell the instance scroller to start scrolling.
 voidstopScrollingInstance()
     Tell the instance scroller to stop scrolling.
public  StringtoString()
    

Field Detail
ALIGNMENT_VERTICALALIGNMENT_HORIZONTAL
final public static int ALIGNMENT_VERTICALALIGNMENT_HORIZONTAL(Code)



alignment
int alignment(Code)



arrowArea
int arrowArea(Code)



barWidthbarLength
int barWidthbarLength(Code)



firstArrowsecondArrow
Polygon firstArrowsecondArrow(Code)



mode
int mode(Code)



sb
XScrollbarClient sb(Code)



thumbOffset
Point thumbOffset(Code)



widthheight
int widthheight(Code)




Constructor Detail
XScrollbar
public XScrollbar(int alignment, XScrollbarClient sb)(Code)




Method Detail
beforeThumb
abstract boolean beforeThumb(int x, int y)(Code)



calculateArrowWidth
void calculateArrowWidth()(Code)



calculateThumbRect
protected Rectangle calculateThumbRect()(Code)
Method to calculate the scroll thumb's size and position. This is based on CalcSliderRect in ScrollBar.c of Motif source. If we ever cache the thumb rect, we'll need to use a clone in isInThumb().



createArrowShape
protected Polygon createArrowShape(boolean vertical, boolean up)(Code)
Creates oriented directed arrow



getArrowAreaWidth
int getArrowAreaWidth()(Code)
Width of the area reserved for arrow



getArrowWidth
int getArrowWidth()(Code)
Width of the arrow image



getBlockIncrement
int getBlockIncrement()(Code)
Gets the block increment for this scrollbar.



getMaximum
int getMaximum()(Code)
Returns the maximum value of this Scrollbar.
See Also:   XScrollbar.getMinimum
See Also:   XScrollbar.getValue



getMinimum
int getMinimum()(Code)
Returns the minimum value of this Scrollbar.
See Also:   XScrollbar.getMaximum
See Also:   XScrollbar.getValue



getThumbArea
abstract protected Rectangle getThumbArea()(Code)
Gets the area of the scroll track



getUnitIncrement
int getUnitIncrement()(Code)
Gets the unit increment for this scrollbar.



getValue
int getValue()(Code)
Returns the current value of this Scrollbar.
See Also:   XScrollbar.getMinimum
See Also:   XScrollbar.getMaximum



getVisibleAmount
int getVisibleAmount()(Code)
Returns the visible amount of this Scrollbar.



handleMouseEvent
public void handleMouseEvent(int id, int modifiers, int x, int y)(Code)

See Also:   java.awt.event.MouseEvent
See Also:   MouseEvent.MOUSE_CLICKED
See Also:   MouseEvent.MOUSE_PRESSED
See Also:   MouseEvent.MOUSE_RELEASED
See Also:   MouseEvent.MOUSE_MOVED
See Also:   MouseEvent.MOUSE_ENTERED
See Also:   MouseEvent.MOUSE_EXITED
See Also:   MouseEvent.MOUSE_DRAGGED



isInArrow
boolean isInArrow(int x, int y)(Code)



isInThumb
boolean isInThumb(int x, int y)(Code)
Is x,y in the scroll thumb? If we ever cache the thumb rect, we may need to clone the result of calculateThumbRect().



needsRepaint
public boolean needsRepaint()(Code)



notifyValue
void notifyValue(int v)(Code)



notifyValue
void notifyValue(int v, boolean isAdjusting)(Code)



paint
void paint(Graphics g, Color colors, boolean paintAll)(Code)
paint the scrollbar
Parameters:
  g - the graphics context to paint into
Parameters:
  colors - the colors to use when painting the scrollbar
Parameters:
  width - the width of the scrollbar
Parameters:
  height - the height of the scrollbar
Parameters:
  paintAll - paint the whole scrollbar if true, just the thumb is false



paintArrows
void paintArrows(Graphics2D g, Color background, Color darkShadow, Color lightShadow)(Code)



rebuildArrows
abstract protected void rebuildArrows()(Code)



scroll
void scroll()(Code)
Scroll one unit.
See Also:   notifyValue



setBlockIncrement
synchronized void setBlockIncrement(int blockSize)(Code)
Sets the block increment for this scrollbar. This is the value that will be added (subtracted) when the user hits the block down (up) gadgets.
Parameters:
  blockSize - is the block size for increment or decrement of the value



setMaximum
synchronized void setMaximum(int newMaximum)(Code)
Sets the maximum value for this Scrollbar.
Parameters:
  maximum - the maximum value of the scrollbar



setMinimum
synchronized void setMinimum(int newMinimum)(Code)
Sets the minimum value for this Scrollbar.
Parameters:
  minimum - the minimum value of the scrollbar



setMode
public void setMode(int mode)(Code)
The set method for mode property. See 6243382 for more information



setSize
public void setSize(int width, int height)(Code)



setUnitIncrement
synchronized void setUnitIncrement(int unitSize)(Code)
Sets the unit increment for this scrollbar. This is the value that will be added (subtracted) when the user hits the unit down (up) gadgets.
Parameters:
  unitSize - is the unit size for increment or decrement of the value



setValue
synchronized void setValue(int newValue)(Code)
Sets the value of this Scrollbar to the specified value.
Parameters:
  value - the new value of the Scrollbar. If this value isbelow the current minimum or above the current maximum minus the visible amount, it becomes the new one of those values, respectively.
See Also:   XScrollbar.getValue



setValues
synchronized void setValues(int value, int visible, int minimum, int maximum)(Code)
Sets the values for this Scrollbar. This method enforces the same constraints as in java.awt.Scrollbar:
  • The maximum must be greater than the minimum
  • The value must be greater than or equal to the minumum and less than or equal to the maximum minus the visible amount
  • The visible amount must be greater than 1 and less than or equal to the difference between the maximum and minimum values.
Values which do not meet these criteria are quietly coerced to the appropriate boundary value.
Parameters:
  value - is the position in the current window.
Parameters:
  visible - is the amount visible per page
Parameters:
  minimum - is the minimum value of the scrollbar
Parameters:
  maximum - is the maximum value of the scrollbar



setValues
synchronized void setValues(int value, int visible, int minimum, int maximum, int unitSize, int blockSize)(Code)
Sets param of this Scrollbar to the specified values.
Parameters:
  value - is the position in the current window.
Parameters:
  visible - is the amount visible per page
Parameters:
  minimum - is the minimum value of the scrollbar
Parameters:
  maximum - is the maximum value of the scrollbar
Parameters:
  unitSize - is the unit size for increment or decrement of the value
Parameters:
  page - is the block size for increment or decrement of the value
See Also:   XScrollbar.setValues



setVisibleAmount
synchronized void setVisibleAmount(int newAmount)(Code)
Sets the visible amount of this Scrollbar, which is the range of values represented by the width of the scroll bar's bubble.
Parameters:
  visible - the amount visible per page



startScrolling
void startScrolling()(Code)
Tell the scroller to start scrolling.



startScrollingInstance
void startScrollingInstance()(Code)
Tell the instance scroller to start scrolling. See 6243382 for more information



stopScrollingInstance
void stopScrollingInstance()(Code)
Tell the instance scroller to stop scrolling. See 6243382 for more information



toString
public String toString()(Code)



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.