|
||||||||||
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
org.vizzini.ui.game.boardgame.AbstractGridBoardUISwing
org.vizzini.ui.game.boardgame.GridBoard3DUISwing
org.vizzini.ui.game.boardgame.chess.AbstractGridBoardUISwing
public abstract class AbstractGridBoardUISwing
Provides base functionality for a Swing grid board user interface in the 3D chess 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 | |
---|---|
static Map |
PIECE_TYPES
Map of token class to token UI class. |
static String |
SHOW_HINT_PROPERTY
Name of the show hints property. |
Fields inherited from class org.vizzini.ui.game.boardgame.GridBoard3DUISwing |
---|
_arrangement, _boards, _viewer, BOARD_SEPARATION |
Fields inherited from class org.vizzini.ui.game.boardgame.AbstractGridBoardUISwing |
---|
LABEL_PAINTED_PROPERTY |
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 org.vizzini.ui.game.boardgame.IGridBoard3DUISwing |
---|
ARRANGEMENT_PROPERTY |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AbstractGridBoardUISwing()
Construct this object. |
Method Summary | |
---|---|
void |
configure(Properties properties)
Configure this environment. |
JCheckBoxMenuItem |
createShowHintsUI()
Create a show hints user interface widget. |
protected ITokenUI |
createTokenUI(IToken token,
Class type)
Create a token user interface component for the given agent. |
Color |
getHintColor()
Return the hint color. |
protected Class |
getTokenUIClassFor(IToken token)
Return the proper ITokenUI type for the given token. |
boolean |
isHintMode()
Return true if we're in hint mode. |
void |
setEnvironment(IEnvironment environment)
Set the environment this UI represents. |
void |
setHintColor(Color color)
Set the hint color. |
protected void |
setHintHighlights(IEnvironment environment,
IAdjudicator adjudicator)
Set the hint highlights. |
void |
setHintMode(boolean isHintMode)
Set the flag indicating if we're in hint mode. |
protected void |
setSelectionHighlightData(HighlightData selectionHighlightData)
|
void |
showHintsActionPerformed(ActionEvent event)
Callback for the show hints action. |
Methods inherited from class org.vizzini.ui.game.boardgame.GridBoard3DUISwing |
---|
add, cantActionPerformed, clearHighlights, createAndPlaceTokenUI, createArrangementUI, createBoards, createLabelPaintedUI, fillAdditionalViewMenuItems, get, getArrangement, getBoardUI, getBoardUI, getMagnify, getMarkings, getObjectViewer, getPositionForPoint, isArrangement, labelPaintedActionPerformed, reconcileBoard, remove, remove, reset, setArrangement, setBoardColor, setCurrentHighlightData, setLabelColor, setLabelPainted, setMagnify, setMarkings, setViewerColor, skewActionPerformed, slantActionPerformed, uprightActionPerformed |
Methods inherited from class org.vizzini.ui.game.AbstractEnvironmentUISwing |
---|
assignAgentListener, assignAgentListeners, getEnvironment, getSupport, init, isAudioOn, removeAgentListener, removeAgentListeners, scoreChange, setAudioOn |
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.ui.game.IEnvironmentUI |
---|
assignAgentListeners, getEnvironment, isAudioOn, removeAgentListeners, setAudioOn |
Methods inherited from interface org.vizzini.game.event.IStateListener |
---|
stateChange |
Methods inherited from interface org.vizzini.game.event.IScoreListener |
---|
scoreChange |
Field Detail |
---|
public static final String SHOW_HINT_PROPERTY
public static final Map PIECE_TYPES
Constructor Detail |
---|
public AbstractGridBoardUISwing()
Method Detail |
---|
public void configure(Properties properties) throws InstantiationException, IllegalAccessException
configure
in interface IEnvironmentUI
configure
in class GridBoard3DUISwing
properties
- Source of configuration information.
InstantiationException
IllegalAccessException
public JCheckBoxMenuItem createShowHintsUI()
public Color getHintColor()
public boolean isHintMode()
public void setEnvironment(IEnvironment environment)
setEnvironment
in interface IEnvironmentUI
setEnvironment
in class GridBoard3DUISwing
environment
- Environment.public void setHintColor(Color color)
public void setHintMode(boolean isHintMode)
public void showHintsActionPerformed(ActionEvent event)
protected ITokenUI createTokenUI(IToken token, Class type)
createTokenUI
in class GridBoard3DUISwing
token
- Token.type
- Token UI class.protected Class getTokenUIClassFor(IToken token)
getTokenUIClassFor
in class GridBoard3DUISwing
protected void setHintHighlights(IEnvironment environment, IAdjudicator adjudicator)
protected void setSelectionHighlightData(HighlightData selectionHighlightData)
setSelectionHighlightData
in class AbstractGridBoardUISwing
selectionHighlightData
- The selectionHighlightData to set.
|
||||||||||
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 |