From 51b7fbe822bd9a3804c061f0b844884769d7ddba Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Wed, 6 Jul 2011 16:36:06 +0200 Subject: Javadoc git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@609 72836036-5685-4462-b002-a69064685172 --- doc/jrummikub/view/IClickable.html | 8 +- doc/jrummikub/view/IHandPanel.html | 48 +- doc/jrummikub/view/IPlayerPanel.html | 85 +- doc/jrummikub/view/IStoneCollectionPanel.html | 49 +- doc/jrummikub/view/IStonePanel.html | 8 +- doc/jrummikub/view/ITablePanel.html | 76 +- doc/jrummikub/view/IView.html | 991 +++++++++++++- doc/jrummikub/view/class-use/IClickable.html | 4 +- doc/jrummikub/view/class-use/IHandPanel.html | 22 +- doc/jrummikub/view/class-use/IPlayerPanel.html | 4 +- .../view/class-use/IStoneCollectionPanel.html | 4 +- doc/jrummikub/view/class-use/IStonePanel.html | 4 +- doc/jrummikub/view/class-use/ITablePanel.html | 4 +- doc/jrummikub/view/class-use/IView.html | 294 ++++- doc/jrummikub/view/impl/AbstractStonePanel.html | 210 ++- doc/jrummikub/view/impl/HandPanel.html | 427 +++++- doc/jrummikub/view/impl/PlayerPanel.html | 961 +++++++++++++- doc/jrummikub/view/impl/StartTurnPanel.html | 540 +++++++- doc/jrummikub/view/impl/StoneCollectionPanel.html | 182 ++- doc/jrummikub/view/impl/StonePainter.html | 599 ++++++++- doc/jrummikub/view/impl/TablePanel.html | 606 +++++++-- doc/jrummikub/view/impl/View.html | 1373 ++++++++++++++++---- .../view/impl/class-use/AbstractStonePanel.html | 4 +- doc/jrummikub/view/impl/class-use/HandPanel.html | 22 +- doc/jrummikub/view/impl/class-use/PlayerPanel.html | 64 +- .../view/impl/class-use/StartTurnPanel.html | 42 +- .../view/impl/class-use/StoneCollectionPanel.html | 42 +- .../view/impl/class-use/StonePainter.html | 20 +- doc/jrummikub/view/impl/class-use/TablePanel.html | 42 +- doc/jrummikub/view/impl/class-use/View.html | 14 +- doc/jrummikub/view/impl/package-frame.html | 53 +- doc/jrummikub/view/impl/package-summary.html | 105 +- doc/jrummikub/view/impl/package-tree.html | 57 +- doc/jrummikub/view/impl/package-use.html | 159 ++- doc/jrummikub/view/package-frame.html | 37 +- doc/jrummikub/view/package-summary.html | 63 +- doc/jrummikub/view/package-tree.html | 16 +- doc/jrummikub/view/package-use.html | 206 ++- 38 files changed, 6676 insertions(+), 769 deletions(-) (limited to 'doc/jrummikub/view') diff --git a/doc/jrummikub/view/IClickable.html b/doc/jrummikub/view/IClickable.html index b19680e..88fb3e6 100644 --- a/doc/jrummikub/view/IClickable.html +++ b/doc/jrummikub/view/IClickable.html @@ -2,12 +2,12 @@ - + IClickable - + @@ -56,7 +56,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -187,7 +187,7 @@ getClickEvent  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   diff --git a/doc/jrummikub/view/IHandPanel.html b/doc/jrummikub/view/IHandPanel.html index 5b5fb84..a4164a5 100644 --- a/doc/jrummikub/view/IHandPanel.html +++ b/doc/jrummikub/view/IHandPanel.html @@ -2,12 +2,12 @@ - + IHandPanel - + @@ -55,8 +55,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -122,18 +122,10 @@ The view for a player's hand that displays his stones  void -setHandHeight(int height) +resetCurrentRow()
-          Set the number of stones that fit on the hand vertically - - - - void -setHandWidth(int width) - -
-          Set the number of stones that fit on the hand horizontally +          Resets the rows currently displayed @@ -191,35 +183,19 @@ void setStones(java.lang.Iterable<

-setHandWidth

+

+resetCurrentRow

-void setHandWidth(int width)
+void resetCurrentRow()
-
Set the number of stones that fit on the hand horizontally +
Resets the rows currently displayed

-
Parameters:
width - number of stones
-
-
-
- -

-setHandHeight

-
-void setHandHeight(int height)
-
-
Set the number of stones that fit on the hand vertically -

-

-
-
Parameters:
height - number of stones
-

@@ -252,8 +228,8 @@ void setHandHeight(int height) PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
FRAMES    NO FRAMES   diff --git a/doc/jrummikub/view/IPlayerPanel.html b/doc/jrummikub/view/IPlayerPanel.html index a3fbaca..ff40acb 100644 --- a/doc/jrummikub/view/IPlayerPanel.html +++ b/doc/jrummikub/view/IPlayerPanel.html @@ -2,12 +2,12 @@ - + IPlayerPanel - + @@ -55,8 +55,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -126,11 +126,11 @@ The player panel that contains a player's board and other user interfaces - IHandPanel -getHandPanel() + IEvent +getRedealEvent()
-            +          The redeal event is emitted when the player wants to get new stones @@ -147,13 +147,22 @@ The player panel that contains a player's board and other user interfaces getSortByRunsEvent()
-          The sort by runs event is emitted when the player wants to sort his stones - by runs +          The sort by runs event is emitted when the player wants to sort his + stones by runs  void -setTimeLeft(int time) +setEndTurnMode(TurnMode turnMode) + +
+          Sets the buttons available to end the turn + + + + void +setTime(int time, + int totalTime)
          Sets the time the player has left for his turn @@ -172,27 +181,16 @@ The player panel that contains a player's board and other user interfaces -

-getHandPanel

+

+setTime

-IHandPanel getHandPanel()
-
-
- -
Returns:
the board where the players hand stones are displayed
-
-
-
- -

-setTimeLeft

-
-void setTimeLeft(int time)
+void setTime(int time, + int totalTime)
Sets the time the player has left for his turn

-
Parameters:
time - the time left
+
Parameters:
time - the time left
totalTime - total time for a turn

@@ -217,8 +215,8 @@ getSortByRunsEvent
 IEvent getSortByRunsEvent()
-
The sort by runs event is emitted when the player wants to sort his stones - by runs +
The sort by runs event is emitted when the player wants to sort his + stones by runs

@@ -239,6 +237,33 @@ getEndTurnEvent
Returns:
the event
+
+ +

+getRedealEvent

+
+IEvent getRedealEvent()
+
+
The redeal event is emitted when the player wants to get new stones +

+

+ +
Returns:
the event
+
+
+
+ +

+setEndTurnMode

+
+void setEndTurnMode(TurnMode turnMode)
+
+
Sets the buttons available to end the turn +

+

+
Parameters:
turnMode - the TurnMode
+
+

@@ -270,8 +295,8 @@ getEndTurnEvent PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
FRAMES    NO FRAMES   diff --git a/doc/jrummikub/view/IStoneCollectionPanel.html b/doc/jrummikub/view/IStoneCollectionPanel.html index 351390d..84b39a4 100644 --- a/doc/jrummikub/view/IStoneCollectionPanel.html +++ b/doc/jrummikub/view/IStoneCollectionPanel.html @@ -2,12 +2,12 @@ - + IStoneCollectionPanel - + @@ -55,7 +55,7 @@ function windowTitle() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -119,6 +119,14 @@ The view of the collection that shows the stones a player has selected Method Summary + + + void +setHidden(boolean enable) + +
+          Hide stone collection +   @@ -131,6 +139,31 @@ The view of the collection that shows the stones a player has selected
 

+ + + + + + + + +
+Method Detail
+ +

+setHidden

+
+void setHidden(boolean enable)
+
+
Hide stone collection +

+

+
+
+
+
Parameters:
enable - see stone collection
+
+

@@ -162,7 +195,7 @@ The view of the collection that shows the stones a player has selected PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -183,9 +216,9 @@ The view of the collection that shows the stones a player has selected - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/view/IStonePanel.html b/doc/jrummikub/view/IStonePanel.html index 0953e9b..3e15959 100644 --- a/doc/jrummikub/view/IStonePanel.html +++ b/doc/jrummikub/view/IStonePanel.html @@ -2,12 +2,12 @@ - + IStonePanel - + @@ -127,7 +127,7 @@ An interface for view elements that can emit click events for clicks on
          the range click event is emitted when the player clicks on the table/hand/ - etc. + etc. and wants to select a range instead of a single stone @@ -136,7 +136,7 @@ An interface for view elements that can emit click events for clicks on
          the set click event is emitted when the player clicks on the table/hand/ - etc. + etc. and wants to select a whole set instead of a single stone diff --git a/doc/jrummikub/view/ITablePanel.html b/doc/jrummikub/view/ITablePanel.html index d1fa85b..8d1a574 100644 --- a/doc/jrummikub/view/ITablePanel.html +++ b/doc/jrummikub/view/ITablePanel.html @@ -2,12 +2,12 @@ - + ITablePanel - + @@ -149,35 +149,11 @@ The view of the table, where the stone sets lie  void -setLeftPlayerName(java.lang.String playerName) - -
-          Sets the player name on the left label - - - - void -setRightPlayerName(java.lang.String playerName) - -
-          Sets the player name on the right label - - - - void setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
          Sets the stone sets lying on the table - - - void -setTopPlayerName(java.lang.String playerName) - -
-          Sets the player name on the top label -   @@ -210,54 +186,6 @@ The view of the table, where the stone sets lie
-

-setLeftPlayerName

-
-void setLeftPlayerName(java.lang.String playerName)
-
-
Sets the player name on the left label -

-

-
-
-
-
Parameters:
playerName - the name to set
-
-
-
- -

-setTopPlayerName

-
-void setTopPlayerName(java.lang.String playerName)
-
-
Sets the player name on the top label -

-

-
-
-
-
Parameters:
playerName - the name to set
-
-
-
- -

-setRightPlayerName

-
-void setRightPlayerName(java.lang.String playerName)
-
-
Sets the player name on the right label -

-

-
-
-
-
Parameters:
playerName - the name to set
-
-
-
-

setStoneSets

diff --git a/doc/jrummikub/view/IView.html b/doc/jrummikub/view/IView.html
index 08645c5..868a641 100644
--- a/doc/jrummikub/view/IView.html
+++ b/doc/jrummikub/view/IView.html
@@ -2,12 +2,12 @@
 
 
 
-
+
 
 IView
 
 
-
+
 
 
 
@@ -56,7 +56,7 @@ function windowTitle()
 
 
  PREV CLASS 
- NEXT CLASSNEXT CLASS
 
   FRAMES   
  NO FRAMES   
@@ -76,7 +76,7 @@ function windowTitle()
 
 
 
-  SUMMARY: NESTED | FIELD | CONSTR | METHOD
+  SUMMARY: NESTED | FIELD | CONSTR | METHOD
 
 DETAIL: FIELD | CONSTR | METHOD
 
@@ -107,7 +107,24 @@ The top-level view interface
 

+ + + + + + + + + + +
+Nested Class Summary
+static classIView.BottomPanelType + +
+          Different types of bottom panels
@@ -119,18 +136,129 @@ The top-level view interface  void -enableStartTurnPanel(boolean enable) +clearView() + +
+          Hides all view elements and panels except for the cleared table and an + empty hand panel + + + + void +enablePauseMode(boolean enable)
-          Enables or disables the player's StartTurnPanel +          Enable/disable pause mode  void -enableWinPanel(boolean enable) +enableSave(boolean enable) + +
+          Enables/disables saving in menu bar + + + + IEvent +getAcknowledgeConnectionLostEvent() + +
+          The acknoledge connection lost event is emitted when the user has + acknowledged that the network connection was lost + + + + IEvent +getAcknowledgeInvalidEvent() + +
+          The start turn event is emitted when the player knows what invalid stones + he played + + + + IConnectPanel +getConnectPanel() + +
+          Getter for connect panel + + + + IEvent +getEndPauseEvent() + +
+          The end pause event is emitted when the user wants to sresume the game + after a pause + + + + IEvent +getEndProgramEvent() + +
+          The quit event is emitted when the player wants to quit the game + + + + IGameListPanel +getGameListPanel() + +
+          Getter for game list panel + + + + IHandPanel +getHandPanel() + +
+            + + + + IEvent +getLoadEvent() + +
+          The load event is emitted when the user wants to load a previously saved + game state + + + + IEvent1<java.io.File> +getLoadFileEvent() + +
+          The load file event is emitted when the user chose to discard the current + game to save another + + + + ILoginPanel +getLoginPanel() + +
+          Getter for login panel + + + + IEvent +getMenuNewGameEvent() + +
+          The menu new game event is emitted when the user selects the new game menu + entry + + + + IEvent +getNetworkGameEvent()
-          Enables or disables the panel shown when a player has won +          The network game event is emitted when the user chooses a network game @@ -138,7 +266,23 @@ The top-level view interface getNewGameEvent()
-          The new game event is emitted when the player wants to start a new game +          Is emitted if the player wants to end the game and start a new one + + + + IEvent +getNewRoundEvent() + +
+          The new round event is emitted when the player wants to start a new round + + + + IEvent +getPauseEvent() + +
+          The pause event is emitted when the user wants to pause the current turn @@ -154,7 +298,48 @@ The top-level view interface getQuitEvent()
-          The quit event is emitted when the player wants to quit the game +          The quit event is emitted when the user wants to leave the application + + + + IQuitWarningPanel +getQuitWarningPanel() + +
+          Getter for quit warning panel + + + + IEvent1<java.io.File> +getSaveEvent() + +
+          The save event is emitted when the user wants to save the current game + state + + + + IScorePanel +getScorePanel() + +
+          Returns the score panel + + + + ISettingsPanel +getSettingsPanel() + +
+          Returns the settings panel + + + + ISidePanel +getSidePanel() + +
+          Returns the side panel @@ -175,6 +360,48 @@ The top-level view interface  void +load() + +
+          Loading a game + + + + void +resetLoginPanel() + +
+          Clears user input of the resetLoginPanel + + + + void +setBottomPanel(IView.BottomPanelType type) + +
+          Sets the bottom panels type + + + + void +setCurrentPlayerColor(java.awt.Color color) + +
+          Is used for the PlayerPanel and ScorePanel to display a player's color + along with the name + + + + void +setCurrentPlayerHasLaidOut(boolean hasLaidOut) + +
+          Is used for the PlayerPanel to display if a player has laid out along with + the name + + + + void setCurrentPlayerName(java.lang.String playerName)
@@ -183,11 +410,140 @@ The top-level view interface  void +setInitialMeldError(int points) + +
+          Is set if a player tried to lay out less than initial meld threshold + + + + void +setInitialMeldFirstError() + +
+          Is set if the player tried to modify the table without laying out first + + + + void +setInvalidStoneSets(java.util.Collection<StoneSet> sets) + +
+          Set invalid sets to enable showing + + + + void +setLastStonePlayerName(java.lang.String name) + +
+          Sets the name of the player that has drawn the last stone + + + + void +setMayPause(boolean mayPause) + +
+          Sets the pause button if pausing should be possible in the current + situation + + + + void +setRedealedPlayerName(java.lang.String name) + +
+          Sets the name of the player that has redealt last + + + + void setSelectedStones(java.util.Collection<Stone> stones)
          Sets the stones that are to be painted selected + + + void +setStoneCollectionHidden(boolean enable) + +
+          Show stone collection + + + + void +showConnectPanel(boolean show) + +
+          Set the connect panel visible + + + + void +showGameListPanel(boolean show) + +
+          Show/hide game list panel + + + + void +showLoadingError() + +
+          Show when loading is unsuccessful + + + + void +showLoginPanel(boolean show) + +
+          Show/hide login panel + + + + void +showQuitWarningPanel(boolean show) + +
+          Sets the quit warning panel visible + + + + void +showScorePanel(boolean show) + +
+          Shows or hides the score panel + + + + void +showServerStartupError(boolean alreadyRunning) + +
+          Show an error message when the server couldn't be started + + + + void +showSettingsPanel(boolean show) + +
+          Shows or hides the game settings panel + + + + void +showSidePanel(boolean show) + +
+          Show/hide side panel +  

@@ -202,22 +558,76 @@ The top-level view interface -

-getTablePanel

+

+getSettingsPanel

-ITablePanel getTablePanel()
+ISettingsPanel getSettingsPanel()
-
Returns the table +
Returns the settings panel

-
Returns:
the table
+
Returns:
the settings panel

-

-getPlayerPanel

+

+getScorePanel

+
+IScorePanel getScorePanel()
+
+
Returns the score panel +

+

+ +
Returns:
the score panel
+
+
+
+ +

+getTablePanel

+
+ITablePanel getTablePanel()
+
+
Returns the table +

+

+ +
Returns:
the table
+
+
+
+ +

+getSidePanel

+
+ISidePanel getSidePanel()
+
+
Returns the side panel +

+

+ +
Returns:
the side panel
+
+
+
+ +

+getHandPanel

+
+IHandPanel getHandPanel()
+
+
+ +
Returns:
the board where the players hand stones are displayed
+
+
+
+ +

+getPlayerPanel

 IPlayerPanel getPlayerPanel()
@@ -243,6 +653,32 @@ void setCurrentPlayerName(java.lang.String playerName)

+

+setRedealedPlayerName

+
+void setRedealedPlayerName(java.lang.String name)
+
+
Sets the name of the player that has redealt last +

+

+
Parameters:
name - the player name
+
+
+
+ +

+setLastStonePlayerName

+
+void setLastStonePlayerName(java.lang.String name)
+
+
Sets the name of the player that has drawn the last stone +

+

+
Parameters:
name - the player name
+
+
+
+

setSelectedStones

@@ -256,25 +692,27 @@ void setSelectedStones(java.util.Collection<

-enableStartTurnPanel

+

+getStartTurnEvent

-void enableStartTurnPanel(boolean enable)
+IEvent getStartTurnEvent()
-
Enables or disables the player's StartTurnPanel +
The start turn event is emitted when the player wants to start his turn

-
Parameters:
enable - enable/disable
+ +
Returns:
the event

-

-getStartTurnEvent

+

+getAcknowledgeInvalidEvent

-IEvent getStartTurnEvent()
+IEvent getAcknowledgeInvalidEvent()
-
The start turn event is emitted when the player wants to start his turn +
The start turn event is emitted when the player knows what invalid stones + he played

@@ -283,23 +721,25 @@ getStartTurnEvent

-

-enableWinPanel

+

+getAcknowledgeConnectionLostEvent

-void enableWinPanel(boolean enable)
+IEvent getAcknowledgeConnectionLostEvent()
-
Enables or disables the panel shown when a player has won +
The acknoledge connection lost event is emitted when the user has + acknowledged that the network connection was lost

-
Parameters:
enable - enable/disable
+ +
Returns:
the event

-

-getQuitEvent

+

+getEndProgramEvent

-IEvent getQuitEvent()
+IEvent getEndProgramEvent()
The quit event is emitted when the player wants to quit the game

@@ -310,18 +750,495 @@ getQuitEvent


+

+getNewRoundEvent

+
+IEvent getNewRoundEvent()
+
+
The new round event is emitted when the player wants to start a new round +

+

+ +
Returns:
the event
+
+
+
+ +

+showSettingsPanel

+
+void showSettingsPanel(boolean show)
+
+
Shows or hides the game settings panel +

+

+
Parameters:
show - specifies if the panel shall be shown or hidden
+
+
+
+ +

+showScorePanel

+
+void showScorePanel(boolean show)
+
+
Shows or hides the score panel +

+

+
Parameters:
show - specifies if the panel shall be shown or hidden
+
+
+
+ +

+setCurrentPlayerColor

+
+void setCurrentPlayerColor(java.awt.Color color)
+
+
Is used for the PlayerPanel and ScorePanel to display a player's color + along with the name +

+

+
Parameters:
color - the current player's color
+
+
+
+ +

+setCurrentPlayerHasLaidOut

+
+void setCurrentPlayerHasLaidOut(boolean hasLaidOut)
+
+
Is used for the PlayerPanel to display if a player has laid out along with + the name +

+

+
Parameters:
hasLaidOut - specifies if the current player has laid out or not
+
+
+
+

getNewGameEvent

 IEvent getNewGameEvent()
-
The new game event is emitted when the player wants to start a new game +
Is emitted if the player wants to end the game and start a new one +

+

+ +
Returns:
newGameEvent
+
+
+
+ +

+setBottomPanel

+
+void setBottomPanel(IView.BottomPanelType type)
+
+
Sets the bottom panels type +

+

+
Parameters:
type - the type of the bottom panel
+
+
+
+ +

+getMenuNewGameEvent

+
+IEvent getMenuNewGameEvent()
+
+
The menu new game event is emitted when the user selects the new game menu + entry +

+

+ +
Returns:
the event
+
+
+
+ +

+getLoadEvent

+
+IEvent getLoadEvent()
+
+
The load event is emitted when the user wants to load a previously saved + game state +

+

+ +
Returns:
the event
+
+
+
+ +

+getSaveEvent

+
+IEvent1<java.io.File> getSaveEvent()
+
+
The save event is emitted when the user wants to save the current game + state +

+

+ +
Returns:
the event
+
+
+
+ +

+getPauseEvent

+
+IEvent getPauseEvent()
+
+
The pause event is emitted when the user wants to pause the current turn +

+

+ +
Returns:
the event
+
+
+
+ +

+getEndPauseEvent

+
+IEvent getEndPauseEvent()
+
+
The end pause event is emitted when the user wants to sresume the game + after a pause +

+

+ +
Returns:
the event
+
+
+
+ +

+clearView

+
+void clearView()
+
+
Hides all view elements and panels except for the cleared table and an + empty hand panel +

+

+
+
+
+
+ +

+getNetworkGameEvent

+
+IEvent getNetworkGameEvent()
+
+
The network game event is emitted when the user chooses a network game

Returns:
the event
+
+ +

+getLoginPanel

+
+ILoginPanel getLoginPanel()
+
+
Getter for login panel +

+

+ +
Returns:
login panel
+
+
+
+ +

+getGameListPanel

+
+IGameListPanel getGameListPanel()
+
+
Getter for game list panel +

+

+ +
Returns:
game list panel
+
+
+
+ +

+showLoginPanel

+
+void showLoginPanel(boolean show)
+
+
Show/hide login panel +

+

+
Parameters:
show - true = login panel is shown
+
+
+
+ +

+resetLoginPanel

+
+void resetLoginPanel()
+
+
Clears user input of the resetLoginPanel +

+

+
+
+
+
+ +

+enablePauseMode

+
+void enablePauseMode(boolean enable)
+
+
Enable/disable pause mode +

+

+
Parameters:
enable - true = enable
+
+
+
+ +

+showGameListPanel

+
+void showGameListPanel(boolean show)
+
+
Show/hide game list panel +

+

+
Parameters:
show - true = show
+
+
+
+ +

+showSidePanel

+
+void showSidePanel(boolean show)
+
+
Show/hide side panel +

+

+
Parameters:
show - true to show
+
+
+
+ +

+setInitialMeldError

+
+void setInitialMeldError(int points)
+
+
Is set if a player tried to lay out less than initial meld threshold +

+

+
Parameters:
points - initial meld threshold
+
+
+
+ +

+setStoneCollectionHidden

+
+void setStoneCollectionHidden(boolean enable)
+
+
Show stone collection +

+

+
Parameters:
enable - showing collection
+
+
+
+ +

+setInitialMeldFirstError

+
+void setInitialMeldFirstError()
+
+
Is set if the player tried to modify the table without laying out first +

+

+
+
+
+
+ +

+setInvalidStoneSets

+
+void setInvalidStoneSets(java.util.Collection<StoneSet> sets)
+
+
Set invalid sets to enable showing +

+

+
Parameters:
sets - invalid sets on table
+
+
+
+ +

+showLoadingError

+
+void showLoadingError()
+
+
Show when loading is unsuccessful +

+

+
+
+
+
+ +

+showServerStartupError

+
+void showServerStartupError(boolean alreadyRunning)
+
+
Show an error message when the server couldn't be started +

+

+
Parameters:
alreadyRunning - true when the server is already running on this machine
+
+
+
+ +

+enableSave

+
+void enableSave(boolean enable)
+
+
Enables/disables saving in menu bar +

+

+
Parameters:
enable - saving possible
+
+
+
+ +

+showQuitWarningPanel

+
+void showQuitWarningPanel(boolean show)
+
+
Sets the quit warning panel visible +

+

+
Parameters:
show - is visible
+
+
+
+ +

+getQuitEvent

+
+IEvent getQuitEvent()
+
+
The quit event is emitted when the user wants to leave the application +

+

+ +
Returns:
the event
+
+
+
+ +

+getQuitWarningPanel

+
+IQuitWarningPanel getQuitWarningPanel()
+
+
Getter for quit warning panel +

+

+ +
Returns:
the panel
+
+
+
+ +

+getLoadFileEvent

+
+IEvent1<java.io.File> getLoadFileEvent()
+
+
The load file event is emitted when the user chose to discard the current + game to save another +

+

+ +
Returns:
the event
+
+
+
+ +

+load

+
+void load()
+
+
Loading a game +

+

+
+
+
+
+ +

+showConnectPanel

+
+void showConnectPanel(boolean show)
+
+
Set the connect panel visible +

+

+
Parameters:
show - is visible
+
+
+
+ +

+getConnectPanel

+
+IConnectPanel getConnectPanel()
+
+
Getter for connect panel +

+

+ +
Returns:
the panel
+
+
+
+ +

+setMayPause

+
+void setMayPause(boolean mayPause)
+
+
Sets the pause button if pausing should be possible in the current + situation +

+

+
Parameters:
mayPause - pausing possible
+
+

@@ -354,7 +1271,7 @@ getNewGameEvent  PREV CLASS  - NEXT CLASSNEXT CLASS
FRAMES    NO FRAMES   @@ -374,7 +1291,7 @@ getNewGameEvent - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD diff --git a/doc/jrummikub/view/class-use/IClickable.html b/doc/jrummikub/view/class-use/IClickable.html index 94460f1..4a76266 100644 --- a/doc/jrummikub/view/class-use/IClickable.html +++ b/doc/jrummikub/view/class-use/IClickable.html @@ -2,12 +2,12 @@ - + Uses of Interface jrummikub.view.IClickable - + diff --git a/doc/jrummikub/view/class-use/IHandPanel.html b/doc/jrummikub/view/class-use/IHandPanel.html index 7ed830f..68db0b5 100644 --- a/doc/jrummikub/view/class-use/IHandPanel.html +++ b/doc/jrummikub/view/class-use/IHandPanel.html @@ -2,12 +2,12 @@ - + Uses of Interface jrummikub.view.IHandPanel - + @@ -117,7 +117,7 @@ Uses of  IHandPanel -IPlayerPanel.getHandPanel() +IView.getHandPanel()
            @@ -150,6 +150,22 @@ Uses of + +Methods in jrummikub.view.impl that return IHandPanel
+ + + + IHandPanel +View.getHandPanel() + +
+            + + +  +


diff --git a/doc/jrummikub/view/class-use/IPlayerPanel.html b/doc/jrummikub/view/class-use/IPlayerPanel.html index 8cd32ce..aebac47 100644 --- a/doc/jrummikub/view/class-use/IPlayerPanel.html +++ b/doc/jrummikub/view/class-use/IPlayerPanel.html @@ -2,12 +2,12 @@ - + Uses of Interface jrummikub.view.IPlayerPanel - + diff --git a/doc/jrummikub/view/class-use/IStoneCollectionPanel.html b/doc/jrummikub/view/class-use/IStoneCollectionPanel.html index 92dc94b..3b9e91f 100644 --- a/doc/jrummikub/view/class-use/IStoneCollectionPanel.html +++ b/doc/jrummikub/view/class-use/IStoneCollectionPanel.html @@ -2,12 +2,12 @@ - + Uses of Interface jrummikub.view.IStoneCollectionPanel - + diff --git a/doc/jrummikub/view/class-use/IStonePanel.html b/doc/jrummikub/view/class-use/IStonePanel.html index 5ffbe74..bf5c2d9 100644 --- a/doc/jrummikub/view/class-use/IStonePanel.html +++ b/doc/jrummikub/view/class-use/IStonePanel.html @@ -2,12 +2,12 @@ - + Uses of Interface jrummikub.view.IStonePanel - + diff --git a/doc/jrummikub/view/class-use/ITablePanel.html b/doc/jrummikub/view/class-use/ITablePanel.html index d7bc095..e014727 100644 --- a/doc/jrummikub/view/class-use/ITablePanel.html +++ b/doc/jrummikub/view/class-use/ITablePanel.html @@ -2,12 +2,12 @@ - + Uses of Interface jrummikub.view.ITablePanel - + diff --git a/doc/jrummikub/view/class-use/IView.html b/doc/jrummikub/view/class-use/IView.html index a68e291..e976591 100644 --- a/doc/jrummikub/view/class-use/IView.html +++ b/doc/jrummikub/view/class-use/IView.html @@ -2,12 +2,12 @@ - + Uses of Interface jrummikub.view.IView - + @@ -94,6 +94,14 @@ Packages that use +jrummikub.control.network +   + + +jrummikub.control.turn +   + + jrummikub.view.impl    @@ -110,43 +118,125 @@ Uses of + +Fields in jrummikub.control declared as IView
+ + + +private  IView +LoginControl.view + +
+            + + + +private  IView +RoundControl.view + +
+            + + + +protected  IView +AbstractSettingsControl.view + +
+            + + + +private  IView +ApplicationControl.view + +
+            + + + +protected  IView +GameControl.view + +
+            + + + +private  IView +TurnTimer.view + +
+            + + +  +

+ - + + + + + + - + + + +          Create a new RoundControl using the given roundState and view - + + + +          Creates a new SaveControl - +          Create a new settings control - @@ -154,6 +244,178 @@ Uses of +
Constructors in jrummikub.control with parameters of type IView
GameControl(IView view) +AbstractSettingsControl(IView view, + GameSettings settings) + +
+          Create a new settings control
ApplicationControl(IView view) + +
+          Creates a new application control
GameControl(GameSettings gameSettings, + SaveControl saveControl, + IView view)
          Constructor
RoundControl(IGameState gameState, +LoginControl(IView view, + ApplicationControl applicationControl) + +
+          Constructor for login Control
RoundControl(IRoundState roundState, IView view)
-          Create a new RoundControl using the given gameState and view
TurnControl(IHand hand, - ITable table, - IView view) +RoundControl(IRoundState roundState, + IView view, + boolean mayPause) + +
+          Create a new RoundControl using the given roundState and view
SaveControl(IView view)
-          Create a new TurnControl using a given hand (of the active player), a given - table and a given view for user interaction.
TurnControl(IHand hand, - ITable table, - IView view, - ITurnTimer testTimer) +SettingsControl(IView view, + GameSettings settings)
-          Test only constructor
TurnTimer(IView view) +TurnTimer(IView view, + int totalTime)
          Create a new timer using a given view to display the current time left
+ + + +
+Uses of IView in jrummikub.control.network
+  +

+ + + + + + + + + + + + + +
Fields in jrummikub.control.network declared as IView
+private  IViewNetworkControl.view + +
+           
+protected  IViewAbstractGameBeginControl.view + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control.network with parameters of type IView
+private  voidAbstractGameBeginControl.addViewListeners(IView view, + GameData gameData) + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in jrummikub.control.network with parameters of type IView
AbstractGameBeginControl(IConnectionControl connection, + IView view, + GameData gameData, + ISettingsPanel.SettingsMode settingsMode) + +
+          Create a new game begin control
GameJoinControl(IConnectionControl connectionControl, + GameData gameData, + IView view) + +
+          Creates new game join control
GameOfferControl(IConnectionControl connectionControl, + GameSettings settings, + IView view) + +
+          Creates new game offer control
NetworkControl(LoginData loginData, + IConnectionControl connectionControl, + SaveControl saveControl, + IView view) + +
+          Creates a new network control
NetworkGameControl(GameSettings gameSettings, + SaveControl saveControl, + IView view, + IConnectionControl connectionControl, + boolean host) + +
+          Creates new network game control
NetworkRoundControl(IRoundState roundState, + IView view, + IConnectionControl connectionControl, + boolean startActive) + +
+          Creates new network round control
NetworkSettingsControl(java.lang.String nickname, + IView view, + GameSettings settings) + +
+          Creates a new network settings control
+  +

+ + + + + +
+Uses of IView in jrummikub.control.turn
+  +

+ + + + + + + + + +
Fields in jrummikub.control.turn declared as IView
+protected  IViewAbstractTurnControl.view + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in jrummikub.control.turn with parameters of type IView
+ voidAbstractTurnControl.setup(ITurnControl.TurnInfo info, + GameSettings settings, + IView view) + +
+           
+ voidITurnControl.setup(ITurnControl.TurnInfo info, + GameSettings settings, + IView view) + +
+          Start the turn
+  +

diff --git a/doc/jrummikub/view/impl/AbstractStonePanel.html b/doc/jrummikub/view/impl/AbstractStonePanel.html index 545d616..3edfcb0 100644 --- a/doc/jrummikub/view/impl/AbstractStonePanel.html +++ b/doc/jrummikub/view/impl/AbstractStonePanel.html @@ -2,12 +2,12 @@ - + AbstractStonePanel - + @@ -56,7 +56,7 @@ function windowTitle() + NEXT CLASS + SUMMARY: NESTED | FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
@@ -175,6 +175,62 @@ Base class for panels that draw stones Field Summary + + +private  Event1<Position> +clickEvent + +
+            + + + +private  Stone +hoveredStone + +
+            + + + +private  Event2<Stone,java.lang.Boolean> +rangeClickEvent + +
+            + + + +private  Event2<Stone,java.lang.Boolean> +setClickEvent + +
+            + + + +private  Event2<Stone,java.lang.Boolean> +stoneClickEvent + +
+            + + + +private  StonePainter +stonePainter + +
+            + + + +private  java.lang.Iterable<Pair<Stone,Position>> +stones + +
+            +   @@ -269,7 +325,7 @@ Base class for panels that draw stones
          the range click event is emitted when the player clicks on the table/hand/ - etc. + etc. and wants to select a range instead of a single stone + etc. and wants to select a whole set instead of a single stone + + + + +          Returns the translation in pixels the stones in this panel are painted + with + + + + + NEXT CLASS + SUMMARY: NESTED | FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
@@ -278,7 +334,15 @@ Base class for panels that draw stones
          the set click event is emitted when the player clicks on the table/hand/ - etc.
+private  StonegetStoneAt(Position pos) + +
+          Gets the stone at the specified position
@@ -310,7 +374,8 @@ Base class for panels that draw stones getTranslation()
-          Returns the translation in pixels the stones in this panel are painted with
@@ -330,6 +395,14 @@ Base class for panels that draw stones
+private  voidsetHoveredStone(Stone stone) + +
+          Sets the stone over which the cursor hovers
protected  void setStones(java.lang.Iterable<Pair<Stone,Position>> stones) @@ -385,6 +458,85 @@ Base class for panels that draw stones  

+ + + + + + + +
+Field Detail
+ +

+stonePainter

+
+private StonePainter stonePainter
+
+
+
+
+
+ +

+clickEvent

+
+private Event1<Position> clickEvent
+
+
+
+
+
+ +

+stoneClickEvent

+
+private Event2<Stone,java.lang.Boolean> stoneClickEvent
+
+
+
+
+
+ +

+rangeClickEvent

+
+private Event2<Stone,java.lang.Boolean> rangeClickEvent
+
+
+
+
+
+ +

+setClickEvent

+
+private Event2<Stone,java.lang.Boolean> setClickEvent
+
+
+
+
+
+ +

+stones

+
+private java.lang.Iterable<Pair<Stone,Position>> stones
+
+
+
+
+
+ +

+hoveredStone

+
+private Stone hoveredStone
+
+
+
+
+ @@ -461,6 +613,22 @@ protected void clickAt(java.awt.Point p,
+

+setHoveredStone

+
+private void setHoveredStone(Stone stone)
+
+
Sets the stone over which the cursor hovers +

+

+
+
+
+
Parameters:
stone - stone under cursor
+
+
+
+

getHoveredStone

@@ -511,6 +679,23 @@ protected void handleOtherMoveEvent(

+getStoneAt

+
+private Stone getStoneAt(Position pos)
+
+
Gets the stone at the specified position +

+

+
+
+
+
Parameters:
pos - position +
Returns:
the stone
+
+
+
+

setStones

@@ -532,7 +717,8 @@ getTranslation
 
 protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()
-
Returns the translation in pixels the stones in this panel are painted with +
Returns the translation in pixels the stones in this panel are painted + with

@@ -673,7 +859,7 @@ public  PREV CLASS  - NEXT CLASS
diff --git a/doc/jrummikub/view/impl/HandPanel.html b/doc/jrummikub/view/impl/HandPanel.html index 033fccc..22b1264 100644 --- a/doc/jrummikub/view/impl/HandPanel.html +++ b/doc/jrummikub/view/impl/HandPanel.html @@ -2,12 +2,12 @@ - + HandPanel - + @@ -55,8 +55,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -173,6 +173,86 @@ Implementation of the board Field Summary + + +private static java.awt.image.BufferedImage +BACKGROUND + +
+            + + + +private  int +currentRow + +
+            + + + +private static java.awt.image.BufferedImage +DARK_BACKGROUND + +
+            + + + +private static int +HEIGHT + +
+            + + + +private  int +maxRow + +
+            + + + +private  PlayerPanel +playerPanel + +
+            + + + +private  boolean +repaintAll + +
+            + + + +private  java.awt.image.BufferedImage +scaledBackground + +
+            + + + +private  java.awt.image.BufferedImage +scaledDarkBackground + +
+            + + + +private  java.util.Collection<Stone> +selectedStones + +
+            +   @@ -198,7 +278,7 @@ Implementation of the board - +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS, WIDTH
  @@ -211,7 +291,7 @@ Implementation of the board Constructor Summary -HandPanel() +HandPanel(PlayerPanel playerPanel)
          Creates a new Board instance @@ -228,6 +308,40 @@ Implementation of the board +(package private)  boolean +canRowDown() + +
+          Is there a lower row than the current row + + + +(package private)  boolean +canRowUp() + +
+          Is there a higher row than the current row + + + +private  java.awt.image.BufferedImage +getScaledBackground(int size, + java.awt.image.BufferedImage background) + +
+            + + + + Pair<java.lang.Integer,java.lang.Integer> +getTranslation() + +
+          Returns the translation in pixels the stones in this panel are painted + with + + + protected  void paintComponent(java.awt.Graphics g1) @@ -236,19 +350,35 @@ Implementation of the board - void -setHandHeight(int height) +(package private)  int +rescale(int height)
-          Set the number of stones that fit on the hand vertically +          Rescales the hand panel according to window size  void -setHandWidth(int width) +resetCurrentRow()
-          Set the number of stones that fit on the hand horizontally +          Resets the rows currently displayed + + + +(package private)  void +rowDown() + +
+          Updates panel after visible row changed + + + +(package private)  void +rowUp() + +
+          Updates panel after visible row changed @@ -273,7 +403,7 @@ Implementation of the board Methods inherited from class jrummikub.view.impl.AbstractStonePanel -clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, getTranslation, handleOtherClickEvent, handleOtherMoveEvent +clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, handleOtherClickEvent, handleOtherMoveEvent   @@ -342,6 +472,115 @@ Implementation of the board  

+ + + + + + + +
+Field Detail
+ +

+HEIGHT

+
+private static final int HEIGHT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+BACKGROUND

+
+private static final java.awt.image.BufferedImage BACKGROUND
+
+
+
+
+
+ +

+DARK_BACKGROUND

+
+private static final java.awt.image.BufferedImage DARK_BACKGROUND
+
+
+
+
+
+ +

+scaledBackground

+
+private java.awt.image.BufferedImage scaledBackground
+
+
+
+
+
+ +

+scaledDarkBackground

+
+private java.awt.image.BufferedImage scaledDarkBackground
+
+
+
+
+
+ +

+playerPanel

+
+private PlayerPanel playerPanel
+
+
+
+
+
+ +

+currentRow

+
+private int currentRow
+
+
+
+
+
+ +

+maxRow

+
+private int maxRow
+
+
+
+
+
+ +

+repaintAll

+
+private boolean repaintAll
+
+
+
+
+
+ +

+selectedStones

+
+private java.util.Collection<Stone> selectedStones
+
+
+
+
+ @@ -352,10 +591,10 @@ Implementation of the board -

+

HandPanel

-HandPanel()
+HandPanel(PlayerPanel playerPanel)
Creates a new Board instance

@@ -371,36 +610,17 @@ HandPanel -

-setHandWidth

+

+getScaledBackground

-public void setHandWidth(int width)
+private java.awt.image.BufferedImage getScaledBackground(int size, + java.awt.image.BufferedImage background)
-
Description copied from interface: IHandPanel
-
Set the number of stones that fit on the hand horizontally -

-

-
Specified by:
setHandWidth in interface IHandPanel
-
-
Parameters:
width - number of stones
-
-
- -

-setHandHeight

-
-public void setHandHeight(int height)
-
-
Description copied from interface: IHandPanel
-
Set the number of stones that fit on the hand vertically -

-

-
Specified by:
setHandHeight in interface IHandPanel
-
Parameters:
height - number of stones
+

@@ -436,6 +656,108 @@ public void setStones(java.lang.Iterable<

+rowUp

+
+void rowUp()
+
+
Updates panel after visible row changed +

+

+
+
+
+
+
+
+
+ +

+rowDown

+
+void rowDown()
+
+
Updates panel after visible row changed +

+

+
+
+
+
+
+
+
+ +

+resetCurrentRow

+
+public void resetCurrentRow()
+
+
Description copied from interface: IHandPanel
+
Resets the rows currently displayed +

+

+
Specified by:
resetCurrentRow in interface IHandPanel
+
+
+
+
+
+
+ +

+canRowUp

+
+boolean canRowUp()
+
+
Is there a higher row than the current row +

+

+
+
+
+ +
Returns:
higher row present
+
+
+
+ +

+canRowDown

+
+boolean canRowDown()
+
+
Is there a lower row than the current row +

+

+
+
+
+ +
Returns:
higher row present
+
+
+
+ +

+getTranslation

+
+public Pair<java.lang.Integer,java.lang.Integer> getTranslation()
+
+
Description copied from class: AbstractStonePanel
+
Returns the translation in pixels the stones in this panel are painted + with +

+

+
Overrides:
getTranslation in class AbstractStonePanel
+
+
+ +
Returns:
the translation
+
+
+
+

setSelectedStones

@@ -450,6 +772,23 @@ void setSelectedStones(java.util.Collection<

+rescale

+
+int rescale(int height)
+
+
Rescales the hand panel according to window size +

+

+
+
+
+
Parameters:
height - of hand panel +
Returns:
width of hand panel
+
+

@@ -481,8 +820,8 @@ void setSelectedStones(java.util.Collection<PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
FRAMES    NO FRAMES   @@ -502,9 +841,9 @@ void setSelectedStones(java.util.Collection< - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/doc/jrummikub/view/impl/PlayerPanel.html b/doc/jrummikub/view/impl/PlayerPanel.html index 8e04896..a611ef8 100644 --- a/doc/jrummikub/view/impl/PlayerPanel.html +++ b/doc/jrummikub/view/impl/PlayerPanel.html @@ -2,12 +2,12 @@ - + PlayerPanel - + @@ -55,8 +55,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -123,6 +123,22 @@ Implementation of the player panel Nested Class Summary + + +private  class +PlayerPanel.LeftPanelResizeListener + +
+            + + + +private  class +PlayerPanel.RightPanelResizeListener + +
+            +   @@ -172,6 +188,246 @@ Implementation of the player panel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Field Summary
+private  javax.swing.JLabelcurrentPlayerNameLabel + +
+           
+private  javax.swing.JButtonendTurnButton + +
+           
+private  EventendTurnEvent + +
+           
+private  HandPanelhand + +
+           
+private static floatHAND_ROW_BUTTON_RATIO + +
+           
+private  javax.swing.JButtonhandRowDownButton + +
+           
+private  javax.swing.JButtonhandRowUpButton + +
+           
+private  javax.swing.JLabelhasLaidOutLabel + +
+           
+private  javax.swing.JButtonkeepStonesButton + +
+           
+private  javax.swing.JPanelleftPanel + +
+           
+private  java.awt.event.ComponentListenerleftPanelResizeListener + +
+           
+private  intleftPanelWidth + +
+           
+private static floatMAX_BUTTON_FONT_SIZE + +
+           
+private  booleanmayPause + +
+           
+private  javax.swing.JButtonpauseButton + +
+           
+private  EventpauseEvent + +
+           
+private  javax.swing.JButtonredealButton + +
+           
+private  EventredealEvent + +
+           
+private  javax.swing.JPanelrightPanel + +
+           
+private  java.awt.event.ComponentListenerrightPanelResizeListener + +
+           
+private static java.text.DecimalFormatsecondFormat + +
+           
+private static floatSIDE_PANEL_FIRST_LINE_HEIGHT + +
+           
+private static intSIDE_PANEL_INSET + +
+           
+private static intSIDE_PANEL_MAX_WIDTH + +
+           
+private static intSIDE_PANEL_SEPARATOR + +
+           
+private  javax.swing.JButtonsortByGroupsButton + +
+           
+private  EventsortByGroupsEvent + +
+           
+private  javax.swing.JButtonsortByRunsButton + +
+           
+private  EventsortByRunsEvent + +
+           
+private  javax.swing.JProgressBartimeBar + +
+           
  @@ -227,6 +483,48 @@ Implementation of the player panel + + + + + + + + + + + + + + + + + + + + +(package private)  HandPanel + + + + + + + + + + + + +          The sort by runs event is emitted when the player wants to sort his + stones by runs + + + + + + + + - +          Sets the buttons available to end the turn + + + + + + + + + + + + + + + + + + + +
+private  javax.swing.JButtoncreateButton(javax.swing.JPanel panel, + java.lang.String caption, + java.awt.event.ActionListener listener) + +
+           
+private  voidcreateLeftPanel() + +
+           
+private  voidcreateRightPanel() + +
+           
+private  voidcreateRightPanelButtons() + +
+           
+(package private)  voidenableButtons(boolean enable) + +
+           
 IEvent getEndTurnEvent() @@ -235,7 +533,7 @@ Implementation of the player panel
- HandPanel getHandPanel()
@@ -243,6 +541,30 @@ Implementation of the player panel
+(package private)  intgetLeftPanelWidth() + +
+           
+(package private)  IEventgetPauseEvent() + +
+           
+ IEventgetRedealEvent() + +
+          The redeal event is emitted when the player wants to get new stones
 IEvent getSortByGroupsEvent() @@ -256,8 +578,24 @@ Implementation of the player panel getSortByRunsEvent()
-          The sort by runs event is emitted when the player wants to sort his stones - by runs
+(package private)  voidrescale() + +
+           
+(package private)  voidsetCurrentPlayerColor(java.awt.Color color) + +
+           
@@ -270,10 +608,51 @@ Implementation of the player panel
 voidsetTimeLeft(int time) +setEndTurnMode(TurnMode turnMode)
-          Sets the time the player has left for his turn
+(package private)  voidsetHasLaidOut(boolean hasLaidOut) + +
+           
+(package private)  voidsetMayPause(boolean mayPause) + +
+           
+ voidsetTime(int time, + int totalTime) + +
+          Sets the time the player has left for his turn
+(package private)  voidshowButtons(boolean show) + +
+           
+(package private)  voidupdateButtons() + +
+           
  @@ -324,6 +703,315 @@ Implementation of the player panel  

+ + + + + + + +
+Field Detail
+ +

+SIDE_PANEL_INSET

+
+private static final int SIDE_PANEL_INSET
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SIDE_PANEL_SEPARATOR

+
+private static final int SIDE_PANEL_SEPARATOR
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SIDE_PANEL_FIRST_LINE_HEIGHT

+
+private static final float SIDE_PANEL_FIRST_LINE_HEIGHT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SIDE_PANEL_MAX_WIDTH

+
+private static final int SIDE_PANEL_MAX_WIDTH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+HAND_ROW_BUTTON_RATIO

+
+private static final float HAND_ROW_BUTTON_RATIO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MAX_BUTTON_FONT_SIZE

+
+private static final float MAX_BUTTON_FONT_SIZE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+secondFormat

+
+private static final java.text.DecimalFormat secondFormat
+
+
+
+
+
+ +

+hand

+
+private HandPanel hand
+
+
+
+
+
+ +

+leftPanel

+
+private javax.swing.JPanel leftPanel
+
+
+
+
+
+ +

+rightPanel

+
+private javax.swing.JPanel rightPanel
+
+
+
+
+
+ +

+currentPlayerNameLabel

+
+private javax.swing.JLabel currentPlayerNameLabel
+
+
+
+
+
+ +

+hasLaidOutLabel

+
+private javax.swing.JLabel hasLaidOutLabel
+
+
+
+
+
+ +

+sortByGroupsButton

+
+private javax.swing.JButton sortByGroupsButton
+
+
+
+
+
+ +

+sortByRunsButton

+
+private javax.swing.JButton sortByRunsButton
+
+
+
+
+
+ +

+handRowUpButton

+
+private javax.swing.JButton handRowUpButton
+
+
+
+
+
+ +

+handRowDownButton

+
+private javax.swing.JButton handRowDownButton
+
+
+
+
+
+ +

+timeBar

+
+private javax.swing.JProgressBar timeBar
+
+
+
+
+
+ +

+endTurnButton

+
+private javax.swing.JButton endTurnButton
+
+
+
+
+
+ +

+keepStonesButton

+
+private javax.swing.JButton keepStonesButton
+
+
+
+
+
+ +

+redealButton

+
+private javax.swing.JButton redealButton
+
+
+
+
+
+ +

+pauseButton

+
+private javax.swing.JButton pauseButton
+
+
+
+
+
+ +

+sortByGroupsEvent

+
+private Event sortByGroupsEvent
+
+
+
+
+
+ +

+sortByRunsEvent

+
+private Event sortByRunsEvent
+
+
+
+
+
+ +

+endTurnEvent

+
+private Event endTurnEvent
+
+
+
+
+
+ +

+redealEvent

+
+private Event redealEvent
+
+
+
+
+
+ +

+pauseEvent

+
+private Event pauseEvent
+
+
+
+
+
+ +

+leftPanelWidth

+
+private int leftPanelWidth
+
+
+
+
+
+ +

+mayPause

+
+private boolean mayPause
+
+
+
+
+
+ +

+leftPanelResizeListener

+
+private java.awt.event.ComponentListener leftPanelResizeListener
+
+
+
+
+
+ +

+rightPanelResizeListener

+
+private java.awt.event.ComponentListener rightPanelResizeListener
+
+
+
+
+ @@ -356,14 +1044,13 @@ PlayerPanel

getHandPanel

-public HandPanel getHandPanel()
+HandPanel getHandPanel()
-
Specified by:
getHandPanel in interface IPlayerPanel
+
- -
Returns:
the board where the players hand stones are displayed
+

@@ -384,19 +1071,48 @@ void setCurrentPlayerName(java.lang.String playerName)
-

-setTimeLeft

+

+setCurrentPlayerColor

+
+void setCurrentPlayerColor(java.awt.Color color)
+
+
+
+
+
+
+
+
+
+ +

+setHasLaidOut

-public void setTimeLeft(int time)
+void setHasLaidOut(boolean hasLaidOut)
-
Description copied from interface: IPlayerPanel
+
+
+
+
+
+
+
+
+ +

+setTime

+
+public void setTime(int time,
+                    int totalTime)
+
+
Description copied from interface: IPlayerPanel
Sets the time the player has left for his turn

-
Specified by:
setTimeLeft in interface IPlayerPanel
+
Specified by:
setTime in interface IPlayerPanel
-
Parameters:
time - the time left
+
Parameters:
time - the time left
totalTime - total time for a turn

@@ -426,8 +1142,8 @@ getSortByRunsEvent public IEvent getSortByRunsEvent()
Description copied from interface: IPlayerPanel
-
The sort by runs event is emitted when the player wants to sort his stones - by runs +
The sort by runs event is emitted when the player wants to sort his + stones by runs

Specified by:
getSortByRunsEvent in interface IPlayerPanel
@@ -455,6 +1171,197 @@ public

+getRedealEvent

+
+public IEvent getRedealEvent()
+
+
Description copied from interface: IPlayerPanel
+
The redeal event is emitted when the player wants to get new stones +

+

+
Specified by:
getRedealEvent in interface IPlayerPanel
+
+
+ +
Returns:
the event
+
+
+
+ +

+getPauseEvent

+
+IEvent getPauseEvent()
+
+
+
+
+
+
+
+
+
+ +

+createLeftPanel

+
+private void createLeftPanel()
+
+
+
+
+
+
+
+
+
+ +

+createRightPanel

+
+private void createRightPanel()
+
+
+
+
+
+
+
+
+
+ +

+createRightPanelButtons

+
+private void createRightPanelButtons()
+
+
+
+
+
+
+
+
+
+ +

+createButton

+
+private javax.swing.JButton createButton(javax.swing.JPanel panel,
+                                         java.lang.String caption,
+                                         java.awt.event.ActionListener listener)
+
+
+
+
+
+
+
+
+
+ +

+rescale

+
+void rescale()
+
+
+
+
+
+
+
+
+
+ +

+getLeftPanelWidth

+
+int getLeftPanelWidth()
+
+
+
+
+
+
+
+
+
+ +

+updateButtons

+
+void updateButtons()
+
+
+
+
+
+
+
+
+
+ +

+setEndTurnMode

+
+public void setEndTurnMode(TurnMode turnMode)
+
+
Description copied from interface: IPlayerPanel
+
Sets the buttons available to end the turn +

+

+
Specified by:
setEndTurnMode in interface IPlayerPanel
+
+
+
Parameters:
turnMode - the TurnMode
+
+
+
+ +

+showButtons

+
+void showButtons(boolean show)
+
+
+
+
+
+
+
+
+
+ +

+enableButtons

+
+void enableButtons(boolean enable)
+
+
+
+
+
+
+
+
+
+ +

+setMayPause

+
+void setMayPause(boolean mayPause)
+
+
+
+
+
+
+
+

@@ -486,8 +1393,8 @@ public PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -507,9 +1414,9 @@ public - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/doc/jrummikub/view/impl/StartTurnPanel.html b/doc/jrummikub/view/impl/StartTurnPanel.html index c4f9905..dd6d059 100644 --- a/doc/jrummikub/view/impl/StartTurnPanel.html +++ b/doc/jrummikub/view/impl/StartTurnPanel.html @@ -2,12 +2,12 @@ - + StartTurnPanel - + @@ -55,7 +55,7 @@ function windowTitle() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -172,6 +172,142 @@ A panel that is displayed before a player's turn Field Summary + + +private  Event +acknowledgeConnectionLostEvent + +
+            + + + +private  Event +acknowledgeInvalidEvent + +
+            + + + +private  Event +buttonEvent + +
+            + + + +private  java.awt.Color +currentPlayerColor + +
+            + + + +private  java.lang.String +currentPlayerName + +
+            + + + +private  javax.swing.JLabel +extraLabel + +
+            + + + +private  java.lang.String +lastStonePlayerName + +
+            + + + +private static float +MAX_BUTTON_FONT_SIZE + +
+            + + + +private static float +PANEL_FIRST_LINE_HEIGHT + +
+            + + + +private static int +PANEL_INSET + +
+            + + + +private static int +PANEL_MAX_WIDTH + +
+            + + + +private static int +PANEL_SEPARATOR + +
+            + + + +private  java.lang.String +redealedPlayerName + +
+            + + + +private  javax.swing.JButton +startTurnButton + +
+            + + + +private  Event +startTurnEvent + +
+            + + + +private  javax.swing.JLabel +startTurnLabel + +
+            + + + +private  IView.BottomPanelType +type + +
+            +   @@ -228,11 +364,42 @@ A panel that is displayed before a player's turn + + + + + + + + +            + + + + + + + + +            + + + + + + + + + + + + + + + + + + + + + + + +
(package private)  IEventgetAcknowledgeConnectionLostEvent() + +
+           
+(package private)  IEventgetAcknowledgeInvalidEvent() + +
+           
+(package private)  IEvent getStartTurnEvent()
-          The start turn event is emitted when the current player has clicked the - start turn button
+private  voidrescale() + +
+           
+(package private)  voidsetCurrentPlayerColor(java.awt.Color color) + +
+           
@@ -240,7 +407,55 @@ A panel that is displayed before a player's turn setCurrentPlayerName(java.lang.String playerName)
-          Sets the current player name
+(package private)  voidsetInitialMeldError(int points) + +
+           
+(package private)  voidsetInitialMeldFirstError() + +
+           
+(package private)  voidsetLastStonePlayerName(java.lang.String name) + +
+           
+(package private)  voidsetRedealedPlayerName(java.lang.String name) + +
+           
+(package private)  voidsetType(IView.BottomPanelType type) + +
+           
+private  voidupdate() + +
+           
  @@ -291,6 +506,185 @@ A panel that is displayed before a player's turn  

+ + + + + + + +
+Field Detail
+ +

+PANEL_INSET

+
+private static final int PANEL_INSET
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PANEL_SEPARATOR

+
+private static final int PANEL_SEPARATOR
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PANEL_FIRST_LINE_HEIGHT

+
+private static final float PANEL_FIRST_LINE_HEIGHT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PANEL_MAX_WIDTH

+
+private static final int PANEL_MAX_WIDTH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MAX_BUTTON_FONT_SIZE

+
+private static final float MAX_BUTTON_FONT_SIZE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+startTurnLabel

+
+private javax.swing.JLabel startTurnLabel
+
+
+
+
+
+ +

+extraLabel

+
+private javax.swing.JLabel extraLabel
+
+
+
+
+
+ +

+startTurnButton

+
+private javax.swing.JButton startTurnButton
+
+
+
+
+
+ +

+startTurnEvent

+
+private Event startTurnEvent
+
+
+
+
+
+ +

+acknowledgeInvalidEvent

+
+private Event acknowledgeInvalidEvent
+
+
+
+
+
+ +

+acknowledgeConnectionLostEvent

+
+private Event acknowledgeConnectionLostEvent
+
+
+
+
+
+ +

+buttonEvent

+
+private Event buttonEvent
+
+
+
+
+
+ +

+type

+
+private IView.BottomPanelType type
+
+
+
+
+
+ +

+currentPlayerColor

+
+private java.awt.Color currentPlayerColor
+
+
+
+
+
+ +

+currentPlayerName

+
+private java.lang.String currentPlayerName
+
+
+
+
+
+ +

+redealedPlayerName

+
+private java.lang.String redealedPlayerName
+
+
+
+
+
+ +

+lastStonePlayerName

+
+private java.lang.String lastStonePlayerName
+
+
+
+
+ @@ -320,15 +714,24 @@ StartTurnPanel -

-setCurrentPlayerName

+

+setInitialMeldError

-void setCurrentPlayerName(java.lang.String playerName)
+void setInitialMeldError(int points) +
+
+
+
+
+
+ +

+setInitialMeldFirstError

+
+void setInitialMeldFirstError()
-
Sets the current player name -

-
Parameters:
playerName - the player name
+

@@ -338,12 +741,107 @@ getStartTurnEvent
 IEvent getStartTurnEvent()
-
The start turn event is emitted when the current player has clicked the - start turn button -

+
+
+
+
+ +

+getAcknowledgeInvalidEvent

+
+IEvent getAcknowledgeInvalidEvent()
+
+
+
+
+
+
+ +

+getAcknowledgeConnectionLostEvent

+
+IEvent getAcknowledgeConnectionLostEvent()
+
+
+
+
+
+
+ +

+rescale

+
+private void rescale()
+
+
+
+
+
+
+ +

+setCurrentPlayerName

+
+void setCurrentPlayerName(java.lang.String playerName)
+
+
+
+
+
+
+ +

+setCurrentPlayerColor

+
+void setCurrentPlayerColor(java.awt.Color color)
+
+
+
+
+
+
+ +

+setRedealedPlayerName

+
+void setRedealedPlayerName(java.lang.String name)
+
+
+
+
+
+
+ +

+setLastStonePlayerName

+
+void setLastStonePlayerName(java.lang.String name)
+
+
+
+
+
+
+ +

+setType

+
+void setType(IView.BottomPanelType type)
+
+
+
+
+
+
-
Returns:
the event +

+update

+
+private void update()
+
+
+
@@ -377,7 +875,7 @@ getStartTurnEvent PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -398,9 +896,9 @@ getStartTurnEvent - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/doc/jrummikub/view/impl/StoneCollectionPanel.html b/doc/jrummikub/view/impl/StoneCollectionPanel.html index 91af2e9..1792bc2 100644 --- a/doc/jrummikub/view/impl/StoneCollectionPanel.html +++ b/doc/jrummikub/view/impl/StoneCollectionPanel.html @@ -2,12 +2,12 @@ - + StoneCollectionPanel - + @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -173,6 +173,54 @@ Implementation of the stone collection (selection) Field Summary + + +private static javax.swing.ImageIcon +BACKGROUND + +
+            + + + +private static javax.swing.ImageIcon +DARK_BACKGROUND + +
+            + + + +private  boolean +hidden + +
+            + + + +private static float +INSET_RATIO + +
+            + + + +private  Event1<java.awt.Point> +otherClickEvent + +
+            + + + +private  java.util.Collection<Stone> +selectedStones + +
+            +   @@ -241,7 +289,8 @@ Implementation of the stone collection (selection) +          Returns the translation in pixels the stones in this panel are painted + with + + + + + + + +
getTranslation()
-          Returns the translation in pixels the stones in this panel are painted with
@@ -261,6 +310,22 @@ Implementation of the stone collection (selection)
+private  voidrescale() + +
+           
+ voidsetHidden(boolean enable) + +
+          Hide stone collection
(package private)  void setSelectedStones(java.util.Collection<Stone> selectedStones) @@ -334,6 +399,75 @@ Implementation of the stone collection (selection)  

+ + + + + + + +
+Field Detail
+ +

+BACKGROUND

+
+private static final javax.swing.ImageIcon BACKGROUND
+
+
+
+
+
+ +

+DARK_BACKGROUND

+
+private static final javax.swing.ImageIcon DARK_BACKGROUND
+
+
+
+
+
+ +

+INSET_RATIO

+
+private static final float INSET_RATIO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+selectedStones

+
+private java.util.Collection<Stone> selectedStones
+
+
+
+
+
+ +

+otherClickEvent

+
+private Event1<java.awt.Point> otherClickEvent
+
+
+
+
+
+ +

+hidden

+
+private boolean hidden
+
+
+
+
+ @@ -363,6 +497,20 @@ StoneCollectionPanel
+

+rescale

+
+private void rescale()
+
+
+
+
+
+
+
+
+
+

setSelectedStones

@@ -385,7 +533,8 @@ getTranslation
 protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()
Description copied from class: AbstractStonePanel
-
Returns the translation in pixels the stones in this panel are painted with +
Returns the translation in pixels the stones in this panel are painted + with

Overrides:
getTranslation in class AbstractStonePanel
@@ -447,6 +596,23 @@ public void paintComponent(java.awt.Graphics g1)
+
+ +

+setHidden

+
+public void setHidden(boolean enable)
+
+
Description copied from interface: IStoneCollectionPanel
+
Hide stone collection +

+

+
Specified by:
setHidden in interface IStoneCollectionPanel
+
+
+
Parameters:
enable - see stone collection
+
+

@@ -499,9 +665,9 @@ public void paintComponent(java.awt.Graphics g1) - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/doc/jrummikub/view/impl/StonePainter.html b/doc/jrummikub/view/impl/StonePainter.html index be9d94c..61a2c92 100644 --- a/doc/jrummikub/view/impl/StonePainter.html +++ b/doc/jrummikub/view/impl/StonePainter.html @@ -2,12 +2,12 @@ - + StonePainter - + @@ -56,7 +56,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -76,7 +76,7 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD @@ -109,7 +109,24 @@ The StonePainter paints stones and converts between pixel and grid

- + + + + + + + + + + + +
+Nested Class Summary
+(package private) static classStonePainter.StoneState + +
+           
@@ -119,7 +136,71 @@ The StonePainter paints stones and converts between pixel and grid +private static double + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +private static double + + + + + + + + + + + + + + + + + + + + - @@ -161,7 +282,15 @@ The StonePainter paints stones and converts between pixel and grid +private static java.awt.Color + + + + +private static int + + + + + + + + +private  java.awt.image.BufferedImage + + + + - + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + @@ -227,10 +467,130 @@ The StonePainter paints stones and converts between pixel and grid
-static floatASPECT_RATIO + +
+           
+private static java.awt.ColorBACKGROUND_COLOR + +
+           
+private static doubleBRIGHTER_SCALE + +
+           
+private static doubleCIRCLE_POS + +
+           
+private static doubleCIRCLE_WIDTH + +
+           
+private static doubleDEFAULT_WIDTH + +
+           
+private  java.util.Map<StonePainter.StoneState,java.util.Map<StoneColor,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>>defaultStones + +
+           
+private static doubleFACE_WIDTH + +
+           
+(package private) static double HEIGHT_SCALE
@@ -127,7 +208,47 @@ The StonePainter paints stones and converts between pixel and grid
-static floatHOVER_RATIO + +
+           
+private  java.util.Map<StonePainter.StoneState,java.util.Map<StoneColor,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>>hoveredStones + +
+           
+private static doubleREDDEN_RATIO + +
+           
+private  doublescale + +
+           
+private static doubleTEXT_POS + +
+           
+(package private) static double WIDTH_SCALE
@@ -144,7 +265,7 @@ The StonePainter paints stones and converts between pixel and grid Constructor Summary
StonePainter(float scale) +StonePainter(double scale)
           
- Positionbrighter(java.awt.Color color) + +
+           
+(package private)  Position calculatePosition(int x, int y) @@ -170,7 +299,23 @@ The StonePainter paints stones and converts between pixel and grid
- inteven(double f) + +
+           
+(package private) static java.awt.ColorgetColor(StoneColor color) + +
+           
+(package private)  int getStoneHeight()
@@ -178,7 +323,18 @@ The StonePainter paints stones and converts between pixel and grid
- intgetStoneImage(StoneColor color, + int value, + StonePainter.StoneState state, + boolean hovered) + +
+           
+(package private)  int getStoneWidth()
@@ -186,11 +342,48 @@ The StonePainter paints stones and converts between pixel and grid
- voidpaintStone(java.awt.Graphics2D g, +private static java.awt.Colorhover(java.awt.Color color) + +
+           
+private  voidpaintCircle(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color background) + +
+           
+private  voidpaintJoker(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color color) + +
+           
+private  voidpaintJokerFace(java.awt.Graphics2D g, + java.awt.Rectangle r) + +
+           
+(package private)  voidpaintStone(java.awt.Graphics2D g, Stone stone, Position p, - boolean selected, + StonePainter.StoneState state, boolean hovered)
@@ -198,8 +391,55 @@ The StonePainter paints stones and converts between pixel and grid
- voidsetScale(float scale) +private  voidpaintStoneBackground(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color background) + +
+           
+private  voidpaintStoneValue(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color color, + int v) + +
+           
+private  java.awt.image.BufferedImageprepaintStone(java.awt.Color fg, + java.awt.Color bg, + int value) + +
+           
+private static java.awt.Colorredden(java.awt.Color color) + +
+           
+private  voidresetPrepaint() + +
+           
+(package private)  voidsetScale(double scale)
          Sets the new grid scale
+

+ASPECT_RATIO

+
+private static final double ASPECT_RATIO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DEFAULT_WIDTH

+
+private static final double DEFAULT_WIDTH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TEXT_POS

+
+private static final double TEXT_POS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+FACE_WIDTH

+
+private static final double FACE_WIDTH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+CIRCLE_POS

+
+private static final double CIRCLE_POS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+CIRCLE_WIDTH

+
+private static final double CIRCLE_WIDTH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+BACKGROUND_COLOR

+
+private static final java.awt.Color BACKGROUND_COLOR
+
+
+
+
+
+ +

+BRIGHTER_SCALE

+
+private static final double BRIGHTER_SCALE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+HOVER_RATIO

+
+private static final double HOVER_RATIO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+REDDEN_RATIO

+
+private static final double REDDEN_RATIO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+defaultStones

+
+private java.util.Map<StonePainter.StoneState,java.util.Map<StoneColor,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>> defaultStones
+
+
+
+
+
+ +

+hoveredStones

+
+private java.util.Map<StonePainter.StoneState,java.util.Map<StoneColor,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>> hoveredStones
+
+
+
+
+
+

WIDTH_SCALE

-public static final float WIDTH_SCALE
+static final double WIDTH_SCALE
The width of one pixel in the scale of 1.0

@@ -242,13 +602,23 @@ public static final float WIDTH_SCALE

HEIGHT_SCALE

-public static final float HEIGHT_SCALE
+static final double HEIGHT_SCALE
The height of one pixel in the scale of 1.0

See Also:
Constant Field Values
+
+ +

+scale

+
+private double scale
+
+
+
+
@@ -260,10 +630,10 @@ public static final float HEIGHT_SCALE -

+

StonePainter

-StonePainter(float scale)
+StonePainter(double scale)
Parameters:
scale - the scaling factor for the grid coordinates
@@ -279,10 +649,65 @@ StonePainter -

+

+even

+
+private static int even(double f)
+
+
+
+
+
+
+ +

+brighter

+
+private static java.awt.Color brighter(java.awt.Color color)
+
+
+
+
+
+
+ +

+hover

+
+private static java.awt.Color hover(java.awt.Color color)
+
+
+
+
+
+
+ +

+redden

+
+private static java.awt.Color redden(java.awt.Color color)
+
+
+
+
+
+
+ +

+getColor

+
+static java.awt.Color getColor(StoneColor color)
+
+
+
+
+
+
+ +

setScale

-public void setScale(float scale)
+void setScale(double scale)
Sets the new grid scale

@@ -295,8 +720,8 @@ public void setScale(float scale)

calculatePosition

-public Position calculatePosition(int x,
-                                  int y)
+Position calculatePosition(int x, + int y)
Parameters:
x - x position in screen coordinates
y - y position in screen coordinates @@ -308,7 +733,7 @@ public

getStoneWidth

-public int getStoneWidth()
+int getStoneWidth()
@@ -320,7 +745,7 @@ public int getStoneWidth()

getStoneHeight

-public int getStoneHeight()
+int getStoneHeight()
@@ -329,19 +754,123 @@ public int getStoneHeight()

-

+

+prepaintStone

+
+private java.awt.image.BufferedImage prepaintStone(java.awt.Color fg,
+                                                   java.awt.Color bg,
+                                                   int value)
+
+
+
+
+
+
+ +

+getStoneImage

+
+private java.awt.image.BufferedImage getStoneImage(StoneColor color,
+                                                   int value,
+                                                   StonePainter.StoneState state,
+                                                   boolean hovered)
+
+
+
+
+
+
+ +

+resetPrepaint

+
+private void resetPrepaint()
+
+
+
+
+
+
+ +

+paintStoneBackground

+
+private void paintStoneBackground(java.awt.Graphics2D g,
+                                  java.awt.Rectangle r,
+                                  java.awt.Color background)
+
+
+
+
+
+
+ +

+paintJokerFace

+
+private void paintJokerFace(java.awt.Graphics2D g,
+                            java.awt.Rectangle r)
+
+
+
+
+
+
+ +

+paintJoker

+
+private void paintJoker(java.awt.Graphics2D g,
+                        java.awt.Rectangle r,
+                        java.awt.Color color)
+
+
+
+
+
+
+ +

+paintStoneValue

+
+private void paintStoneValue(java.awt.Graphics2D g,
+                             java.awt.Rectangle r,
+                             java.awt.Color color,
+                             int v)
+
+
+
+
+
+
+ +

+paintCircle

+
+private void paintCircle(java.awt.Graphics2D g,
+                         java.awt.Rectangle r,
+                         java.awt.Color background)
+
+
+
+
+
+
+ +

paintStone

-public void paintStone(java.awt.Graphics2D g,
-                       Stone stone,
-                       Position p,
-                       boolean selected,
-                       boolean hovered)
+void paintStone(java.awt.Graphics2D g, + Stone stone, + Position p, + StonePainter.StoneState state, + boolean hovered)
Paints a stone

-
Parameters:
g - the graphics context to paint the stone on
stone - the stone to paint
p - the position of the stone
selected - if selected is true the stone will be painted darker
hovered - if hovered is true the stone will be painted brighter
+
Parameters:
g - the graphics context to paint the stone on
stone - the stone to paint
p - the position of the stone
state - if the stone is selected the stone will be painted darker, if + it is invalid it will be painted in red
hovered - if hovered is true the stone will be painted brighter
@@ -376,7 +905,7 @@ public void paintStone(java.awt.Graphics2D g,  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -396,7 +925,7 @@ public void paintStone(java.awt.Graphics2D g, - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD diff --git a/doc/jrummikub/view/impl/TablePanel.html b/doc/jrummikub/view/impl/TablePanel.html index 877d52f..4d41d81 100644 --- a/doc/jrummikub/view/impl/TablePanel.html +++ b/doc/jrummikub/view/impl/TablePanel.html @@ -2,12 +2,12 @@ - + TablePanel - + @@ -55,7 +55,7 @@ function windowTitle() PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -173,6 +173,166 @@ The implementation of the table Field Summary + + +private static javax.swing.ImageIcon +BACKGROUND + +
+            + + + +private static javax.swing.ImageIcon +BRIGHT_BACKGROUND + +
+            + + + +private  int +COLLECTION_GAP + +
+            + + + +private  double +COLLECTION_RATIO + +
+            + + + +private static double +CONNECTOR_WIDTH + +
+            + + + +private static javax.swing.ImageIcon +DARK_BACKGROUND + +
+            + + + +private static double +HORIZONTAL_MARGIN + +
+            + + + +private  java.util.Collection<StoneSet> +invalidStoneSets + +
+            + + + +private  Event1<StoneSet> +leftConnectorClickEvent + +
+            + + + +private  StoneSet +leftHoveredConnector + +
+            + + + +private static double +MIN_VISIBLE_HEIGHT + +
+            + + + +private static double +MIN_VISIBLE_WIDTH + +
+            + + + +private  boolean +pauseMode + +
+            + + + +private  java.util.List<Pair<StoneSet,Position>> +pauseStoneSets + +
+            + + + +private  Event1<StoneSet> +rightConnectorClickEvent + +
+            + + + +private  StoneSet +rightHoveredConnector + +
+            + + + +private  java.util.Collection<Stone> +selectedStones + +
+            + + + +private  StoneCollectionPanel +stoneCollection + +
+            + + + +private  java.lang.Iterable<Pair<StoneSet,Position>> +stoneSets + +
+            + + + +private static double +VERTICAL_MARGIN + +
+            +   @@ -228,6 +388,30 @@ The implementation of the table + + + + + + + + + + + + +          Returns the translation in pixels the stones in this panel are painted + with - + +            - + +            - +            - + +            + + + + - +          Sets the stone sets lying on the table
+private  java.awt.geom.Rectangle2DcalculateTableExtent() + +
+           
+(package private)  voidcreatePauseStoneSets() + +
+           
+(package private)  voidenablePauseMode(boolean enable) + +
+           
 Event1<StoneSet> getLeftConnectorClickEvent() @@ -259,7 +443,8 @@ The implementation of the table getTranslation()
-          Returns the translation in pixels the stones in this panel are painted with
@@ -287,43 +472,55 @@ The implementation of the table
- voidsetLeftPlayerName(java.lang.String playerName) +private  voidpaintStoneSet(java.awt.Graphics2D g, + StoneSet stoneSet, + Position pos, + java.awt.geom.Area connectorArea, + java.awt.geom.Area hoveredConnectorArea)
-          Sets the player name on the left label
- voidsetRightPlayerName(java.lang.String playerName) +private  voidrescale()
-          Sets the player name on the right label
(package private)  voidsetSelectedStones(java.util.Collection<Stone> stones) +setInvalidStoneSets(java.util.Collection<StoneSet> sets)
-          Sets the currently selected stones
- voidsetStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets) +private  voidsetScale()
-          Sets the stone sets lying on the table
+(package private)  voidsetSelectedStones(java.util.Collection<Stone> stones) + +
+          Sets the currently selected stones
 voidsetTopPlayerName(java.lang.String playerName) +setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
-          Sets the player name on the top label
  @@ -401,6 +598,215 @@ The implementation of the table  

+ + + + + + + +
+Field Detail
+ +

+BACKGROUND

+
+private static final javax.swing.ImageIcon BACKGROUND
+
+
+
+
+
+ +

+DARK_BACKGROUND

+
+private static final javax.swing.ImageIcon DARK_BACKGROUND
+
+
+
+
+
+ +

+BRIGHT_BACKGROUND

+
+private static final javax.swing.ImageIcon BRIGHT_BACKGROUND
+
+
+
+
+
+ +

+MIN_VISIBLE_WIDTH

+
+private static final double MIN_VISIBLE_WIDTH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MIN_VISIBLE_HEIGHT

+
+private static final double MIN_VISIBLE_HEIGHT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+HORIZONTAL_MARGIN

+
+private static final double HORIZONTAL_MARGIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VERTICAL_MARGIN

+
+private static final double VERTICAL_MARGIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+CONNECTOR_WIDTH

+
+private static final double CONNECTOR_WIDTH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+COLLECTION_RATIO

+
+private final double COLLECTION_RATIO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+COLLECTION_GAP

+
+private final int COLLECTION_GAP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+stoneCollection

+
+private StoneCollectionPanel stoneCollection
+
+
+
+
+
+ +

+stoneSets

+
+private java.lang.Iterable<Pair<StoneSet,Position>> stoneSets
+
+
+
+
+
+ +

+pauseStoneSets

+
+private java.util.List<Pair<StoneSet,Position>> pauseStoneSets
+
+
+
+
+
+ +

+invalidStoneSets

+
+private java.util.Collection<StoneSet> invalidStoneSets
+
+
+
+
+
+ +

+selectedStones

+
+private java.util.Collection<Stone> selectedStones
+
+
+
+
+
+ +

+leftConnectorClickEvent

+
+private Event1<StoneSet> leftConnectorClickEvent
+
+
+
+
+
+ +

+rightConnectorClickEvent

+
+private Event1<StoneSet> rightConnectorClickEvent
+
+
+
+
+
+ +

+leftHoveredConnector

+
+private StoneSet leftHoveredConnector
+
+
+
+
+
+ +

+rightHoveredConnector

+
+private StoneSet rightHoveredConnector
+
+
+
+
+
+ +

+pauseMode

+
+private boolean pauseMode
+
+
+
+
+ @@ -430,57 +836,6 @@ TablePanel -

-setLeftPlayerName

-
-public void setLeftPlayerName(java.lang.String playerName)
-
-
Description copied from interface: ITablePanel
-
Sets the player name on the left label -

-

-
Specified by:
setLeftPlayerName in interface ITablePanel
-
-
-
Parameters:
playerName - the name to set
-
-
-
- -

-setTopPlayerName

-
-public void setTopPlayerName(java.lang.String playerName)
-
-
Description copied from interface: ITablePanel
-
Sets the player name on the top label -

-

-
Specified by:
setTopPlayerName in interface ITablePanel
-
-
-
Parameters:
playerName - the name to set
-
-
-
- -

-setRightPlayerName

-
-public void setRightPlayerName(java.lang.String playerName)
-
-
Description copied from interface: ITablePanel
-
Sets the player name on the right label -

-

-
Specified by:
setRightPlayerName in interface ITablePanel
-
-
-
Parameters:
playerName - the name to set
-
-
-
-

getLeftConnectorClickEvent

@@ -571,6 +926,76 @@ void setSelectedStones(java.util.Collection<

+setInvalidStoneSets

+
+void setInvalidStoneSets(java.util.Collection<StoneSet> sets)
+
+
+
+
+
+
+
+
+
+ +

+createPauseStoneSets

+
+void createPauseStoneSets()
+
+
+
+
+
+
+
+
+
+ +

+calculateTableExtent

+
+private java.awt.geom.Rectangle2D calculateTableExtent()
+
+
+
+
+
+
+
+
+
+ +

+rescale

+
+private void rescale()
+
+
+
+
+
+
+
+
+
+ +

+setScale

+
+private void setScale()
+
+
+
+
+
+
+
+
+
+

handleOtherClickEvent

@@ -612,7 +1037,8 @@ getTranslation
 protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()
Description copied from class: AbstractStonePanel
-
Returns the translation in pixels the stones in this panel are painted with +
Returns the translation in pixels the stones in this panel are painted + with

Overrides:
getTranslation in class AbstractStonePanel
@@ -624,6 +1050,24 @@ protected

+paintStoneSet

+
+private void paintStoneSet(java.awt.Graphics2D g,
+                           StoneSet stoneSet,
+                           Position pos,
+                           java.awt.geom.Area connectorArea,
+                           java.awt.geom.Area hoveredConnectorArea)
+
+
+
+
+
+
+
+
+
+

paintComponent

@@ -636,6 +1080,20 @@ protected void paintComponent(java.awt.Graphics g1)
+
+ +

+enablePauseMode

+
+void enablePauseMode(boolean enable)
+
+
+
+
+
+
+
+

@@ -667,7 +1125,7 @@ protected void paintComponent(java.awt.Graphics g1) PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -688,9 +1146,9 @@ protected void paintComponent(java.awt.Graphics g1) - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/doc/jrummikub/view/impl/View.html b/doc/jrummikub/view/impl/View.html index 5082cb9..75b8ae8 100644 --- a/doc/jrummikub/view/impl/View.html +++ b/doc/jrummikub/view/impl/View.html @@ -2,12 +2,12 @@ - + View - + @@ -37,7 +37,8 @@ function windowTitle() - + + @@ -54,7 +55,7 @@ function windowTitle() + SUMMARY: NESTED | FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
@@ -100,11 +101,11 @@ java.lang.Object extended by jrummikub.view.impl.View
-
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, jrummikub.view.IView
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, IView

-
public class View
extends javax.swing.JFrame
implements jrummikub.view.IView
+
public class View
extends javax.swing.JFrame
implements IView

@@ -126,23 +127,63 @@ Implementation of the top-level view interface Nested Class Summary + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + - +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehaviorjava.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
  - + - +
Nested classes/interfaces inherited from interface jrummikub.view.IViewNested classes/interfaces inherited from interface jrummikub.view.IView
jrummikub.view.IView.BottomPanelTypeIView.BottomPanelType
  @@ -154,6 +195,230 @@ Implementation of the top-level view interface Field Summary + + +private  IView.BottomPanelType +bottomPanelType + +
+            + + + +private  javax.swing.JFileChooser +chooser + +
+            + + + +private  ConnectPanel +connectPanel + +
+            + + + +private  GameListPanel +gameListPanel + +
+            + + + +private  javax.swing.JLayeredPane +layeredPane + +
+            + + + +private  Event +loadEvent + +
+            + + + +private  Event1<java.io.File> +loadFileEvent + +
+            + + + +private  LoginPanel +loginPanel + +
+            + + + +private  javax.swing.JPanel +mainLayer + +
+            + + + +private  javax.swing.JMenuBar +menuBar + +
+            + + + +private  Event +menuNewGameEvent + +
+            + + + +private  Event +networkGameEvent + +
+            + + + +private  PausePanel +pausePanel + +
+            + + + +private static int +PLAYER_PANEL_MAX_HEIGHT + +
+            + + + +private static float +PLAYER_PANEL_RATIO + +
+            + + + +private  PlayerPanel +playerPanel + +
+            + + + +private  Event +quitEvent + +
+            + + + +private  javax.swing.JFrame +quitWarningFrame + +
+            + + + +private  QuitWarningPanel +quitWarningPanel + +
+            + + + +private  RoundEndPanel +roundEndPanel + +
+            + + + +private  Event1<java.io.File> +saveEvent + +
+            + + + +private  javax.swing.JMenuItem +saveItem + +
+            + + + +private  ScorePanel +scorePanel + +
+            + + + +private  SettingsPanel +settingsPanel + +
+            + + + +private  SidePanel +sidePanel + +
+            + + + +private  StartTurnPanel +startTurnPanel + +
+            + + + +private  TablePanel +table + +
+            + + + +private static int +TABLE_BORDER_WIDTH + +
+            +   @@ -161,7 +426,7 @@ Implementation of the top-level view interface - +
Fields inherited from class javax.swing.JFrame
EXIT_ON_CLOSEaccessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
  @@ -236,6 +501,71 @@ Implementation of the top-level view interface +private  java.util.List<Pair<Stone,Position>> +createDecorationStones() + +
+            + + + +private  void +createFileChooser() + +
+            + + + +private  void +createLayeredPane() + +
+            + + + +private  void +createMainLayer() + +
+            + + + +private  void +createMenuBar() + +
+            + + + +private  javax.swing.JMenuItem +createMenuItem(java.lang.String text, + Event event) + +
+            + + + +private  void +createSettingsPanel() + +
+            + + + +private  void +doSetBottomPanel(IView.BottomPanelType type) + +
+            + + +  void enablePauseMode(boolean enable) @@ -252,7 +582,15 @@ Implementation of the top-level view interface - jrummikub.util.IEvent +private static int +even(double d) + +
+            + + + + IEvent getAcknowledgeConnectionLostEvent()
@@ -261,7 +599,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getAcknowledgeInvalidEvent()
@@ -270,7 +608,7 @@ Implementation of the top-level view interface - jrummikub.view.IConnectPanel + IConnectPanel getConnectPanel()
@@ -278,7 +616,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getEndPauseEvent()
@@ -287,7 +625,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getEndProgramEvent()
@@ -295,7 +633,7 @@ Implementation of the top-level view interface - jrummikub.view.IGameListPanel + IGameListPanel getGameListPanel()
@@ -303,7 +641,7 @@ Implementation of the top-level view interface - jrummikub.view.IHandPanel + IHandPanel getHandPanel()
@@ -311,7 +649,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getLoadEvent()
@@ -320,7 +658,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent1<java.io.File> + IEvent1<java.io.File> getLoadFileEvent()
@@ -329,7 +667,7 @@ Implementation of the top-level view interface - jrummikub.view.ILoginPanel + ILoginPanel getLoginPanel()
@@ -337,7 +675,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getMenuNewGameEvent()
@@ -346,7 +684,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getNetworkGameEvent()
@@ -354,7 +692,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getNewGameEvent()
@@ -362,7 +700,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getNewRoundEvent()
@@ -370,7 +708,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getPauseEvent()
@@ -378,7 +716,7 @@ Implementation of the top-level view interface - jrummikub.view.IPlayerPanel + IPlayerPanel getPlayerPanel()
@@ -386,7 +724,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getQuitEvent()
@@ -394,7 +732,7 @@ Implementation of the top-level view interface - jrummikub.view.IQuitWarningPanel + IQuitWarningPanel getQuitWarningPanel()
@@ -402,7 +740,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent1<java.io.File> + IEvent1<java.io.File> getSaveEvent()
@@ -411,7 +749,7 @@ Implementation of the top-level view interface - jrummikub.view.IScorePanel + IScorePanel getScorePanel()
@@ -419,7 +757,7 @@ Implementation of the top-level view interface - jrummikub.view.ISettingsPanel + ISettingsPanel getSettingsPanel()
@@ -427,7 +765,7 @@ Implementation of the top-level view interface - jrummikub.view.ISidePanel + ISidePanel getSidePanel()
@@ -435,7 +773,7 @@ Implementation of the top-level view interface - jrummikub.util.IEvent + IEvent getStartTurnEvent()
@@ -443,7 +781,7 @@ Implementation of the top-level view interface - jrummikub.view.ITablePanel + ITablePanel getTablePanel()
@@ -459,19 +797,47 @@ Implementation of the top-level view interface - void -resetLoginPanel() +private  void +rescale()
-          Clears user input of the resetLoginPanel +            - void -setBottomPanel(jrummikub.view.IView.BottomPanelType type) +private  void +rescaleSubpanel(javax.swing.JPanel sub, + double widthFactor, + double heightFactor, + int minWidth, + int minHeight)
-          Sets the bottom panels type +            + + + + void +resetLoginPanel() + +
+          Clears user input of the resetLoginPanel + + + +private  void +save() + +
+            + + + + void +setBottomPanel(IView.BottomPanelType type) + +
+          Sets the bottom panels type @@ -518,7 +884,7 @@ Implementation of the top-level view interface  void -setInvalidStoneSets(java.util.Collection<jrummikub.model.StoneSet> sets) +setInvalidStoneSets(java.util.Collection<StoneSet> sets)
          Set invalid sets to enable showing @@ -551,7 +917,7 @@ Implementation of the top-level view interface  void -setSelectedStones(java.util.Collection<jrummikub.model.Stone> stones) +setSelectedStones(java.util.Collection<Stone> stones)
          Sets the stones that are to be painted selected @@ -601,107 +967,396 @@ Implementation of the top-level view interface  void
showQuitWarningPanel(boolean show) -
-          Sets the quit warning panel visible - - - - void -showScorePanel(boolean show) +
+          Sets the quit warning panel visible + + + + void +showScorePanel(boolean show) + +
+          Shows or hides the score panel + + + + void +showServerStartupError(boolean alreadyRunning) + +
+          Show an error message when the server couldn't be started + + + + void +showSettingsPanel(boolean show) + +
+          Shows or hides the game settings panel + + + + void +showSidePanel(boolean show) + +
+          Show/hide side panel + + +  + + + + + + + +
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
+ + + + + + + +
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
+ + + + + + + +
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
+  +

+ + + + + + + + +
+Field Detail
+ +

+PLAYER_PANEL_RATIO

+
+private static final float PLAYER_PANEL_RATIO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PLAYER_PANEL_MAX_HEIGHT

+
+private static final int PLAYER_PANEL_MAX_HEIGHT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+TABLE_BORDER_WIDTH

+
+private static final int TABLE_BORDER_WIDTH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+layeredPane

+
+private javax.swing.JLayeredPane layeredPane
+
+
+
+
+
+ +

+mainLayer

+
+private javax.swing.JPanel mainLayer
+
+
+
+
+
+ +

+menuBar

+
+private javax.swing.JMenuBar menuBar
+
+
+
+
+
+ +

+saveItem

+
+private javax.swing.JMenuItem saveItem
+
+
+
+
+
+ +

+table

+
+private TablePanel table
+
+
+
+
+
+ +

+playerPanel

+
+private PlayerPanel playerPanel
+
+
+
+
+
+ +

+startTurnPanel

+
+private StartTurnPanel startTurnPanel
+
+
+
+
+
+ +

+pausePanel

+
+private PausePanel pausePanel
+
+
+
+
+
+ +

+roundEndPanel

+
+private RoundEndPanel roundEndPanel
+
+
+
+
+
+ +

+settingsPanel

+
+private SettingsPanel settingsPanel
+
+
+
+
+
+ +

+loginPanel

+
+private LoginPanel loginPanel
+
+
+
+
+
+ +

+scorePanel

+
+private ScorePanel scorePanel
+
+
+
+
+
+ +

+gameListPanel

+
+private GameListPanel gameListPanel
+
+
+
+
+
+ +

+sidePanel

+
+private SidePanel sidePanel
+
+
+
+
+
+ +

+quitWarningPanel

+
+private QuitWarningPanel quitWarningPanel
+
+
+
+
+
+ +

+connectPanel

+
+private ConnectPanel connectPanel
+
+
+
+
+
+ +

+bottomPanelType

+
+private IView.BottomPanelType bottomPanelType
+
+
+
+
+
+ +

+chooser

+
+private javax.swing.JFileChooser chooser
+
+
+
+
+
+ +

+menuNewGameEvent

+
+private Event menuNewGameEvent
+
+
+
+
+
+ +

+networkGameEvent

+
+private Event networkGameEvent
+
+
+
+
+
+ +

+loadEvent

+
+private Event loadEvent
+
+
+
+
+
-
-          Shows or hides the score panel - - - - void -showServerStartupError(boolean alreadyRunning) +

+loadFileEvent

+
+private Event1<java.io.File> loadFileEvent
+
+
+
+
+
-
-          Show an error message when the server couldn't be started - - - - void -showSettingsPanel(boolean show) +

+saveEvent

+
+private Event1<java.io.File> saveEvent
+
+
+
+
+
-
-          Shows or hides the game settings panel - - - - void -showSidePanel(boolean show) +

+quitEvent

+
+private Event quitEvent
+
+
+
+
+
-
-          Show/hide side panel - - -  - - - - - - - -
Methods inherited from class javax.swing.JFrame
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
- - - - - - - -
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
- - - - - - - -
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
- - - - - - - -
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate
- - - - - - - -
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
- - - - - - - -
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
- - - - - - - -
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
-  -

+

+quitWarningFrame

+
+private javax.swing.JFrame quitWarningFrame
+
+
+
+
@@ -732,16 +1387,30 @@ public View() +

+even

+
+private static int even(double d)
+
+
+
+
+
+
+
+
+
+

getSettingsPanel

-public jrummikub.view.ISettingsPanel getSettingsPanel()
+public ISettingsPanel getSettingsPanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Returns the settings panel

-
Specified by:
getSettingsPanel in interface jrummikub.view.IView
+
Specified by:
getSettingsPanel in interface IView
@@ -753,13 +1422,13 @@ public jrummikub.view.ISettingsPanel getSettingsPanel()

getLoginPanel

-public jrummikub.view.ILoginPanel getLoginPanel()
+public ILoginPanel getLoginPanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Getter for login panel

-
Specified by:
getLoginPanel in interface jrummikub.view.IView
+
Specified by:
getLoginPanel in interface IView
@@ -771,13 +1440,13 @@ public jrummikub.view.ILoginPanel getLoginPanel()

getScorePanel

-public jrummikub.view.IScorePanel getScorePanel()
+public IScorePanel getScorePanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Returns the score panel

-
Specified by:
getScorePanel in interface jrummikub.view.IView
+
Specified by:
getScorePanel in interface IView
@@ -789,13 +1458,13 @@ public jrummikub.view.IScorePanel getScorePanel()

getTablePanel

-public jrummikub.view.ITablePanel getTablePanel()
+public ITablePanel getTablePanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Returns the table

-
Specified by:
getTablePanel in interface jrummikub.view.IView
+
Specified by:
getTablePanel in interface IView
@@ -807,13 +1476,13 @@ public jrummikub.view.ITablePanel getTablePanel()

getSidePanel

-public jrummikub.view.ISidePanel getSidePanel()
+public ISidePanel getSidePanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Returns the side panel

-
Specified by:
getSidePanel in interface jrummikub.view.IView
+
Specified by:
getSidePanel in interface IView
@@ -825,10 +1494,10 @@ public jrummikub.view.ISidePanel getSidePanel()

getHandPanel

-public jrummikub.view.IHandPanel getHandPanel()
+public IHandPanel getHandPanel()
-
Specified by:
getHandPanel in interface jrummikub.view.IView
+
Specified by:
getHandPanel in interface IView
@@ -840,13 +1509,13 @@ public jrummikub.view.IHandPanel getHandPanel()

getPlayerPanel

-public jrummikub.view.IPlayerPanel getPlayerPanel()
+public IPlayerPanel getPlayerPanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Returns the player panel

-
Specified by:
getPlayerPanel in interface jrummikub.view.IView
+
Specified by:
getPlayerPanel in interface IView
@@ -858,13 +1527,13 @@ public jrummikub.view.IPlayerPanel getPlayerPanel()

getQuitWarningPanel

-public jrummikub.view.IQuitWarningPanel getQuitWarningPanel()
+public IQuitWarningPanel getQuitWarningPanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Getter for quit warning panel

-
Specified by:
getQuitWarningPanel in interface jrummikub.view.IView
+
Specified by:
getQuitWarningPanel in interface IView
@@ -876,13 +1545,13 @@ public jrummikub.view.IQuitWarningPanel getQuitWarningPanel()

getConnectPanel

-public jrummikub.view.IConnectPanel getConnectPanel()
+public IConnectPanel getConnectPanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Getter for connect panel

-
Specified by:
getConnectPanel in interface jrummikub.view.IView
+
Specified by:
getConnectPanel in interface IView
@@ -894,13 +1563,13 @@ public jrummikub.view.IConnectPanel getConnectPanel()

getGameListPanel

-public jrummikub.view.IGameListPanel getGameListPanel()
+public IGameListPanel getGameListPanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Getter for game list panel

-
Specified by:
getGameListPanel in interface jrummikub.view.IView
+
Specified by:
getGameListPanel in interface IView
@@ -912,14 +1581,14 @@ public jrummikub.view.IGameListPanel getGameListPanel()

getMenuNewGameEvent

-public jrummikub.util.IEvent getMenuNewGameEvent()
+public IEvent getMenuNewGameEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The menu new game event is emitted when the user selects the new game menu entry

-
Specified by:
getMenuNewGameEvent in interface jrummikub.view.IView
+
Specified by:
getMenuNewGameEvent in interface IView
@@ -931,14 +1600,14 @@ public jrummikub.util.IEvent getMenuNewGameEvent()

getLoadFileEvent

-public jrummikub.util.IEvent1<java.io.File> getLoadFileEvent()
+public IEvent1<java.io.File> getLoadFileEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The load file event is emitted when the user chose to discard the current game to save another

-
Specified by:
getLoadFileEvent in interface jrummikub.view.IView
+
Specified by:
getLoadFileEvent in interface IView
@@ -950,14 +1619,14 @@ public jrummikub.util.IEvent1<java.io.File> getLoadFileEvent()

getLoadEvent

-public jrummikub.util.IEvent getLoadEvent()
+public IEvent getLoadEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The load event is emitted when the user wants to load a previously saved game state

-
Specified by:
getLoadEvent in interface jrummikub.view.IView
+
Specified by:
getLoadEvent in interface IView
@@ -969,14 +1638,14 @@ public jrummikub.util.IEvent getLoadEvent()

getSaveEvent

-public jrummikub.util.IEvent1<java.io.File> getSaveEvent()
+public IEvent1<java.io.File> getSaveEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The save event is emitted when the user wants to save the current game state

-
Specified by:
getSaveEvent in interface jrummikub.view.IView
+
Specified by:
getSaveEvent in interface IView
@@ -988,13 +1657,13 @@ public jrummikub.util.IEvent1<java.io.File> getSaveEvent()

getPauseEvent

-public jrummikub.util.IEvent getPauseEvent()
+public IEvent getPauseEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The pause event is emitted when the user wants to pause the current turn

-
Specified by:
getPauseEvent in interface jrummikub.view.IView
+
Specified by:
getPauseEvent in interface IView
@@ -1006,14 +1675,14 @@ public jrummikub.util.IEvent getPauseEvent()

getEndPauseEvent

-public jrummikub.util.IEvent getEndPauseEvent()
+public IEvent getEndPauseEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The end pause event is emitted when the user wants to sresume the game after a pause

-
Specified by:
getEndPauseEvent in interface jrummikub.view.IView
+
Specified by:
getEndPauseEvent in interface IView
@@ -1025,13 +1694,13 @@ public jrummikub.util.IEvent getEndPauseEvent()

getNetworkGameEvent

-public jrummikub.util.IEvent getNetworkGameEvent()
+public IEvent getNetworkGameEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The network game event is emitted when the user chooses a network game

-
Specified by:
getNetworkGameEvent in interface jrummikub.view.IView
+
Specified by:
getNetworkGameEvent in interface IView
@@ -1043,13 +1712,13 @@ public jrummikub.util.IEvent getNetworkGameEvent()

getQuitEvent

-public jrummikub.util.IEvent getQuitEvent()
+public IEvent getQuitEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The quit event is emitted when the user wants to leave the application

-
Specified by:
getQuitEvent in interface jrummikub.view.IView
+
Specified by:
getQuitEvent in interface IView
@@ -1063,12 +1732,12 @@ clearView
 public void clearView()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Hides all view elements and panels except for the cleared table and an empty hand panel

-
Specified by:
clearView in interface jrummikub.view.IView
+
Specified by:
clearView in interface IView
@@ -1081,11 +1750,11 @@ showLoadingError
 public void showLoadingError()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Show when loading is unsuccessful

-
Specified by:
showLoadingError in interface jrummikub.view.IView
+
Specified by:
showLoadingError in interface IView
@@ -1098,11 +1767,11 @@ showServerStartupError
 public void showServerStartupError(boolean alreadyRunning)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Show an error message when the server couldn't be started

-
Specified by:
showServerStartupError in interface jrummikub.view.IView
+
Specified by:
showServerStartupError in interface IView
Parameters:
alreadyRunning - true when the server is already running on this machine
@@ -1110,16 +1779,59 @@ public void showServerStartupError(boolean alreadyRunning)

+

+createFileChooser

+
+private void createFileChooser()
+
+
+
+
+
+
+
+
+
+ +

+createMenuBar

+
+private void createMenuBar()
+
+
+
+
+
+
+
+
+
+ +

+createMenuItem

+
+private javax.swing.JMenuItem createMenuItem(java.lang.String text,
+                                             Event event)
+
+
+
+
+
+
+
+
+
+

enableSave

 public void enableSave(boolean enable)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Enables/disables saving in menu bar

-
Specified by:
enableSave in interface jrummikub.view.IView
+
Specified by:
enableSave in interface IView
Parameters:
enable - saving possible
@@ -1132,11 +1844,67 @@ load
 public void load()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Loading a game

-
Specified by:
load in interface jrummikub.view.IView
+
Specified by:
load in interface IView
+
+
+
+
+
+
+ +

+save

+
+private void save()
+
+
+
+
+
+
+
+
+
+ +

+createLayeredPane

+
+private void createLayeredPane()
+
+
+
+
+
+
+
+
+
+ +

+createSettingsPanel

+
+private void createSettingsPanel()
+
+
+
+
+
+
+
+
+
+ +

+createMainLayer

+
+private void createMainLayer()
+
+
+
@@ -1149,12 +1917,12 @@ setMayPause
 public void setMayPause(boolean mayPause)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Sets the pause button if pausing should be possible in the current situation

-
Specified by:
setMayPause in interface jrummikub.view.IView
+
Specified by:
setMayPause in interface IView
Parameters:
mayPause - pausing possible
@@ -1167,11 +1935,11 @@ enablePauseMode
 public void enablePauseMode(boolean enable)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Enable/disable pause mode

-
Specified by:
enablePauseMode in interface jrummikub.view.IView
+
Specified by:
enablePauseMode in interface IView
Parameters:
enable - true = enable
@@ -1179,16 +1947,48 @@ public void enablePauseMode(boolean enable)

+

+rescale

+
+private void rescale()
+
+
+
+
+
+
+
+
+
+ +

+rescaleSubpanel

+
+private void rescaleSubpanel(javax.swing.JPanel sub,
+                             double widthFactor,
+                             double heightFactor,
+                             int minWidth,
+                             int minHeight)
+
+
+
+
+
+
+
+
+
+

setSelectedStones

-public void setSelectedStones(java.util.Collection<jrummikub.model.Stone> stones)
+public void setSelectedStones(java.util.Collection<Stone> stones)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Sets the stones that are to be painted selected

-
Specified by:
setSelectedStones in interface jrummikub.view.IView
+
Specified by:
setSelectedStones in interface IView
Parameters:
stones - the stones to be painted selected
@@ -1199,13 +1999,13 @@ public void setSelectedStones(java.util.Collection<jrummikub.model.Sto

setInvalidStoneSets

-public void setInvalidStoneSets(java.util.Collection<jrummikub.model.StoneSet> sets)
+public void setInvalidStoneSets(java.util.Collection<StoneSet> sets)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Set invalid sets to enable showing

-
Specified by:
setInvalidStoneSets in interface jrummikub.view.IView
+
Specified by:
setInvalidStoneSets in interface IView
Parameters:
sets - invalid sets on table
@@ -1218,11 +2018,11 @@ showSettingsPanel
 public void showSettingsPanel(boolean show)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Shows or hides the game settings panel

-
Specified by:
showSettingsPanel in interface jrummikub.view.IView
+
Specified by:
showSettingsPanel in interface IView
Parameters:
show - specifies if the panel shall be shown or hidden
@@ -1235,11 +2035,11 @@ showLoginPanel
 public void showLoginPanel(boolean show)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Show/hide login panel

-
Specified by:
showLoginPanel in interface jrummikub.view.IView
+
Specified by:
showLoginPanel in interface IView
Parameters:
show - true = login panel is shown
@@ -1252,11 +2052,11 @@ resetLoginPanel
 public void resetLoginPanel()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Clears user input of the resetLoginPanel

-
Specified by:
resetLoginPanel in interface jrummikub.view.IView
+
Specified by:
resetLoginPanel in interface IView
@@ -1269,11 +2069,11 @@ showGameListPanel
 public void showGameListPanel(boolean show)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Show/hide game list panel

-
Specified by:
showGameListPanel in interface jrummikub.view.IView
+
Specified by:
showGameListPanel in interface IView
Parameters:
show - true = show
@@ -1286,11 +2086,11 @@ showScorePanel
 public void showScorePanel(boolean show)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Shows or hides the score panel

-
Specified by:
showScorePanel in interface jrummikub.view.IView
+
Specified by:
showScorePanel in interface IView
Parameters:
show - specifies if the panel shall be shown or hidden
@@ -1303,11 +2103,11 @@ showSidePanel
 public void showSidePanel(boolean show)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Show/hide side panel

-
Specified by:
showSidePanel in interface jrummikub.view.IView
+
Specified by:
showSidePanel in interface IView
Parameters:
show - true to show
@@ -1320,11 +2120,11 @@ showQuitWarningPanel
 public void showQuitWarningPanel(boolean show)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Sets the quit warning panel visible

-
Specified by:
showQuitWarningPanel in interface jrummikub.view.IView
+
Specified by:
showQuitWarningPanel in interface IView
Parameters:
show - is visible
@@ -1337,11 +2137,11 @@ showConnectPanel
 public void showConnectPanel(boolean show)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Set the connect panel visible

-
Specified by:
showConnectPanel in interface jrummikub.view.IView
+
Specified by:
showConnectPanel in interface IView
Parameters:
show - is visible
@@ -1354,11 +2154,11 @@ setCurrentPlayerName
 public void setCurrentPlayerName(java.lang.String playerName)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Sets the current player's name

-
Specified by:
setCurrentPlayerName in interface jrummikub.view.IView
+
Specified by:
setCurrentPlayerName in interface IView
Parameters:
playerName - the player name
@@ -1371,11 +2171,11 @@ setInitialMeldError
 public void setInitialMeldError(int points)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Is set if a player tried to lay out less than initial meld threshold

-
Specified by:
setInitialMeldError in interface jrummikub.view.IView
+
Specified by:
setInitialMeldError in interface IView
Parameters:
points - initial meld threshold
@@ -1388,11 +2188,11 @@ setInitialMeldFirstError
 public void setInitialMeldFirstError()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Is set if the player tried to modify the table without laying out first

-
Specified by:
setInitialMeldFirstError in interface jrummikub.view.IView
+
Specified by:
setInitialMeldFirstError in interface IView
@@ -1405,12 +2205,12 @@ setCurrentPlayerColor
 public void setCurrentPlayerColor(java.awt.Color color)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Is used for the PlayerPanel and ScorePanel to display a player's color along with the name

-
Specified by:
setCurrentPlayerColor in interface jrummikub.view.IView
+
Specified by:
setCurrentPlayerColor in interface IView
Parameters:
color - the current player's color
@@ -1423,11 +2223,11 @@ setRedealedPlayerName
 public void setRedealedPlayerName(java.lang.String name)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Sets the name of the player that has redealt last

-
Specified by:
setRedealedPlayerName in interface jrummikub.view.IView
+
Specified by:
setRedealedPlayerName in interface IView
Parameters:
name - the player name
@@ -1440,11 +2240,11 @@ setLastStonePlayerName
 public void setLastStonePlayerName(java.lang.String name)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Sets the name of the player that has drawn the last stone

-
Specified by:
setLastStonePlayerName in interface jrummikub.view.IView
+
Specified by:
setLastStonePlayerName in interface IView
Parameters:
name - the player name
@@ -1457,12 +2257,12 @@ setCurrentPlayerHasLaidOut
 public void setCurrentPlayerHasLaidOut(boolean hasLaidOut)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Is used for the PlayerPanel to display if a player has laid out along with the name

-
Specified by:
setCurrentPlayerHasLaidOut in interface jrummikub.view.IView
+
Specified by:
setCurrentPlayerHasLaidOut in interface IView
Parameters:
hasLaidOut - specifies if the current player has laid out or not
@@ -1473,13 +2273,13 @@ public void setCurrentPlayerHasLaidOut(boolean hasLaidOut)

getStartTurnEvent

-public jrummikub.util.IEvent getStartTurnEvent()
+public IEvent getStartTurnEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The start turn event is emitted when the player wants to start his turn

-
Specified by:
getStartTurnEvent in interface jrummikub.view.IView
+
Specified by:
getStartTurnEvent in interface IView
@@ -1491,14 +2291,14 @@ public jrummikub.util.IEvent getStartTurnEvent()

getAcknowledgeInvalidEvent

-public jrummikub.util.IEvent getAcknowledgeInvalidEvent()
+public IEvent getAcknowledgeInvalidEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The start turn event is emitted when the player knows what invalid stones he played

-
Specified by:
getAcknowledgeInvalidEvent in interface jrummikub.view.IView
+
Specified by:
getAcknowledgeInvalidEvent in interface IView
@@ -1510,14 +2310,14 @@ public jrummikub.util.IEvent getAcknowledgeInvalidEvent()

getAcknowledgeConnectionLostEvent

-public jrummikub.util.IEvent getAcknowledgeConnectionLostEvent()
+public IEvent getAcknowledgeConnectionLostEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The acknoledge connection lost event is emitted when the user has acknowledged that the network connection was lost

-
Specified by:
getAcknowledgeConnectionLostEvent in interface jrummikub.view.IView
+
Specified by:
getAcknowledgeConnectionLostEvent in interface IView
@@ -1529,13 +2329,13 @@ public jrummikub.util.IEvent getAcknowledgeConnectionLostEvent()

getNewRoundEvent

-public jrummikub.util.IEvent getNewRoundEvent()
+public IEvent getNewRoundEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The new round event is emitted when the player wants to start a new round

-
Specified by:
getNewRoundEvent in interface jrummikub.view.IView
+
Specified by:
getNewRoundEvent in interface IView
@@ -1547,13 +2347,13 @@ public jrummikub.util.IEvent getNewRoundEvent()

getNewGameEvent

-public jrummikub.util.IEvent getNewGameEvent()
+public IEvent getNewGameEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Is emitted if the player wants to end the game and start a new one

-
Specified by:
getNewGameEvent in interface jrummikub.view.IView
+
Specified by:
getNewGameEvent in interface IView
@@ -1565,13 +2365,13 @@ public jrummikub.util.IEvent getNewGameEvent()

getEndProgramEvent

-public jrummikub.util.IEvent getEndProgramEvent()
+public IEvent getEndProgramEvent()
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
The quit event is emitted when the player wants to quit the game

-
Specified by:
getEndProgramEvent in interface jrummikub.view.IView
+
Specified by:
getEndProgramEvent in interface IView
@@ -1580,16 +2380,30 @@ public jrummikub.util.IEvent getEndProgramEvent()

+

+createDecorationStones

+
+private java.util.List<Pair<Stone,Position>> createDecorationStones()
+
+
+
+
+
+
+
+
+
+

setBottomPanel

-public void setBottomPanel(jrummikub.view.IView.BottomPanelType type)
+public void setBottomPanel(IView.BottomPanelType type)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Sets the bottom panels type

-
Specified by:
setBottomPanel in interface jrummikub.view.IView
+
Specified by:
setBottomPanel in interface IView
Parameters:
type - the type of the bottom panel
@@ -1597,16 +2411,30 @@ public void setBottomPanel(jrummikub.view.IView.BottomPanelType type

+

+doSetBottomPanel

+
+private void doSetBottomPanel(IView.BottomPanelType type)
+
+
+
+
+
+
+
+
+
+

setStoneCollectionHidden

 public void setStoneCollectionHidden(boolean enable)
-
Description copied from interface: jrummikub.view.IView
+
Description copied from interface: IView
Show stone collection

-
Specified by:
setStoneCollectionHidden in interface jrummikub.view.IView
+
Specified by:
setStoneCollectionHidden in interface IView
Parameters:
enable - showing collection
@@ -1625,7 +2453,8 @@ public void setStoneCollectionHidden(boolean enable) - + + @@ -1642,7 +2471,7 @@ public void setStoneCollectionHidden(boolean enable) + SUMMARY: NESTED | FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html b/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html index 2634697..8092d13 100644 --- a/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html +++ b/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.view.impl.AbstractStonePanel - + diff --git a/doc/jrummikub/view/impl/class-use/HandPanel.html b/doc/jrummikub/view/impl/class-use/HandPanel.html index 5768966..5bde2c9 100644 --- a/doc/jrummikub/view/impl/class-use/HandPanel.html +++ b/doc/jrummikub/view/impl/class-use/HandPanel.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.view.impl.HandPanel - + @@ -106,13 +106,29 @@ Uses of + +Fields in jrummikub.view.impl declared as HandPanel + + + +private  HandPanel +PlayerPanel.hand + +
+            + + +  +

+ +(package private)  HandPanel + + + + + + +
Methods in jrummikub.view.impl that return HandPanel
- HandPanel PlayerPanel.getHandPanel()
diff --git a/doc/jrummikub/view/impl/class-use/PlayerPanel.html b/doc/jrummikub/view/impl/class-use/PlayerPanel.html index ea48b1b..343ae1d 100644 --- a/doc/jrummikub/view/impl/class-use/PlayerPanel.html +++ b/doc/jrummikub/view/impl/class-use/PlayerPanel.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.view.impl.PlayerPanel - + @@ -83,7 +83,65 @@ function windowTitle()

Uses of Class
jrummikub.view.impl.PlayerPanel

-No usage of jrummikub.view.impl.PlayerPanel + + + + + + + + + +
+Packages that use PlayerPanel
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of PlayerPanel in jrummikub.view.impl
+  +

+ + + + + + + + + + + + + +
Fields in jrummikub.view.impl declared as PlayerPanel
+private  PlayerPanelHandPanel.playerPanel + +
+           
+private  PlayerPanelView.playerPanel + +
+           
+  +

+ + + + + + + + +
Constructors in jrummikub.view.impl with parameters of type PlayerPanel
HandPanel(PlayerPanel playerPanel) + +
+          Creates a new Board instance


diff --git a/doc/jrummikub/view/impl/class-use/StartTurnPanel.html b/doc/jrummikub/view/impl/class-use/StartTurnPanel.html index 2a71661..e7bb53c 100644 --- a/doc/jrummikub/view/impl/class-use/StartTurnPanel.html +++ b/doc/jrummikub/view/impl/class-use/StartTurnPanel.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.view.impl.StartTurnPanel - + @@ -83,7 +83,43 @@ function windowTitle()

Uses of Class
jrummikub.view.impl.StartTurnPanel

-No usage of jrummikub.view.impl.StartTurnPanel + + + + + + + + + +
+Packages that use StartTurnPanel
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of StartTurnPanel in jrummikub.view.impl
+  +

+ + + + + + + + + +
Fields in jrummikub.view.impl declared as StartTurnPanel
+private  StartTurnPanelView.startTurnPanel + +
+           


diff --git a/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html b/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html index 121d84f..336253c 100644 --- a/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html +++ b/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.view.impl.StoneCollectionPanel - + @@ -83,7 +83,43 @@ function windowTitle()

Uses of Class
jrummikub.view.impl.StoneCollectionPanel

-No usage of jrummikub.view.impl.StoneCollectionPanel + + + + + + + + + +
+Packages that use StoneCollectionPanel
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of StoneCollectionPanel in jrummikub.view.impl
+  +

+ + + + + + + + + +
Fields in jrummikub.view.impl declared as StoneCollectionPanel
+private  StoneCollectionPanelTablePanel.stoneCollection + +
+           


diff --git a/doc/jrummikub/view/impl/class-use/StonePainter.html b/doc/jrummikub/view/impl/class-use/StonePainter.html index 0718669..71d897c 100644 --- a/doc/jrummikub/view/impl/class-use/StonePainter.html +++ b/doc/jrummikub/view/impl/class-use/StonePainter.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.view.impl.StonePainter - + @@ -106,6 +106,22 @@ Uses of +
Fields in jrummikub.view.impl declared as StonePainter
+private  StonePainterAbstractStonePanel.stonePainter + +
+           
+  +

+ diff --git a/doc/jrummikub/view/impl/class-use/TablePanel.html b/doc/jrummikub/view/impl/class-use/TablePanel.html index 3297bed..cfe59fb 100644 --- a/doc/jrummikub/view/impl/class-use/TablePanel.html +++ b/doc/jrummikub/view/impl/class-use/TablePanel.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.view.impl.TablePanel - + @@ -83,7 +83,43 @@ function windowTitle()

Uses of Class
jrummikub.view.impl.TablePanel

-No usage of jrummikub.view.impl.TablePanel + +
Methods in jrummikub.view.impl that return StonePainter
+ + + + + + + +
+Packages that use TablePanel
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of TablePanel in jrummikub.view.impl
+  +

+ + + + + + + + + +
Fields in jrummikub.view.impl declared as TablePanel
+private  TablePanelView.table + +
+           


diff --git a/doc/jrummikub/view/impl/class-use/View.html b/doc/jrummikub/view/impl/class-use/View.html index 8c1876b..acbe896 100644 --- a/doc/jrummikub/view/impl/class-use/View.html +++ b/doc/jrummikub/view/impl/class-use/View.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.view.impl.View - + @@ -37,10 +37,11 @@ function windowTitle() - + + - + @@ -96,10 +97,11 @@ No usage of jrummikub.view.impl.View
- + + - + diff --git a/doc/jrummikub/view/impl/package-frame.html b/doc/jrummikub/view/impl/package-frame.html index e9639f3..def07cd 100644 --- a/doc/jrummikub/view/impl/package-frame.html +++ b/doc/jrummikub/view/impl/package-frame.html @@ -2,12 +2,12 @@ - + jrummikub.view.impl - + @@ -23,10 +23,59 @@ jrummikub.view.impl Classes 
+AbstractStonePanel +
+ConnectPanel +
+GameListPanel +
+GameListPanel.GameDataCellRenderer +
+HandPanel +
+ImageUtil +
+LoginPanel +
+PausePanel +
+PlayerPanel +
+QuitWarningPanel +
+RoundEndPanel +
+ScorePanel +
+SettingsPanel +
+SidePanel +
+SidePanel.InfoPanel +
+StartTurnPanel +
+StoneCollectionPanel +
+StonePainter +
+TablePanel +
View
+ + + + +
+Enums  + +
+StonePainter.StoneState
+ + diff --git a/doc/jrummikub/view/impl/package-summary.html b/doc/jrummikub/view/impl/package-summary.html index 955bd5e..99270cd 100644 --- a/doc/jrummikub/view/impl/package-summary.html +++ b/doc/jrummikub/view/impl/package-summary.html @@ -2,12 +2,12 @@ - + jrummikub.view.impl - + @@ -37,7 +37,8 @@ function windowTitle() - + + @@ -54,7 +55,7 @@ function windowTitle() + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AbstractStonePanelBase class for panels that draw stones
ConnectPanelPanel shown during network connecting process and showing errors
GameListPanel 
GameListPanel.GameDataCellRendererClass presenting the game data in a readable way
HandPanelImplementation of the board
ImageUtil 
LoginPanel 
PausePanelA panel that is displayed before a player's turn
PlayerPanelImplementation of the player panel
QuitWarningPanelWarning panel to inform users if their actions would end the current game
RoundEndPanelA panel that is displayed when a player has won
ScorePanel 
SettingsPanel 
SidePanel 
SidePanel.InfoPanel 
StartTurnPanelA panel that is displayed before a player's turn
StoneCollectionPanelImplementation of the stone collection (selection)
StonePainterThe StonePainter paints stones and converts between pixel and grid + coordinates
TablePanelThe implementation of the table
View Implementation of the top-level view interface
  +

+ + + + + + + + + +
+Enum Summary
StonePainter.StoneState 
+  +

@@ -109,7 +201,8 @@ Package jrummikub.view.impl - + + @@ -126,7 +219,7 @@ Package jrummikub.view.impl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IConnectPanel + +
+          Panel shown during connection process and showing errors
IGameListPanel + +
+          Panel showing all offered games in the chosen channel
IHandPanel
          The view for a player's hand that displays his stones
ILoginPanel + +
+          LoginPanel for network game
IPlayerPanel
          The player panel that contains a player's board and other user interfaces
IQuitWarningPanel + +
+          Warning panel shown to if the emitted event would cancel the current game
IQuitWarningPanel.QuitMode + +
+          Enum summarizing the different events invoking the quit warning panel
IScorePanel + +
+          The panel the scores are displayed in
ISettingsPanel + +
+          The panel for the game setup
ISettingsPanel.SettingsError + +
+          Specifies the different kinds of settings errors that can be displayed
ISettingsPanel.SettingsMode + +
+          SettingsPanel can be used with different functions in different situations
ISidePanel + +
+          Side panel to show all players and relevant player information in round + order, game settings and stone heap size
IStoneCollectionPanel
@@ -214,6 +404,18 @@ Classes in jrummikub.view           The top-level view interface
IView.BottomPanelType + +
+          Different types of bottom panels
LoginError + +
+          Enum summarizing the different kinds of login errors
 

-- cgit v1.2.3