Class ScrollableView
java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.view.WindowView
org.rusherhack.client.api.ui.window.view.SimpleView
org.rusherhack.client.api.ui.window.view.ScrollableView
- All Implemented Interfaces:
org.rusherhack.core.interfaces.IClickable
,org.rusherhack.core.interfaces.IHoverable
,org.rusherhack.core.interfaces.INamed
,org.rusherhack.core.interfaces.IScrollable
,org.rusherhack.core.interfaces.ITickable
,org.rusherhack.core.interfaces.ITypeable
- Direct Known Subclasses:
ListView.ListItemView
,RichTextView
-
Nested Class Summary
Nested classes/interfaces inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
SimpleView.Alignment
-
Field Summary
Fields inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
alignment, contentPadding, leftPadding, topPadding
Fields inherited from class org.rusherhack.client.api.ui.window.view.WindowView
contentList
Fields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y
-
Constructor Summary
ConstructorDescriptionScrollableView
(String name, Window window, List<? extends WindowContent> contentList) ScrollableView
(Window window, List<? extends WindowContent> contentList) -
Method Summary
Modifier and TypeMethodDescriptiondouble
protected double
boolean
boolean
void
mouseReleased
(double mouseX, double mouseY, int button) boolean
mouseScrolled
(double mouseX, double mouseY, double delta) void
renderViewContent
(double mouseX, double mouseY) void
setDraggingGrip
(boolean dragging, double dragDeltaY) protected boolean
Methods inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
getLeftOffset, getViewHeight, getViewWidth, setAlignment, setContentPadding, setLeftPadding, setTopPadding, setViewWidthModifier
Methods inherited from class org.rusherhack.client.api.ui.window.view.WindowView
charTyped, getContent, getHandler, getHeight, getName, getViewHandler, getWidth, keyTyped, mouseClicked, renderContent, setContentList, setViewHeight, setViewWidth, tick, unfocus
Methods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setY
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName
-
Field Details
-
dragDeltaY
public double dragDeltaY
-
-
Constructor Details
-
ScrollableView
-
ScrollableView
-
-
Method Details
-
renderViewContent
public void renderViewContent(double mouseX, double mouseY) - Overrides:
renderViewContent
in classSimpleView
-
shouldClampToBottom
protected boolean shouldClampToBottom() -
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double delta) - Specified by:
mouseScrolled
in interfaceorg.rusherhack.core.interfaces.IScrollable
- Overrides:
mouseScrolled
in classWindowView
-
mouseReleased
public void mouseReleased(double mouseX, double mouseY, int button) - Specified by:
mouseReleased
in interfaceorg.rusherhack.core.interfaces.IClickable
- Overrides:
mouseReleased
in classWindowView
-
getTopOffset
protected double getTopOffset()- Overrides:
getTopOffset
in classSimpleView
-
isScrollable
public boolean isScrollable() -
setDraggingGrip
public void setDraggingGrip(boolean dragging, double dragDeltaY) -
getScrollbar
-
getContentHeight
public double getContentHeight() -
isDraggingScrollbarGrip
public boolean isDraggingScrollbarGrip()
-