org.vizzini.ui.game
Interface ITokenUI

All Superinterfaces:
IStateful
All Known Subinterfaces:
IPhysicalObjectUI
All Known Implementing Classes:
AbstractTokenUISwing, AbstractTokenUIText, BishopShape, BoxTokenUI, ConeTokenUI, EllipsoidTokenUI, KingShape, KnightShape, MaceShape, PawnShape, PieceShape, QueenShape, RookShape, TokenUISupport, TokenUISwing

public interface ITokenUI
extends IStateful

Defines methods required by token user interfaces in the game framework.

Since:
v0.1
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 void configure(Properties properties, int index)
          Configure this token.
 IToken getToken()
          Return the token.
 void setToken(IToken token)
          Set the associated token.
 
Methods inherited from interface org.vizzini.math.IStateful
getAbsoluteState, getState, getStatefulParent, setStatefulParent
 

Method Detail

configure

void configure(Properties properties,
               int index)
               throws InstantiationException,
                      IllegalAccessException
Configure this token.

Parameters:
properties - Source of configuration information.
index - Index of this token's properties.
Throws:
InstantiationException
IllegalAccessException
Since:
v0.3

getToken

IToken getToken()
Return the token.

Since:
v0.1

setToken

void setToken(IToken token)
Set the associated token.

Parameters:
token - The associated token.
Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02