|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGridBoardUISwing
Defines methods required by grid board environment user interfaces in the game framework.
Color definitions:
Method Summary | |
---|---|
void |
add(HighlightData highlightData)
Add the given highlight data. |
void |
clearCurrentHighlight()
Clear the current highlight. |
void |
clearHighlights()
Clear the highlighted positions. |
void |
clearLastMoveHighlight()
Clear the last move highlight. |
void |
clearSelectionHighlight()
Clear the selection highlight. |
Color |
getBoardColor()
Return the board color. |
Color |
getCurrentColor()
Return the current color, used to indicate the current mouse position. |
int |
getCurrentHighlightWidth()
|
Color |
getFirstColor()
Return the first color. |
Color |
getGridLineColor()
Return the grid line color. |
Color |
getLabelColor()
Return the label color. |
Color |
getLastMoveColor()
Return the last move color. |
int |
getLastMoveHighlightWidth()
|
IPosition |
getPositionForPoint(Point point)
Map the screen coordinates to a board position. |
Color |
getSecondColor()
Return the second color. |
Color |
getSelectionColor()
Return the selection color. |
int |
getSelectionHighlightWidth()
|
void |
highlightCurrentPosition(IntegerPosition position)
Highlight the current position. |
void |
highlightLastMovePosition(IntegerPosition position)
Highlight the given position. |
void |
highlightSelectedPosition(IntegerPosition position)
Highlight the selected position. |
boolean |
isLabelPainted()
Return true if the label painted flag is true. |
void |
remove(HighlightData highlightData)
Remove the given highlight data. |
void |
setBoardColor(Color color)
Set the board color. |
void |
setCurrentColor(Color color)
Set the current color, used to indicate the current mouse position. |
void |
setCurrentHighlightWidth(int currentHighlightWidth)
|
void |
setFirstColor(Color color)
Set the first color. |
void |
setGridLineColor(Color color)
Set the grid line color. |
void |
setLabelColor(Color color)
Set the label color. |
void |
setLabelPainted(boolean isLabelPainted)
Set the label painted flag. |
void |
setLastMoveColor(Color color)
Set the last move color. |
void |
setLastMoveHighlightWidth(int lastMoveHighlightWidth)
|
void |
setSecondColor(Color color)
Set the second color. |
void |
setSelectionColor(Color color)
Set the selection color. |
void |
setSelectionHighlightWidth(int selectionHighlightWidth)
|
Methods inherited from interface org.vizzini.ui.game.IEnvironmentUI |
---|
assignAgentListeners, configure, getEnvironment, isAudioOn, removeAgentListeners, reset, setAudioOn, setEnvironment |
Methods inherited from interface org.vizzini.game.event.IStateListener |
---|
stateChange |
Methods inherited from interface org.vizzini.game.event.IScoreListener |
---|
scoreChange |
Method Detail |
---|
void add(HighlightData highlightData)
void clearCurrentHighlight()
void clearHighlights()
void clearLastMoveHighlight()
void clearSelectionHighlight()
Color getBoardColor()
Color getCurrentColor()
int getCurrentHighlightWidth()
Color getFirstColor()
Color getGridLineColor()
Color getLabelColor()
Color getLastMoveColor()
int getLastMoveHighlightWidth()
IPosition getPositionForPoint(Point point)
point
- A mouse click point.Color getSecondColor()
Color getSelectionColor()
int getSelectionHighlightWidth()
void highlightCurrentPosition(IntegerPosition position)
void highlightLastMovePosition(IntegerPosition position)
void highlightSelectedPosition(IntegerPosition position)
boolean isLabelPainted()
void remove(HighlightData highlightData)
void setBoardColor(Color color)
void setCurrentColor(Color color)
void setCurrentHighlightWidth(int currentHighlightWidth)
currentHighlightWidth
- The currentHighlightWidth to set.void setFirstColor(Color color)
void setGridLineColor(Color color)
void setLabelColor(Color color)
void setLabelPainted(boolean isLabelPainted)
void setLastMoveColor(Color color)
void setLastMoveHighlightWidth(int lastMoveHighlightWidth)
lastMoveHighlightWidth
- The lastMoveHighlightWidth to set.void setSecondColor(Color color)
void setSelectionColor(Color color)
void setSelectionHighlightWidth(int selectionHighlightWidth)
selectionHighlightWidth
- The selectionHighlightWidth 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 |