|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.rendering.AbstractRenderPart
ch.sahits.game.graphic.display.OpenPatricianBackgroundView
public class OpenPatricianBackgroundView
This RenderablePart implementation is a base implementation for brick walled
background on which form elements can be placed.
| Field Summary | |
|---|---|
private LinkedList<ISahitsComponent> |
components
|
private ISahitsLayoutManager |
layoutManager
|
private LinkedList<IUpdatableComponent> |
updatables
|
| Fields inherited from class ch.sahits.game.rendering.AbstractRenderPart |
|---|
rect |
| Constructor Summary | |
|---|---|
OpenPatricianBackgroundView(Rectangle rect,
ISahitsLayoutManager layoutManager)
|
|
| Method Summary | |
|---|---|
void |
add(ISahitsComponent comp,
ISahitsLayoutConstraint constraint)
Add a component to the container with a specific constraint |
void |
gameRender(Graphics gScr)
|
void |
gameUpdate(ch.sahits.game.event.Event e,
Object notice)
|
ISahitsComponent |
get(int i)
Retrieve a component from internal storage at position i. |
int |
getComponentCount()
Retrieve the total number of components contained in this container |
int |
getHeight()
Retrieve the actual height of the container |
Insets |
getInsets()
Retrieve the insets of the container |
int |
getWidth()
Retrieve the actual width of the container |
| Methods inherited from class ch.sahits.game.rendering.AbstractRenderPart |
|---|
getBounds, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.sahits.game.graphic.display.ISahitsContainer |
|---|
getBounds |
| Field Detail |
|---|
private LinkedList<IUpdatableComponent> updatables
private LinkedList<ISahitsComponent> components
private final ISahitsLayoutManager layoutManager
| Constructor Detail |
|---|
public OpenPatricianBackgroundView(Rectangle rect,
ISahitsLayoutManager layoutManager)
| Method Detail |
|---|
public void add(ISahitsComponent comp,
ISahitsLayoutConstraint constraint)
ISahitsContainer
add in interface ISahitsContainercomp - ISahitsComponentconstraint - ISahitsLayoutConstraintpublic void gameRender(Graphics gScr)
gameRender in interface ch.sahits.game.rendering.Renderable
public void gameUpdate(ch.sahits.game.event.Event e,
Object notice)
gameUpdate in interface ch.sahits.game.event.IEventListenergameUpdate in interface ch.sahits.game.rendering.Renderablepublic int getComponentCount()
ISahitsContainer
getComponentCount in interface ISahitsContainerISahitsComponentspublic ISahitsComponent get(int i)
ISahitsContainer
get in interface ISahitsContaineri - position in the internal storage.
public Insets getInsets()
ISahitsContainer
getInsets in interface ISahitsContainerpublic int getHeight()
ISahitsContainer
getHeight in interface ISahitsContainerpublic int getWidth()
ISahitsContainer
getWidth in interface ISahitsContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||