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 |
BuildCraftGui |
gui |
java.util.List<IGuiElement> |
innerElements |
| Constructor and Description |
|---|
ScrollWindow(BuildCraftGui 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, waitaddHelpElements, calculateSizes, getChildElementPosition, getThisAndChildrenAt, onKeyPress, onMouseDragged, onMouseReleasedgetDebugInfo, tickasImmutable, 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, resizepublic final BuildCraftGui gui
public final IGuiArea area
public final java.util.List<IGuiElement> innerElements
public final IGuiPosition basePosition
public ScrollWindow(BuildCraftGui gui, IGuiArea area)
public double getX()
getX in interface IGuiPositionpublic double getY()
getY in interface IGuiPositionpublic java.util.List<IGuiElement> getChildElements()
getChildElements in interface IContainingElementpublic void drawBackground(float partialTicks)
drawBackground in interface IGuiElementpublic void drawForeground(float partialTicks)
drawForeground in interface IGuiElementpublic void addToolTips(java.util.List<ToolTip> tooltips)
IGuiElementThis is called EVEN IF the mouse is not inside your width and height!
addToolTips in interface IContainingElementaddToolTips in interface IGuiElementaddToolTips in interface ITooltipElementpublic void onMouseClicked(int button)
IInteractionElementonMouseClicked in interface IContainingElementonMouseClicked in interface IInteractionElementpublic IGuiPosition calculateNextPosition()
public ScrollWindow.ScrollbarData calculateScrollbarData()
calculateNextPosition(), after every one was
added.public int getScrollPosition()