public class ScrollBar extends Component
Modifier and Type | Class and Description |
---|---|
static class |
ScrollBar.Orientation |
Component.Alignment
Modifier and Type | Field and Description |
---|---|
static int |
depth |
protected float |
loc |
protected ScrollBar.Orientation |
orientation |
protected float |
size |
Constructor and Description |
---|
ScrollBar(java.lang.String id,
float x,
float y,
ScrollBar.Orientation orientation,
int size) |
Modifier and Type | Method and Description |
---|---|
float |
getDrawSize(float width,
float height) |
boolean |
isActivated(Input in)
Should return true the tick when the component is activated by the user (ie when a button is clicked).
|
protected void |
renderI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
protected void |
renderOverlayI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
protected void |
tickI(Input in,
AudioEngine ae,
float delta,
float x,
float y,
float width,
float height) |
public static int depth
protected ScrollBar.Orientation orientation
protected float loc
protected float size
public ScrollBar(java.lang.String id, float x, float y, ScrollBar.Orientation orientation, int size)
public float getDrawSize(float width, float height)
protected void tickI(Input in, AudioEngine ae, float delta, float x, float y, float width, float height)
public boolean isActivated(Input in)
Component
isActivated
in class Component
protected void renderOverlayI(Graphics g, Input in, float x, float y, float width, float height)
renderOverlayI
in class Component