Basics
Guides
API Reference
Basics
Guides
API Reference
[21:7] extends: Parent, View
Wraps FXGL's ScrollingView (com.almasb.fxgl.texture.ScrollingView), a Parent Node that renders a wrap-around image scrolled horizontally or vertically. Standard side-scroller background primitive: set the image and the orientation, then drive scrollX (or scrollY) every frame. Java extends javafx.scene.Parent and implements the FXGL View interface; the Aussom wrapper mirrors that with multi-inheritance so callers get the JavaFX Parent / Node surface alongside the View contract.
ScrollingView (object ImageObj, double ViewWidth = -1.0, double ViewHeight = -1.0, string OrientationName = "HORIZONTAL")
Creates a new ScrollingView.
ImageObj is a fx.Image wrapper for the full background image.ViewWidth is the view's pixel width (defaults to image width when -1).ViewHeight is the view's pixel height (defaults to image height when -1).OrientationName is "HORIZONTAL" or "VERTICAL".getOrientation ()
Returns the orientation enum AJO.
getScrollX ()
Returns the current X scroll offset (semantic; may be negative — internal pixel offset wraps).
A double.setScrollX (double X)
Sets the X scroll offset. The view redraws immediately.
X is the new scroll value.this objectgetScrollY ()
Returns the current Y scroll offset.
setScrollY (double Y)
Sets the Y scroll offset.
Y is the new scroll value.this objectonUpdate (double Tpf)
No-op tick (kept for the View contract).
dispose ()
Disposes view resources.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.