|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Scrollable interface.
This interface is implemented by all visual objects that can be scrolled. The unit of scrolling is pixel.
Method Summary | |
int |
getScrollOffsetX()
Get scroll X offset. |
int |
getScrollOffsetY()
Get scroll Y offset. |
boolean |
isScrollable()
Is the scrolling enabled. |
void |
setScrollable(boolean isScrollingEnabled)
Enable or disable scrolling.. |
void |
setScrollOffsetX(int pixelsScrolledLeft)
Set scroll X offset. |
void |
setScrollOffsetY(int pixelsScrolledDown)
Set scroll Y offset. |
Method Detail |
public int getScrollOffsetX()
Scrolling offset is the number of pixels this scrollable has been scrolled to left.
public void setScrollOffsetX(int pixelsScrolledLeft)
Scrolling offset is the number of pixels this scrollable has been scrolled to left.
public int getScrollOffsetY()
Scrolling offset is the number of pixels this scrollable has been scrolled to down.
public void setScrollOffsetY(int pixelsScrolledDown)
Scrolling offset is the number of pixels this scrollable has been scrolled to down.
public boolean isScrollable()
Enabling scrolling allows the user to scroll the scrollable view interactively
public void setScrollable(boolean isScrollingEnabled)
Enabling scrolling allows the user to scroll the scrollable view interactively
isScrollingEnabled
- True iff the scrolling is allowed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |