|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.component.layout.StaticLayout
public class StaticLayout
Title: StaticLayout
Description: StaticLayout of components on the screen.
Copyright: Copyright (c) Mar 4, 2015
Constructor Summary | |
---|---|
StaticLayout(int screenWidth,
int screenHeight)
|
Method Summary | |
---|---|
void |
addComponent(GComponent gComponent,
LayoutLocation layoutLocation)
Adds a component to this Layout based on the LayoutLocation parameters. |
void |
draw(java.awt.Graphics2D graphics)
Draws this layout to the screen. |
GComponent |
getComponentByName(java.lang.String name)
Returns a Component in the is Layout by its name. |
java.util.List<GComponent> |
getComponents()
Get the complete list of components in this Layout |
int |
getScreenHeight()
Get the screen height associated to this layout |
int |
getScreenWidth()
Get the screen width associated to this Layout |
void |
update(long elapseTime)
Game loop update method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticLayout(int screenWidth, int screenHeight)
Method Detail |
---|
public void addComponent(GComponent gComponent, LayoutLocation layoutLocation)
Layout
addComponent
in interface Layout
public void draw(java.awt.Graphics2D graphics)
Layout
draw
in interface Layout
public GComponent getComponentByName(java.lang.String name)
Layout
getComponentByName
in interface Layout
public java.util.List<GComponent> getComponents()
Layout
getComponents
in interface Layout
public int getScreenWidth()
Layout
getScreenWidth
in interface Layout
public int getScreenHeight()
Layout
getScreenHeight
in interface Layout
public void update(long elapseTime)
Layout
update
in interface Layout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |