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