public class ScrollWindow extends java.lang.Object implements IContainingElement
Modifier and Type | Class and Description |
---|---|
class |
ScrollWindow.ScrollbarData |
Modifier and Type | Field and Description |
---|---|
IGuiArea |
area |
IGuiPosition |
basePosition |
GuiBC8<?> |
gui |
java.util.List<IGuiElement> |
innerElements |
Constructor and Description |
---|
ScrollWindow(GuiBC8<?> gui,
IGuiArea area) |
Modifier and Type | Method and Description |
---|---|
void |
addToolTips(java.util.List<ToolTip> tooltips)
Called to add tooltips to the list of existing tool tips.
|
IGuiPosition |
calculateNextPosition() |
ScrollWindow.ScrollbarData |
calculateScrollbarData()
Assumes that all elements added are added starting at
calculateNextPosition() , after every one was
added. |
void |
drawBackground(float partialTicks) |
void |
drawForeground(float partialTicks) |
java.util.List<IGuiElement> |
getChildElements() |
double |
getHeight() |
int |
getScrollPosition() |
double |
getWidth() |
double |
getX() |
double |
getY() |
void |
onMouseClicked(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHelpElements, calculateSizes, getChildElementPosition, getThisAndChildrenAt, onMouseDragged, onMouseReleased
getDebugInfo, tick
asImmutable, contains, contains, contains, create, create, create, expand, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getPosition, offset, offset, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resize
public final GuiBC8<?> gui
public final IGuiArea area
public final java.util.List<IGuiElement> innerElements
public final IGuiPosition basePosition
public double getX()
getX
in interface IGuiPosition
public double getY()
getY
in interface IGuiPosition
public java.util.List<IGuiElement> getChildElements()
getChildElements
in interface IContainingElement
public void drawBackground(float partialTicks)
drawBackground
in interface IGuiElement
public void drawForeground(float partialTicks)
drawForeground
in interface IGuiElement
public void addToolTips(java.util.List<ToolTip> tooltips)
IGuiElement
This is called EVEN IF the mouse is not inside your width and height!
addToolTips
in interface IContainingElement
addToolTips
in interface IGuiElement
addToolTips
in interface ITooltipElement
public void onMouseClicked(int button)
IInteractionElement
onMouseClicked
in interface IContainingElement
onMouseClicked
in interface IInteractionElement
public IGuiPosition calculateNextPosition()
public ScrollWindow.ScrollbarData calculateScrollbarData()
calculateNextPosition()
, after every one was
added.public int getScrollPosition()