Class SimpleView
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
- 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:
ScrollableView
,TabbedView
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected SimpleView.Alignment
protected double
protected double
protected double
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
ConstructorDescriptionSimpleView
(String name, Window window, List<? extends WindowContent> contentList) SimpleView
(Window window, List<? extends WindowContent> contentList) -
Method Summary
Modifier and TypeMethodDescriptionprotected double
protected double
double
double
void
renderViewContent
(double mouseX, double mouseY) void
setAlignment
(SimpleView.Alignment alignment) void
setContentPadding
(double contentPadding) void
setLeftPadding
(double leftPadding) void
setTopPadding
(double topPadding) void
setViewWidthModifier
(double viewWidthModifier) Methods inherited from class org.rusherhack.client.api.ui.window.view.WindowView
charTyped, getContent, getHandler, getHeight, getName, getViewHandler, getWidth, keyTyped, mouseClicked, mouseReleased, mouseScrolled, 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
-
alignment
-
topPadding
protected double topPadding -
leftPadding
protected double leftPadding -
contentPadding
protected double contentPadding
-
-
Constructor Details
-
SimpleView
-
SimpleView
-
-
Method Details
-
renderViewContent
public void renderViewContent(double mouseX, double mouseY) - Specified by:
renderViewContent
in classWindowView
-
getViewWidth
public double getViewWidth()- Overrides:
getViewWidth
in classWindowView
-
getViewHeight
public double getViewHeight()- Overrides:
getViewHeight
in classWindowView
-
getTopOffset
protected double getTopOffset() -
getLeftOffset
protected double getLeftOffset() -
setTopPadding
public void setTopPadding(double topPadding) -
setLeftPadding
public void setLeftPadding(double leftPadding) -
setContentPadding
public void setContentPadding(double contentPadding) -
setViewWidthModifier
public void setViewWidthModifier(double viewWidthModifier) -
setAlignment
-