Component.Alignment
Modifier and Type | Field and Description |
---|---|
java.util.List<Component> |
components |
Constructor and Description |
---|
Container(float x,
float y,
float width,
float height) |
Container(java.lang.String id,
float x,
float y,
float width,
float height) |
Modifier and Type | Method and Description |
---|---|
Container |
addComponent(Component component) |
java.util.List<Component> |
getComponents() |
boolean |
isActivated(Input in)
Should return true the tick when the component is activated by the user (ie when a button is clicked).
|
void |
onActivate(Component comp,
java.lang.String id) |
float |
posFromPercent(float value,
float max,
float perMax) |
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) |
Container |
setBackground(java.awt.Color color) |
void |
tickI(Input in,
AudioEngine ae,
float delta,
float x,
float y,
float width,
float height) |
public java.util.List<Component> components
public Container(float x, float y, float width, float height)
public Container(java.lang.String id, float x, float y, float width, float height)
public float posFromPercent(float value, float max, float perMax)
public void tickI(Input in, AudioEngine ae, float delta, float x, float y, float width, float height)
public Container setBackground(java.awt.Color color)
public java.util.List<Component> getComponents()
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
public void onActivate(Component comp, java.lang.String id)