Java com.badlogic.gdx.scenes.scene2d.ui ScrollPane fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.scenes.scene2d.ui ScrollPane fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.scenes.scene2d.ui ScrollPane.

The text is from its open source code.

Subclass

com.badlogic.gdx.scenes.scene2d.ui.ScrollPane has subclasses.
Click this link to see all its subclasses.

Constructor

Method

floatgetScrollX()
Returns the x scroll position in pixels, where 0 is the left of the scroll pane.
floatgetScrollY()
Returns the y scroll position in pixels, where 0 is the top of the scroll pane.
ActorgetWidget()
Returns the actor embedded in this scroll pane, or null.
voidlayout()
voidscrollTo(float x, float y, float width, float height)
Sets the scroll offset so the specified rectangle is fully in view, if possible.
voidsetCancelTouchFocus(boolean cancelTouchFocus)
When true (default), the Stage#cancelTouchFocus() touch focus} is cancelled when flick scrolling begins.
voidsetClamp(boolean clamp)
For flick scroll, prevents scrolling out of the widget's bounds.
voidsetFadeScrollBars(boolean fadeScrollBars)
When true the scrollbars don't reduce the scrollable size and fade out after some time of not being used.
voidsetFlickScroll(boolean flickScroll)
voidsetForceScroll(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.
voidsetOverscroll(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.
voidsetScrollBarPositions(boolean bottom, boolean right)
Set the position of the vertical and horizontal scroll bars.
voidsetScrollbarsOnTop(boolean scrollbarsOnTop)
When false (the default), the widget is clipped so it is not drawn under the scrollbars.
voidsetScrollingDisabled(boolean x, boolean y)
Disables scrolling in a direction.
voidsetScrollPercentX(float percentX)
voidsetScrollPercentY(float percentY)
voidsetScrollX(float pixels)
voidsetScrollY(float pixels)
voidsetSmoothScrolling(boolean smoothScrolling)
voidsetStyle(ScrollPaneStyle style)
voidsetupFadeScrollBars(float fadeAlphaSeconds, float fadeDelaySeconds)
voidsetWidget(Actor widget)
Sets the Actor embedded in this scroll pane.