ch.sahits.game.graphic.layout
Class AbstractSelectableComponent
java.lang.Object
ch.sahits.game.graphic.layout.AbstractSahitsComponent
ch.sahits.game.graphic.layout.AbstractSelectableComponent
- All Implemented Interfaces:
- ISahitsComponent, IUpdatableComponent
- Direct Known Subclasses:
- RadioButton
public abstract class AbstractSelectableComponent
- extends AbstractSahitsComponent
- implements IUpdatableComponent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
font
private Font font
selected
private boolean selected
metrics
private final FontMetrics metrics
AbstractSelectableComponent
public AbstractSelectableComponent(FontMetrics metrics)
getFontMetrics
protected FontMetrics getFontMetrics()
getFont
public Font getFont()
- Description copied from interface:
ISahitsComponent
- Retrieve the font
- Specified by:
getFont in interface ISahitsComponent
- Returns:
setFont
public void setFont(Font f)
- Description copied from interface:
ISahitsComponent
- Set the font
- Specified by:
setFont in interface ISahitsComponent
isSelected
public boolean isSelected()
setSelected
public void setSelected(boolean selected)
gameRender
public void gameRender(Graphics gScr)
- Description copied from interface:
IUpdatableComponent
- Force the panel to render itself.
- Specified by:
gameRender in interface IUpdatableComponent
- Parameters:
gScr - Graphics used for the rendering
gameUpdate
public void gameUpdate()
- Description copied from interface:
IUpdatableComponent
- Force the panel to update its state.
- Specified by:
gameUpdate in interface IUpdatableComponent
testKeyPress
public void testKeyPress(KeyEvent e)
- Key events are not handled
- Specified by:
testKeyPress in interface IUpdatableComponent
Copyright © 2011 Sahits GmbH. All Rights Reserved.