public abstract class ScrollableWidgetGroup extends BoundedWidgetGroup implements Scrollable
| Modifier and Type | Field and Description |
|---|---|
protected double |
scrollOffset |
protected double |
scrollSpeed |
scaleX, scaleY, widgets| Modifier | Constructor and Description |
|---|---|
protected |
ScrollableWidgetGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
addWidget(Widget widget) |
void |
addWidgets(java.util.Collection<Widget> widgets) |
void |
addWidgets(Widget... widgets) |
abstract ScrollableWidgetGroup |
copy() |
protected void |
copyScrollable(ScrollableWidgetGroup other) |
abstract boolean |
doesNotRequireHoverToScroll() |
void |
draw(RenderContext ctx,
Vector3 center,
double mouseX,
double mouseY) |
protected boolean |
drawHoverable(RenderContext ctx,
Hoverable hoverable,
Vector3 center,
double mouseX,
double mouseY) |
java.util.Collection<TextAPI<?>> |
getHoverLines(double mouseX,
double mouseY) |
double |
getOffsetX(double x) |
double |
getOffsetY(double y) |
protected Box |
getRenderBounds(Vector3 center) |
boolean |
isHoveringForScroll() |
boolean |
onLeftClick(double mouseX,
double mouseY) |
boolean |
onRightClick(double mouseX,
double mouseY) |
protected abstract void |
recalculatePositions() |
protected double |
scroll(double scrollAmount) |
boolean |
scrollDown(double scroll) |
boolean |
scrollUp(double scroll) |
void |
setWidgets(java.util.Collection<Widget> widgets) |
drawWidget, getRenderBounds, getRenderBounds, isBounded, isBounded, isBoundedapplyScale, canBackspace, canType, checkEachClickable, checkEachHoverable, checkEachScrollable, checkEachSelectable, checkEachTickable, checkEachTypeable, checkEachWidget, copyGroup, drawHovered, drawSelectable, eachClickable, eachHoverable, eachScrollable, eachSelectable, eachTickable, eachTypeable, eachWidget, getElementsBottom, getElementsHeight, getElementsLeft, getElementsRight, getElementsTop, getElementsWidth, getHoveredElement, getRelativeTop, getSelectedElement, hasNonBlankText, hasNonEmptyText, isActivelyTicking, isHovering, onBackspace, onCharTyped, onCopy, onCut, onKeyPressed, onPaste, onResolutionUpdated, onSelectAll, onTick, playLeftClickSound, playRightClickSound, setWidgets, shouldDrawHovered, unapplyScalecanDraw, copyBasic, getBottom, getCenter, getCenter, getCenter, getLeft, getRight, getTop, getX, getY, isVisible, onScreenClosed, onScreenOpenedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanCopy, canCut, canPaste, canSelectAllpublic void addWidget(Widget widget)
addWidget in class WidgetGrouppublic void addWidgets(Widget... widgets)
addWidgets in class WidgetGrouppublic void addWidgets(java.util.Collection<Widget> widgets)
addWidgets in class WidgetGrouppublic abstract ScrollableWidgetGroup copy()
copy in class BoundedWidgetGroupprotected void copyScrollable(ScrollableWidgetGroup other)
public abstract boolean doesNotRequireHoverToScroll()
public void draw(RenderContext ctx, Vector3 center, double mouseX, double mouseY)
draw in class WidgetGroupprotected boolean drawHoverable(RenderContext ctx, Hoverable hoverable, Vector3 center, double mouseX, double mouseY)
drawHoverable in class WidgetGrouppublic java.util.Collection<TextAPI<?>> getHoverLines(double mouseX, double mouseY)
getHoverLines in interface HoverablegetHoverLines in class BoundedWidgetGrouppublic double getOffsetX(double x)
public double getOffsetY(double y)
protected Box getRenderBounds(Vector3 center)
getRenderBounds in class BoundedWidgetGrouppublic boolean isHoveringForScroll()
public boolean onLeftClick(double mouseX,
double mouseY)
onLeftClick in interface ClickableonLeftClick in class BoundedWidgetGrouppublic boolean onRightClick(double mouseX,
double mouseY)
onRightClick in interface ClickableonRightClick in class BoundedWidgetGroupprotected abstract void recalculatePositions()
protected double scroll(double scrollAmount)
public boolean scrollDown(double scroll)
scrollDown in interface ScrollablescrollDown in class WidgetGrouppublic boolean scrollUp(double scroll)
scrollUp in interface ScrollablescrollUp in class WidgetGrouppublic void setWidgets(java.util.Collection<Widget> widgets)
setWidgets in class WidgetGroup