|
||||||||||
| 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
com.threerings.puzzle.client.PuzzlePanel
public abstract class PuzzlePanel
The puzzle panel class should be extended by classes that provide a view for a puzzle game. The
PuzzleController calls these methods as necessary to perform its duties in managing the
logical actions of a puzzle game.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 com.threerings.puzzle.data.PuzzleCodes |
|---|
DEBUG_PUZZLE, DEFAULT_DIFFICULTY, PUZZLE_MESSAGE_BUNDLE |
| Fields inherited from interface com.threerings.presents.data.InvocationCodes |
|---|
ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PuzzlePanel(PuzzleContext ctx,
PuzzleController controller)
Constructs a puzzle panel. |
|
| Method Summary | |
|---|---|
void |
addNotify()
|
void |
clearAction()
Called by the controller when the action stops. |
void |
didLeavePlace(com.threerings.crowd.data.PlaceObject plobj)
|
PuzzleBoardView |
getBoardView()
Returns a reference to the PuzzleBoardView in use. |
Controller |
getController()
|
boolean |
hasOverlay()
Returns true if an overlay panel is currently being displayed. |
void |
init(GameConfig config)
Initializes the puzzle panel with the puzzle config of the puzzle whose user interface is being displayed by the panel |
static boolean |
isRobotTesting()
Returns true if the robot tester is activated. |
static boolean |
isSyncingBoards()
Returns true if board syncing is activated. |
void |
popOverlayPanel()
Pops the overlay panel off of the main puzzle board display. |
boolean |
pushOverlayPanel(JPanel opanel)
Temporarily replaces the puzzle board display with the supplied overlay panel. |
void |
removeNotify()
|
void |
setPuzzleGrabsKeys(boolean puzgrabs)
Sets whether the puzzle grabs keys or if they should go to the chat window. |
void |
setRobotPlayer(boolean isrobot)
Sets whether this panel receives events periodically from a robot player. |
void |
startAction()
Called by the controller when the action starts. |
void |
willEnterPlace(com.threerings.crowd.data.PlaceObject plobj)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PuzzlePanel(PuzzleContext ctx,
PuzzleController controller)
| Method Detail |
|---|
public void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic boolean pushOverlayPanel(JPanel opanel)
popOverlayPanel().
public void popOverlayPanel()
public boolean hasOverlay()
public void init(GameConfig config)
public void setRobotPlayer(boolean isrobot)
public void setPuzzleGrabsKeys(boolean puzgrabs)
public void startAction()
public void clearAction()
public void willEnterPlace(com.threerings.crowd.data.PlaceObject plobj)
willEnterPlace in interface com.threerings.crowd.client.PlaceViewpublic void didLeavePlace(com.threerings.crowd.data.PlaceObject plobj)
didLeavePlace in interface com.threerings.crowd.client.PlaceViewpublic PuzzleBoardView getBoardView()
PuzzleBoardView in use.
public Controller getController()
getController in interface ControllerProviderpublic static boolean isRobotTesting()
public static boolean isSyncingBoards()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||