ch.sahits.game.graphic.display
Interface IUpdatableComponent

All Known Implementing Classes:
AbstractMultiselectableComponent, AbstractSelectableComponent, Button, RadioButton, Slider, Spinner, TextInput

public interface IUpdatableComponent

Interface defines a updatable component.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Jun 6, 2011

Method Summary
 void gameRender(Graphics gScr)
          Force the panel to render itself.
 void gameUpdate()
          Force the panel to update its state.
 void testClick(Point p)
          Test if there was a mouse click on the component
 void testKeyPress(KeyEvent e)
          Check the updatable components if the key press was in one of them
 

Method Detail

testClick

void testClick(Point p)
Test if there was a mouse click on the component

Parameters:
e -

testKeyPress

void testKeyPress(KeyEvent e)
Check the updatable components if the key press was in one of them

Parameters:
e -

gameRender

void gameRender(Graphics gScr)
Force the panel to render itself.

Parameters:
gScr - Graphics used for the rendering

gameUpdate

void gameUpdate()
Force the panel to update its state.



Copyright © 2011 Sahits GmbH. All Rights Reserved.