public class ComponentScrollBar extends ComponentButton
| Modifier and Type | Class and Description |
|---|---|
static interface |
ComponentScrollBar.ICallback |
| Modifier and Type | Field and Description |
|---|---|
protected ComponentScrollBar.ICallback |
callback |
protected int |
max |
protected int |
min |
protected int |
number |
protected BoundBox |
scrollArea |
hasBackground, id, isVisible, textcolorButton, colorButtonUnselected, colorOutline, gui, guiColor, sizeX, sizeY, x, y| Constructor and Description |
|---|
ComponentScrollBar(Gui gui,
int id,
int x,
int y,
int sizeX,
int sizeY,
int initialNumber,
int min,
int max,
BoundBox scrollArea,
ComponentScrollBar.ICallback callback) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMax() |
int |
getMin() |
int |
getNumber() |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
org.newdawn.slick.Graphics g) |
void |
setLocked(boolean locked) |
void |
setMax(int max) |
void |
setMin(int min) |
void |
setNum(int number) |
void |
update(IGameInstance game) |
getHover, getText, onPressed, renderOverlay, setHasBackground, setTextisMouseOver, isMouseOverPrioritized, onKeyboardActionprotected final BoundBox scrollArea
protected final ComponentScrollBar.ICallback callback
protected int min
protected int max
protected int number
public ComponentScrollBar(Gui gui, int id, int x, int y, int sizeX, int sizeY, int initialNumber, int min, int max, BoundBox scrollArea, ComponentScrollBar.ICallback callback)
public void render(IGameInstance game, IAssetManager manager, org.newdawn.slick.Graphics g)
render in class ComponentButtonpublic void setMin(int min)
public void setNum(int number)
public void setMax(int max)
public void setLocked(boolean locked)
public int getMin()
public int getMax()
public int getNumber()
public boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class ComponentButtonpublic void update(IGameInstance game)
update in class GuiComponent