Package gaiasky.util.scene2d
Class OwnScrollPane
- java.lang.Object
-
- com.badlogic.gdx.scenes.scene2d.Actor
-
- com.badlogic.gdx.scenes.scene2d.Group
-
- com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
-
- com.badlogic.gdx.scenes.scene2d.ui.ScrollPane
-
- gaiasky.util.scene2d.OwnScrollPane
-
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable
,com.badlogic.gdx.scenes.scene2d.utils.Layout
public class OwnScrollPane extends com.badlogic.gdx.scenes.scene2d.ui.ScrollPane
Small overriding that returns the user set size as preferred size.
-
-
Constructor Summary
Constructors Constructor Description OwnScrollPane(com.badlogic.gdx.scenes.scene2d.Actor widget, com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle style)
OwnScrollPane(com.badlogic.gdx.scenes.scene2d.Actor widget, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
OwnScrollPane(com.badlogic.gdx.scenes.scene2d.Actor widget, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, java.lang.String styleName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected float
getMouseWheelY()
Returns the amount to scroll vertically when the mouse wheel is scrolled.float
getPrefHeight()
float
getPrefWidth()
void
setExpand(boolean expand)
void
setHeight(float height)
void
setSize(float width, float height)
void
setWidth(float width)
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.ScrollPane
act, addActor, addActorAfter, addActorAt, addActorBefore, cancel, cancelTouchFocus, draw, drawDebug, drawScrollBars, fling, getActor, getFadeScrollBars, getMaxX, getMaxY, getMinHeight, getMinWidth, getMouseWheelX, getOverscrollDistance, getScrollBarHeight, getScrollBarWidth, getScrollHeight, getScrollPercentX, getScrollPercentY, getScrollWidth, getScrollX, getScrollY, getStyle, getVariableSizeKnobs, getVelocityX, getVelocityY, getVisualScrollPercentX, getVisualScrollPercentY, getVisualScrollX, getVisualScrollY, getWidget, hit, isBottomEdge, isDragging, isFlinging, isForceScrollX, isForceScrollY, isLeftEdge, isPanning, isRightEdge, isScrollingDisabledX, isScrollingDisabledY, isScrollX, isScrollY, isTopEdge, layout, removeActor, removeActor, scrollTo, scrollTo, scrollX, scrollY, setActor, setCancelTouchFocus, setClamp, setFadeScrollBars, setFlickScroll, setFlickScrollTapSquareSize, setFlingTime, setForceScroll, setOverscroll, setScrollBarPositions, setScrollbarsOnTop, setScrollbarsVisible, setScrollBarTouch, setScrollingDisabled, setScrollPercentX, setScrollPercentY, setScrollX, setScrollY, setSmoothScrolling, setStyle, setupFadeScrollBars, setupOverscroll, setVariableSizeKnobs, setVelocityX, setVelocityY, setWidget, updateVisualScroll, visualScrollX, visualScrollY
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
childrenChanged, getMaxHeight, getMaxWidth, invalidate, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Group
applyTransform, applyTransform, clear, clearChildren, computeTransform, debugAll, drawChildren, drawDebugChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toString
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setTouchable, setUserObject, setVisible, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
-
-
-
-
Constructor Detail
-
OwnScrollPane
public OwnScrollPane(com.badlogic.gdx.scenes.scene2d.Actor widget, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
- Parameters:
widget
- May be null.
-
OwnScrollPane
public OwnScrollPane(com.badlogic.gdx.scenes.scene2d.Actor widget, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, java.lang.String styleName)
- Parameters:
widget
- May be null.
-
OwnScrollPane
public OwnScrollPane(com.badlogic.gdx.scenes.scene2d.Actor widget, com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle style)
- Parameters:
widget
- May be null.
-
-
Method Detail
-
setExpand
public void setExpand(boolean expand)
-
setWidth
public void setWidth(float width)
- Overrides:
setWidth
in classcom.badlogic.gdx.scenes.scene2d.Actor
-
setHeight
public void setHeight(float height)
- Overrides:
setHeight
in classcom.badlogic.gdx.scenes.scene2d.Actor
-
setSize
public void setSize(float width, float height)
- Overrides:
setSize
in classcom.badlogic.gdx.scenes.scene2d.Actor
-
getPrefWidth
public float getPrefWidth()
- Specified by:
getPrefWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
- Overrides:
getPrefWidth
in classcom.badlogic.gdx.scenes.scene2d.ui.ScrollPane
-
getPrefHeight
public float getPrefHeight()
- Specified by:
getPrefHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
- Overrides:
getPrefHeight
in classcom.badlogic.gdx.scenes.scene2d.ui.ScrollPane
-
getMouseWheelY
protected float getMouseWheelY()
Returns the amount to scroll vertically when the mouse wheel is scrolled.- Overrides:
getMouseWheelY
in classcom.badlogic.gdx.scenes.scene2d.ui.ScrollPane
-
-