Example usage for Java com.badlogic.gdx.scenes.scene2d.ui ScrollPane fields, constructors, methods, implement or subclass
The text is from its open source code.
ScrollPane(Actor widget, Skin skin) | |
ScrollPane(Actor widget, ScrollPaneStyle style) | |
ScrollPane(Actor widget) | |
ScrollPane(Actor widget, Skin skin, String styleName) |
float | getScrollX() Returns the x scroll position in pixels, where 0 is the left of the scroll pane. |
float | getScrollY() Returns the y scroll position in pixels, where 0 is the top of the scroll pane. |
Actor | getWidget() Returns the actor embedded in this scroll pane, or null. |
void | layout() |
void | scrollTo(float x, float y, float width, float height) Sets the scroll offset so the specified rectangle is fully in view, if possible. |
void | setCancelTouchFocus(boolean cancelTouchFocus) When true (default), the Stage#cancelTouchFocus() touch focus} is cancelled when flick scrolling begins. |
void | setClamp(boolean clamp) For flick scroll, prevents scrolling out of the widget's bounds. |
void | setFadeScrollBars(boolean fadeScrollBars) When true the scrollbars don't reduce the scrollable size and fade out after some time of not being used. |
void | setFlickScroll(boolean flickScroll) |
void | setForceScroll(boolean x, boolean y) Forces enabling scrollbars (for non-flick scroll) and overscrolling (for flick scroll) in a direction, even if the contents do not exceed the bounds in that direction. |
void | setOverscroll(boolean overscrollX, boolean overscrollY) For flick scroll, if true the widget can be scrolled slightly past its bounds and will animate back to its bounds when scrolling is stopped. |
void | setScrollBarPositions(boolean bottom, boolean right) Set the position of the vertical and horizontal scroll bars. |
void | setScrollbarsOnTop(boolean scrollbarsOnTop) When false (the default), the widget is clipped so it is not drawn under the scrollbars. |
void | setScrollingDisabled(boolean x, boolean y) Disables scrolling in a direction. |
void | setScrollPercentX(float percentX) |
void | setScrollPercentY(float percentY) |
void | setScrollX(float pixels) |
void | setScrollY(float pixels) |
void | setSmoothScrolling(boolean smoothScrolling) |
void | setStyle(ScrollPaneStyle style) |
void | setupFadeScrollBars(float fadeAlphaSeconds, float fadeDelaySeconds) |
void | setWidget(Actor widget) Sets the Actor embedded in this scroll pane. |