public final class JScrollBarLocation extends Object
JScrollBar.| Constructor and Description |
|---|
JScrollBarLocation() |
| Modifier and Type | Method and Description |
|---|---|
Point |
blockLocationToScrollDown(JScrollBar scrollBar)
Returns the location where to move the mouse pointer to scroll one block down (or left.)
|
Point |
blockLocationToScrollUp(JScrollBar scrollBar)
Returns the location where to move the mouse pointer to scroll one block up (or right.)
|
Point |
thumbLocation(JScrollBar scrollBar,
int position)
Returns the location where to move the mouse pointer to scroll to the given position.
|
Point |
unitLocationToScrollDown(JScrollBar scrollBar)
Returns the location where to move the mouse pointer to scroll one unit down (or left.)
|
Point |
unitLocationToScrollUp(JScrollBar scrollBar)
Returns the location where to move the mouse pointer to scroll one unit up (or right.)
|
@RunsInCurrentThread public Point thumbLocation(JScrollBar scrollBar, int position)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
scrollBar - the target JScrollBar.position - the position to scroll to.@RunsInCurrentThread public Point blockLocationToScrollUp(JScrollBar scrollBar)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
scrollBar - the target JScrollBar.@RunsInCurrentThread public Point blockLocationToScrollDown(JScrollBar scrollBar)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
scrollBar - the target JScrollBar.@RunsInCurrentThread public Point unitLocationToScrollUp(JScrollBar scrollBar)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
scrollBar - the target JScrollBar.@RunsInCurrentThread public Point unitLocationToScrollDown(JScrollBar scrollBar)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
scrollBar - the target JScrollBar.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.