|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.vizzini.ui.game.AbstractEnvironmentUISwing
public abstract class AbstractEnvironmentUISwing
Provides base functionality for environment user interfaces in the game framework.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AbstractEnvironmentUISwing()
Construct this object. |
Method Summary | |
---|---|
protected void |
assignAgentListener(IAgent agent)
Assign listeners using the given agent. |
void |
assignAgentListeners(Iterator agentIterator)
Assign listeners using the given agents. |
void |
configure(Properties properties)
Configure this environment. |
IEnvironment |
getEnvironment()
Return the environment this UI represents. |
protected EnvironmentUISupport |
getSupport()
|
protected void |
init()
Initialize. |
boolean |
isAudioOn()
Return true if audio is on. |
protected void |
removeAgentListener(IAgent agent)
Remove the given agent as a listener. |
void |
removeAgentListeners(Iterator agentIterator)
Remove the given agents as listeners. |
void |
reset()
Reset. |
void |
scoreChange(ScoreEvent event)
Respond to score change events. |
void |
setAudioOn(boolean isAudioOn)
Set the audio on flag. |
void |
setEnvironment(IEnvironment environment)
Set the environment this UI represents. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.vizzini.game.event.IStateListener |
---|
stateChange |
Constructor Detail |
---|
public AbstractEnvironmentUISwing()
Method Detail |
---|
public void assignAgentListeners(Iterator agentIterator)
assignAgentListeners
in interface IEnvironmentUI
agentIterator
- Agent iterator.public void configure(Properties properties) throws InstantiationException, IllegalAccessException
configure
in interface IEnvironmentUI
properties
- Source of configuration information.
InstantiationException
IllegalAccessException
public IEnvironment getEnvironment()
getEnvironment
in interface IEnvironmentUI
public boolean isAudioOn()
isAudioOn
in interface IEnvironmentUI
public void removeAgentListeners(Iterator agentIterator)
removeAgentListeners
in interface IEnvironmentUI
agentIterator
- Agent iterator.public void reset()
reset
in interface IEnvironmentUI
public void scoreChange(ScoreEvent event)
scoreChange
in interface IScoreListener
public void setAudioOn(boolean isAudioOn)
setAudioOn
in interface IEnvironmentUI
public void setEnvironment(IEnvironment environment)
setEnvironment
in interface IEnvironmentUI
environment
- Environment.protected void assignAgentListener(IAgent agent)
agent
- Agent.protected EnvironmentUISupport getSupport()
protected void init()
protected void removeAgentListener(IAgent agent)
agent
- Agent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |