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 @Nonnull public Point thumbLocation(@Nonnull JScrollBar scrollBar, int position)
Returns the location where to move the mouse pointer to scroll to the given position.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
scrollBar
- the target JScrollBar
.position
- the position to scroll to.@RunsInCurrentThread @Nonnull public Point blockLocationToScrollUp(@Nonnull JScrollBar scrollBar)
Returns the location where to move the mouse pointer to scroll one block up (or right).
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
scrollBar
- the target JScrollBar
.@RunsInCurrentThread @Nonnull public Point blockLocationToScrollDown(@Nonnull JScrollBar scrollBar)
Returns the location where to move the mouse pointer to scroll one block down (or left).
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
scrollBar
- the target JScrollBar
.@RunsInCurrentThread @Nonnull public Point unitLocationToScrollUp(@Nonnull JScrollBar scrollBar)
Returns the location where to move the mouse pointer to scroll one unit up (or right).
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
scrollBar
- the target JScrollBar
.@RunsInCurrentThread @Nonnull public Point unitLocationToScrollDown(@Nonnull JScrollBar scrollBar)
Returns the location where to move the mouse pointer to scroll one unit down (or left).
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
scrollBar
- the target JScrollBar
.Copyright © 2014–2019 AssertJ. All rights reserved.