diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html
index 3b3a1f6..1aceb84 100644
--- a/doc/allclasses-frame.html
+++ b/doc/allclasses-frame.html
@@ -2,12 +2,12 @@
-
+
All Classes
-
+
@@ -21,7 +21,239 @@ All Classes
-View
+AbstractGameBeginControl
+
+AbstractSettingsControl
+
+AbstractStonePanel
+
+AbstractTurnControl
+
+AIControl
+
+ApplicationControl
+
+Connection
+
+ConnectionControl
+
+ConnectionControl.TurnEndData
+
+ConnectPanel
+
+DedicatedServer
+
+DedicatedServer.ServerStatus
+
+Event
+
+Event1
+
+Event2
+
+Event3
+
+GameControl
+
+GameData
+
+GameJoinControl
+
+GameListPanel
+
+GameListPanel.GameDataCellRenderer
+
+GameOfferControl
+
+GameSettings
+
+GameState
+
+Hand
+
+HandPanel
+
+HumanTurnControl
+
+HumanTurnControl.GroupComparator
+
+HumanTurnControl.HandStonePositionComparator
+
+HumanTurnControl.RunComparator
+
+IClickable
+
+IConnectionControl
+
+IConnectPanel
+
+IEvent
+
+IEvent1
+
+IEvent2
+
+IEvent3
+
+IGameListPanel
+
+IHand
+
+IHandPanel
+
+IListener
+
+IListener1
+
+IListener2
+
+IListener3
+
+ILoginPanel
+
+ImageUtil
+
+IPlayer
+
+IPlayerPanel
+
+IQuitWarningPanel
+
+IQuitWarningPanel.QuitMode
+
+IRoundState
+
+IScorePanel
+
+ISettingsPanel
+
+ISettingsPanel.SettingsError
+
+ISettingsPanel.SettingsMode
+
+ISidePanel
+
+IStoneCollectionPanel
+
+IStonePanel
+
+IStoneTray
+
+ITable
+
+ITablePanel
+
+ITurnControl
+
+ITurnControl.TurnInfo
+
+ITurnTimer
+
+IView
+
+IView.BottomPanelType
+
+JRummikub
+
+LoginControl
+
+LoginData
+
+LoginError
+
+LoginPanel
+
+NetworkControl
+
+NetworkGameControl
+
+NetworkRoundControl
+
+NetworkSettingsControl
+
+NetworkTurnControl
+
+Pair
+
+PausePanel
+
+Player
+
+PlayerPanel
+
+PlayerSettings
+
+PlayerSettings.Type
+
+Position
+
+QuitWarningPanel
+
+RoundControl
+
+RoundControl.InvalidTurnInfo
+
+RoundControl.InvalidTurnType
+
+RoundEndPanel
+
+RoundState
+
+SaveControl
+
+Score
+
+ScorePanel
+
+SettingsControl
+
+SettingsPanel
+
+SidePanel
+
+SidePanel.InfoPanel
+
+Sizeable
+
+StartTurnPanel
+
+Stone
+
+StoneCollectionPanel
+
+StoneColor
+
+StoneHeap
+
+StonePainter
+
+StonePainter.StoneState
+
+StoneSet
+
+StoneSet.Type
+
+StoneTray
+
+StoneTray.Direction
+
+Table
+
+Table.StoneInfo
+
+TablePanel
+
+TurnControlFactory
+
+TurnLogic
+
+TurnLogic.Contradiction
+
+TurnMode
+
+TurnTimer
+
+View
diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html
index 43a7ea5..4b1f69f 100644
--- a/doc/allclasses-noframe.html
+++ b/doc/allclasses-noframe.html
@@ -2,12 +2,12 @@
-
+
All Classes
-
+
@@ -21,7 +21,239 @@ All Classes
-View
+AbstractGameBeginControl
+
+AbstractSettingsControl
+
+AbstractStonePanel
+
+AbstractTurnControl
+
+AIControl
+
+ApplicationControl
+
+Connection
+
+ConnectionControl
+
+ConnectionControl.TurnEndData
+
+ConnectPanel
+
+DedicatedServer
+
+DedicatedServer.ServerStatus
+
+Event
+
+Event1
+
+Event2
+
+Event3
+
+GameControl
+
+GameData
+
+GameJoinControl
+
+GameListPanel
+
+GameListPanel.GameDataCellRenderer
+
+GameOfferControl
+
+GameSettings
+
+GameState
+
+Hand
+
+HandPanel
+
+HumanTurnControl
+
+HumanTurnControl.GroupComparator
+
+HumanTurnControl.HandStonePositionComparator
+
+HumanTurnControl.RunComparator
+
+IClickable
+
+IConnectionControl
+
+IConnectPanel
+
+IEvent
+
+IEvent1
+
+IEvent2
+
+IEvent3
+
+IGameListPanel
+
+IHand
+
+IHandPanel
+
+IListener
+
+IListener1
+
+IListener2
+
+IListener3
+
+ILoginPanel
+
+ImageUtil
+
+IPlayer
+
+IPlayerPanel
+
+IQuitWarningPanel
+
+IQuitWarningPanel.QuitMode
+
+IRoundState
+
+IScorePanel
+
+ISettingsPanel
+
+ISettingsPanel.SettingsError
+
+ISettingsPanel.SettingsMode
+
+ISidePanel
+
+IStoneCollectionPanel
+
+IStonePanel
+
+IStoneTray
+
+ITable
+
+ITablePanel
+
+ITurnControl
+
+ITurnControl.TurnInfo
+
+ITurnTimer
+
+IView
+
+IView.BottomPanelType
+
+JRummikub
+
+LoginControl
+
+LoginData
+
+LoginError
+
+LoginPanel
+
+NetworkControl
+
+NetworkGameControl
+
+NetworkRoundControl
+
+NetworkSettingsControl
+
+NetworkTurnControl
+
+Pair
+
+PausePanel
+
+Player
+
+PlayerPanel
+
+PlayerSettings
+
+PlayerSettings.Type
+
+Position
+
+QuitWarningPanel
+
+RoundControl
+
+RoundControl.InvalidTurnInfo
+
+RoundControl.InvalidTurnType
+
+RoundEndPanel
+
+RoundState
+
+SaveControl
+
+Score
+
+ScorePanel
+
+SettingsControl
+
+SettingsPanel
+
+SidePanel
+
+SidePanel.InfoPanel
+
+Sizeable
+
+StartTurnPanel
+
+Stone
+
+StoneCollectionPanel
+
+StoneColor
+
+StoneHeap
+
+StonePainter
+
+StonePainter.StoneState
+
+StoneSet
+
+StoneSet.Type
+
+StoneTray
+
+StoneTray.Direction
+
+Table
+
+Table.StoneInfo
+
+TablePanel
+
+TurnControlFactory
+
+TurnLogic
+
+TurnLogic.Contradiction
+
+TurnMode
+
+TurnTimer
+
+View
diff --git a/doc/constant-values.html b/doc/constant-values.html
index fdba2fc..2787153 100644
--- a/doc/constant-values.html
+++ b/doc/constant-values.html
@@ -2,12 +2,12 @@
-
+
Constant Field Values
-
+
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -84,8 +85,840 @@ Constant Field Values
Contents
+
+
+
+
+jrummikub.control.*
+
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.control.network.ConnectionControl
+
+
+
+private static final java.lang.String
+ELEMENT_NAME
+"rummikub"
+
+
+
+private static final java.lang.String
+NAMESPACE
+"http://home.universe-factory.net/rummikub/"
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.control.network.jrummikub.control.network.ConnectionControl.TurnEndData
+
+
+
+private static final long
+serialVersionUID
+-3800572117130220737L
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.model.*
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.model.Hand
+
+
+
+private static final long
+serialVersionUID
+192210056255744909L
+
+
+
+public static final int
+WIDTH
+14
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.model.Score
+
+
+
+private static final long
+serialVersionUID
+2200041688506962025L
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.model.Stone
+
+
+
+private static final long
+serialVersionUID
+7032593080727812277L
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.model.Table
+
+
+
+private static final long
+serialVersionUID
+2433091681355019937L
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.util.*
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.view.*
+
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.view.impl.jrummikub.view.impl.GameListPanel
+
+
+
+private static final long
+serialVersionUID
+1L
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.view.impl.jrummikub.view.impl.GameListPanel.GameDataCellRenderer
+
+
+
+private static final long
+serialVersionUID
+-892701906163443927L
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.view.impl.jrummikub.view.impl.HandPanel
+
+
+
+private static final int
+HEIGHT
+2
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.view.impl.jrummikub.view.impl.LoginPanel
+
+
+
+private static final java.lang.String
+DEFAULT_PASSWORD
+"jrummikub"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.view.impl.jrummikub.view.impl.QuitWarningPanel
+
+
+
+private static final long
+serialVersionUID
+1L
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.view.impl.jrummikub.view.impl.StoneCollectionPanel
+
+
+
+private static final float
+INSET_RATIO
+0.10000000149011612f
+
+
+
+
+
+
+
+
+
+
+
+jrummikub.view.impl.jrummikub.view.impl.StonePainter
+
+
+
+private static final double
+ASPECT_RATIO
+0.75
+
+
+
+private static final double
+BRIGHTER_SCALE
+1.149999976158142
+
+
+
+private static final double
+CIRCLE_POS
+0.7250000238418579
+
+
+
+private static final double
+CIRCLE_WIDTH
+0.44999998807907104
+
+
+
+private static final double
+DEFAULT_WIDTH
+40.0
+
+
+
+private static final double
+FACE_WIDTH
+0.4749999940395355
+
+
+
+static final double
+HEIGHT_SCALE
+0.01875
+
+
+
+private static final double
+HOVER_RATIO
+0.699999988079071
+
+
+
+private static final double
+REDDEN_RATIO
+0.30000001192092896
+
+
+
+private static final double
+TEXT_POS
+0.2750000059604645
+
+
+
+static final double
+WIDTH_SCALE
+0.025
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -98,7 +931,8 @@ Constant Field Values
- Package
+ Overview
+ Package
Class
Use
Tree
diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html
index f9f746a..8132258 100644
--- a/doc/deprecated-list.html
+++ b/doc/deprecated-list.html
@@ -2,12 +2,12 @@
-
+
Deprecated List
-
+
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -98,7 +99,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
diff --git a/doc/help-doc.html b/doc/help-doc.html
index 9030d6c..204976c 100644
--- a/doc/help-doc.html
+++ b/doc/help-doc.html
@@ -2,12 +2,12 @@
-
+
API Help
-
+
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -83,6 +84,12 @@ function windowTitle()
How This API Document Is Organized
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+Overview
+
+
+
+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+
Package
@@ -169,7 +176,8 @@ This help file applies to API documentation generated using the standard doclet.
- Package
+ Overview
+ Package
Class
Use
Tree
diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html
index 06cbd28..7a5906b 100644
--- a/doc/index-files/index-1.html
+++ b/doc/index-files/index-1.html
@@ -2,12 +2,12 @@
-
+
-C-Index
+A-Index
-
+
@@ -15,7 +15,7 @@ C-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="C-Index";
+ parent.document.title="A-Index";
}
}
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -77,13 +78,290 @@ function windowTitle()
-C E G J L R S V
-
-C
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+A
-clearView() -
-Method in class jrummikub.view.impl.View
+abort -
+Variable in class jrummikub.ai.TurnLogic
+ abort() -
+Method in class jrummikub.ai.TurnLogic
+Aborts currently running solve call
+ abort() -
+Method in class jrummikub.control.AbstractSettingsControl
+Abort settings control once settings are set
+ abort() -
+Method in class jrummikub.control.LoginControl
+Control abortion once all login data have been processed or login was
+ canceled
+ abort() -
+Method in class jrummikub.control.network.AbstractGameBeginControl
+
+ abort() -
+Method in class jrummikub.control.network.NetworkControl
+Ends the network connection if canceled
+ abortControls() -
+Method in class jrummikub.control.ApplicationControl
+End all controls in case of e.g. quit event
+ abortControls() -
+Method in class jrummikub.control.network.NetworkControl
+
+ aborted -
+Variable in class jrummikub.control.turn.AIControl
+
+ abortGame() -
+Method in class jrummikub.control.GameControl
+Clean abortion of a running game when another one is loaded or when a new
+ one is started
+ abortRound() -
+Method in class jrummikub.control.RoundControl
+Abort round if a new one is started or a saved one is loaded
+ abortTurn() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ abortTurn() -
+Method in class jrummikub.control.turn.AIControl
+
+ abortTurn() -
+Method in interface jrummikub.control.turn.ITurnControl
+Abort the turn
+ AbstractGameBeginControl - Class in jrummikub.control.network Abstract class for network game controls in between choosing and starting a
+ game AbstractGameBeginControl(IConnectionControl, IView, GameData, ISettingsPanel.SettingsMode) -
+Constructor for class jrummikub.control.network.AbstractGameBeginControl
+Create a new game begin control
+ AbstractSettingsControl - Class in jrummikub.control Abstract control class managing joined methods and attributes of all
+ different (network, default...) settings controls AbstractSettingsControl(IView, GameSettings) -
+Constructor for class jrummikub.control.AbstractSettingsControl
+Create a new settings control
+ AbstractStonePanel - Class in jrummikub.view.impl Base class for panels that draw stones AbstractStonePanel() -
+Constructor for class jrummikub.view.impl.AbstractStonePanel
+Create a new StonePanel with default scale factor
+ AbstractStonePanel(float) -
+Constructor for class jrummikub.view.impl.AbstractStonePanel
+Create a new StonePanel with a given scale factor
+ AbstractTurnControl - Class in jrummikub.control.turn Abstract base class for TurnControls AbstractTurnControl() -
+Constructor for class jrummikub.control.turn.AbstractTurnControl
+
+ accumulatedScore -
+Variable in class jrummikub.view.impl.ScorePanel
+
+ ackJoinGame(String, boolean) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ ackJoinGame(String, boolean) -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ acknowledgeConnectionLostEvent -
+Variable in class jrummikub.view.impl.StartTurnPanel
+
+ acknowledgeInvalidEvent -
+Variable in class jrummikub.view.impl.StartTurnPanel
+
+ actionPerformed(ActionEvent) -
+Method in class jrummikub.control.TurnTimer
+
+ actionQueue -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ activePlayer -
+Variable in class jrummikub.model.RoundState
+
+ add(TurnLogic.StoneState) -
+Method in class jrummikub.ai.TurnLogic.State
+Adds stones to be considered in the state
+ add(IListener) -
+Method in class jrummikub.util.Event
+
+ add(IListener1<T>) -
+Method in class jrummikub.util.Event1
+
+ add(IListener2<T1, T2>) -
+Method in class jrummikub.util.Event2
+
+ add(IListener3<T1, T2, T3>) -
+Method in class jrummikub.util.Event3
+
+ add(IListener) -
+Method in interface jrummikub.util.IEvent
+Start to publish all events to a given listener
+ add(IListener1<T>) -
+Method in interface jrummikub.util.IEvent1
+Start to publish all events to a given listener
+ add(IListener2<T1, T2>) -
+Method in interface jrummikub.util.IEvent2
+Start to publish all events to a given listener
+ add(IListener3<T1, T2, T3>) -
+Method in interface jrummikub.util.IEvent3
+Start to publish all events to a given listener
+ addAccumulatedScore() -
+Method in class jrummikub.view.impl.ScorePanel
+
+ addButtonHandlers() -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ addButtons(GridBagConstraints) -
+Method in class jrummikub.view.impl.GameListPanel
+Adds all three buttons to the panel
+ addConnectionControlListeners(IConnectionControl, GameSettings) -
+Method in class jrummikub.control.network.GameOfferControl
+
+ addConnectionControlListeners() -
+Method in class jrummikub.control.network.NetworkControl
+Adds the listeners for connection control events
+ addConnectionLostListeners() -
+Method in class jrummikub.control.network.NetworkControl
+Adds the listeners for lost connection events
+ addConnectionSetupListeners(LoginData) -
+Method in class jrummikub.control.network.NetworkControl
+
+ addData(DefaultPacketExtension) -
+Method in class jrummikub.control.network.ConnectionControl.SendRunner
+
+ addDefaultButtons() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ addFirstPlayer() -
+Method in class jrummikub.control.network.NetworkSettingsControl
+
+ addGameControlListeners(GameControl) -
+Method in class jrummikub.control.ApplicationControl
+Adds events listeners to game control events
+ addHandPanelHandlers() -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ addHandSizeInfo(IPlayer) -
+Method in class jrummikub.view.impl.SidePanel.PlayerListItem
+
+ addHandStones(List<Stone>) -
+Method in class jrummikub.control.turn.AIControl
+
+ addInputRow(String, JTextField) -
+Method in class jrummikub.view.impl.LoginPanel
+
+ addLastTurnInfo(IPlayer) -
+Method in class jrummikub.view.impl.SidePanel.PlayerListItem
+
+ addListeners() -
+Method in class jrummikub.control.AbstractSettingsControl
+Add event listeners to abstract settings control
+ addNetworkJoinButtons() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ addNetworkOfferButtons() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ addNetworkSetupButtons() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ addNewNetworkGameHandler() -
+Method in class jrummikub.control.ApplicationControl
+
+ addOfferUpdateListener() -
+Method in class jrummikub.control.network.NetworkControl
+
+ addOptionListeners1() -
+Method in class jrummikub.control.AbstractSettingsControl
+Add the first half of event listeners to option panel
+ addOptionListeners2() -
+Method in class jrummikub.control.AbstractSettingsControl
+Add the second half of event listeners to option panel
+ addOptionPanelComponent(JComponent, boolean, int) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ addOptionPanelComponents() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ addOptionPanelLabels() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ addPlayer() -
+Method in class jrummikub.control.AbstractSettingsControl
+Add new player to the planned game
+ addPlayer() -
+Method in class jrummikub.control.network.NetworkSettingsControl
+
+ addPlayer() -
+Method in class jrummikub.control.SettingsControl
+
+ addPlayerButton -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ addPlayerEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ addPlayerNames() -
+Method in class jrummikub.view.impl.ScorePanel
+
+ addPlayerSettingsListeners() -
+Method in class jrummikub.control.AbstractSettingsControl
+Add event listeners to the player settings panel
+ addPlayerSettingsPanel(int, PlayerSettings, List<PlayerSettings.Type>) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ addQuitGameHandlers() -
+Method in class jrummikub.control.ApplicationControl
+
+ addSaveLoadHandlers() -
+Method in class jrummikub.control.ApplicationControl
+
+ addScoreRow(Score, int) -
+Method in class jrummikub.view.impl.ScorePanel
+
+ addStoneCollectionHandlers() -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ addTablePanelConnectorClickHandlers() -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ addTablePanelHandlers() -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ addTableStones(List<Stone>) -
+Method in class jrummikub.control.turn.AIControl
+
+ addTurnControlListeners(ITurnControl) -
+Method in class jrummikub.control.network.NetworkRoundControl
+
+ addTurnControlListeners(ITurnControl) -
+Method in class jrummikub.control.RoundControl
+Override this
+ addVariantListeners() -
+Method in class jrummikub.control.AbstractSettingsControl
+Add event listeners for variants, e.g. standard or children
+ addViewEventListeners() -
+Method in class jrummikub.control.network.NetworkControl
+
+ addViewListeners(IView, GameData) -
+Method in class jrummikub.control.network.AbstractGameBeginControl
+
+ adminGranted(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ adminRevoked(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ AIControl - Class in jrummikub.control.turn Base class for AI players
+
+ Code not covered by tests uses timers and background threads. AIControl() -
+Constructor for class jrummikub.control.turn.AIControl
+
+ appControl -
+Variable in class jrummikub.control.LoginControl
+
+ ApplicationControl - Class in jrummikub.control The application control controls the settings for a new games and create the
+ game control ApplicationControl(IView) -
+Constructor for class jrummikub.control.ApplicationControl
+Creates a new application control
+ ASPECT_RATIO -
+Static variable in class jrummikub.view.impl.StonePainter
+
+ autoAbort -
+Variable in class jrummikub.ai.TurnLogic
+
+ autoAbort() -
+Method in class jrummikub.ai.TurnLogic
+Abort as soon as a solution is found
@@ -97,7 +375,8 @@ Method in class jrummikub.view.impl.
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -137,7 +416,7 @@ Method in class jrummikub.view.impl.
-C E G J L R S V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html
index feee7a5..866fbd2 100644
--- a/doc/index-files/index-10.html
+++ b/doc/index-files/index-10.html
@@ -2,12 +2,12 @@
-
+
-M-Index
+J-Index
-
+
@@ -15,7 +15,7 @@ M-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="M-Index";
+ parent.document.title="J-Index";
}
}
@@ -78,14 +78,62 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-M
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+J
-main(String[]) -
-Static method in class jrummikub.JRummikub
-The main method
-
+join(GameData) -
+Method in class jrummikub.control.network.NetworkControl
+
+ join(StoneSet) -
+Method in class jrummikub.model.StoneSet
+Joins StoneSet to another StoneSet and returns the resulting new StoneSet
+ join() -
+Method in class jrummikub.view.impl.GameListPanel
+Emits a join event if a user selects a game and dedides to join it
+ joinButton -
+Variable in class jrummikub.view.impl.GameListPanel
+
+ joined(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ joinEvent -
+Variable in class jrummikub.view.impl.GameListPanel
+
+ joinGame(GameData) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ joinGame(GameData) -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ joker -
+Variable in class jrummikub.ai.TurnLogic.StoneState
+
+ joker -
+Variable in class jrummikub.model.Stone
+
+ jokerIDs -
+Variable in class jrummikub.ai.TurnLogic.State
+The position of the jokers in the other lists
+ jokerLabel -
+Variable in class jrummikub.view.impl.SidePanel
+
+ jokerNumber -
+Variable in class jrummikub.model.GameSettings
+
+ jokerNumberLabel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ jokerNumberSpinner -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ jokerPoints -
+Variable in class jrummikub.model.GameSettings
+
+ JRummikub - Class in jrummikub The main class JRummikub() -
+Constructor for class jrummikub.JRummikub
+
+ jrummikub.ai - package jrummikub.ai jrummikub.server - package jrummikub.server jrummikub.view.impl - package jrummikub.view.impl
@@ -139,7 +187,7 @@ Static method in class jrummikub.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html
index 1d6314b..dfbd71f 100644
--- a/doc/index-files/index-11.html
+++ b/doc/index-files/index-11.html
@@ -2,12 +2,12 @@
-
+
-N-Index
+K-Index
-
+
@@ -15,7 +15,7 @@ N-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="N-Index";
+ parent.document.title="K-Index";
}
}
@@ -78,16 +78,16 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-N
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+K
-nextPlayer() -
-Method in class jrummikub.model.GameState
+keepStonesButton -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ kicked(String, String, String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
- nextPlayer() -
-Method in interface jrummikub.model.IGameState
-Changes the activePlayer to the next Player
in the list
@@ -142,7 +142,7 @@ Method in interface jrummikub.model.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html
index f2ce394..09f232a 100644
--- a/doc/index-files/index-12.html
+++ b/doc/index-files/index-12.html
@@ -2,12 +2,12 @@
-
+
-O-Index
+L-Index
-
+
@@ -15,7 +15,7 @@ O-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="O-Index";
+ parent.document.title="L-Index";
}
}
@@ -78,12 +78,145 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-O
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+L
-objects -
-Variable in class jrummikub.model.StoneTray
+laidOut -
+Variable in class jrummikub.model.Player
+
+ laidOutValidPoints() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ lastPlayer -
+Variable in class jrummikub.model.RoundState
+
+ lastPlayerRedealed -
+Variable in class jrummikub.model.GameState
+
+ lastStonePlayerName -
+Variable in class jrummikub.view.impl.StartTurnPanel
+
+ lastTurnInvalid -
+Variable in class jrummikub.model.Player
+
+ lastTurnStoneCount -
+Variable in class jrummikub.model.Player
+
+ layeredPane -
+Variable in class jrummikub.view.impl.View
+
+ leaveGame() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ leaveGame() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ left(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ leftConnectorClickEvent -
+Variable in class jrummikub.view.impl.TablePanel
+
+ leftGroup -
+Variable in class jrummikub.ai.TurnLogic.StoneState
+
+ leftHoveredConnector -
+Variable in class jrummikub.view.impl.TablePanel
+
+ leftPanel -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ leftPanelResizeListener -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ leftPanelWidth -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ leftRun -
+Variable in class jrummikub.ai.TurnLogic.StoneState
+
+ lessOrEqual(double, double) -
+Static method in class jrummikub.model.StoneTray
+Static method for determining a less or equal relation considering a
+ small fuzziness
+ lessThan(T, T) -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Compare two objects, returning true if either is null
+ listeners -
+Variable in class jrummikub.util.Event
+
+ listeners -
+Variable in class jrummikub.util.Event1
+
+ listeners -
+Variable in class jrummikub.util.Event2
+
+ listeners -
+Variable in class jrummikub.util.Event3
+
+ listItems -
+Variable in class jrummikub.view.impl.SidePanel.PlayerListPanel
+
+ load(File) -
+Method in class jrummikub.control.SaveControl
+Loads the specified file and sets game state and round state.
+ load() -
+Method in class jrummikub.view.impl.View
+
+ load() -
+Method in interface jrummikub.view.IView
+Loading a game
+ loadButton -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ loadErrorEvent -
+Variable in class jrummikub.control.SaveControl
+
+ loadEvent -
+Variable in class jrummikub.control.SaveControl
+
+ loadEvent -
+Variable in class jrummikub.view.impl.View
+
+ loadFileEvent -
+Variable in class jrummikub.view.impl.View
+
+ loadGameEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ logic -
+Variable in class jrummikub.control.turn.AIControl
+
+ login() -
+Method in class jrummikub.view.impl.LoginPanel
+
+ loginControl -
+Variable in class jrummikub.control.ApplicationControl
+
+ LoginControl - Class in jrummikub.control Control checking and processing login data for network game LoginControl(IView, ApplicationControl) -
+Constructor for class jrummikub.control.LoginControl
+Constructor for login Control
+ loginData -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ LoginData - Class in jrummikub.util Data needed for the login in one data type (name, server, password, channel) LoginData(String, String, String, String) -
+Constructor for class jrummikub.util.LoginData
+Creates a new set of login data
+ LoginError - Enum in jrummikub.view Enum summarizing the different kinds of login errors LoginError() -
+Constructor for enum jrummikub.view.LoginError
+
+ loginEvent -
+Variable in class jrummikub.control.LoginControl
+
+ loginEvent -
+Variable in class jrummikub.view.impl.LoginPanel
+
+ LoginPanel - Class in jrummikub.view.impl LoginPanel() -
+Constructor for class jrummikub.view.impl.LoginPanel
+
+ loginPanel -
+Variable in class jrummikub.view.impl.View
@@ -139,7 +272,7 @@ Variable in class jrummikub.model.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html
index 6d7311a..cc14978 100644
--- a/doc/index-files/index-13.html
+++ b/doc/index-files/index-13.html
@@ -2,12 +2,12 @@
-
+
-P-Index
+M-Index
-
+
@@ -15,7 +15,7 @@ P-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="P-Index";
+ parent.document.title="M-Index";
}
}
@@ -78,50 +78,109 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-P
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+M
-paintComponent(Graphics) -
-Method in class jrummikub.view.impl.HandPanel
+main(String[]) -
+Static method in class jrummikub.JRummikub
+The main method
+ main(String[]) -
+Static method in class jrummikub.server.DedicatedServer
+Main for a simple command line dedicated server
+ mainLayer -
+Variable in class jrummikub.view.impl.View
- paintComponent(Graphics) -
-Method in class jrummikub.view.impl.StoneCollectionPanel
+makeAllOptionLabels(int) -
+Method in class jrummikub.view.impl.SettingsPanel
- paintComponent(Graphics) -
-Method in class jrummikub.view.impl.TablePanel
+makeFiller() -
+Method in class jrummikub.view.impl.SettingsPanel
- paintStone(Graphics2D, Stone, Position, boolean, boolean) -
-Method in class jrummikub.view.impl.StonePainter
-Paints a stone
- Pair <T1 ,T2 > - Class in jrummikub.util A pair of objects Pair(T1, T2) -
-Constructor for class jrummikub.util.Pair
-Create a new pair from two values
- pickUp(E) -
-Method in interface jrummikub.model.IStoneTray
-Tries to pick up (remove) a given object
- pickUp(E) -
-Method in class jrummikub.model.StoneTray
+makeFullSet() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Returns a set containing all possible neighbors
+ makeOptionLabel(int, String) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ makeVariantPanel() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ MAX_BUTTON_FONT_SIZE -
+Static variable in class jrummikub.view.impl.PausePanel
+
+ MAX_BUTTON_FONT_SIZE -
+Static variable in class jrummikub.view.impl.PlayerPanel
+
+ MAX_BUTTON_FONT_SIZE -
+Static variable in class jrummikub.view.impl.RoundEndPanel
+
+ MAX_BUTTON_FONT_SIZE -
+Static variable in class jrummikub.view.impl.StartTurnPanel
+
+ maxColor -
+Variable in class jrummikub.ai.TurnLogic
+
+ maxRow -
+Variable in class jrummikub.view.impl.HandPanel
+
+ mayPause -
+Variable in class jrummikub.control.RoundControl
+
+ mayPause -
+Variable in class jrummikub.control.turn.ITurnControl.TurnInfo
+
+ mayPause -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ membershipGranted(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ membershipRevoked(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ menuBar -
+Variable in class jrummikub.view.impl.View
+
+ menuNewGameEvent -
+Variable in class jrummikub.view.impl.View
+
+ message -
+Variable in class jrummikub.control.network.ConnectionControl.SendRunner
+
+ messageLabel -
+Variable in class jrummikub.view.impl.ConnectPanel
+
+ messageLabel -
+Variable in class jrummikub.view.impl.QuitWarningPanel
+
+ messagesDuringGame(DefaultPacketExtension, String, String) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ messagesDuringRound(DefaultPacketExtension, String) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ MIN_VISIBLE_HEIGHT -
+Static variable in class jrummikub.view.impl.TablePanel
+
+ MIN_VISIBLE_WIDTH -
+Static variable in class jrummikub.view.impl.TablePanel
+
+ minColor -
+Variable in class jrummikub.ai.TurnLogic
+
+ moderatorGranted(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ moderatorRevoked(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ modifyMessage(Message) -
+Method in class jrummikub.control.network.ConnectionControl.SendRunner
+
+ muc -
+Variable in class jrummikub.control.network.ConnectionControl
- pickUpStone(Stone) -
-Method in interface jrummikub.model.ITable
-Removes Stone
from the Table
- pickUpStone(Stone) -
-Method in class jrummikub.model.Table
-Removes Stone
from the Table
- Player - Class in jrummikub.model Class managing player data. Player(String, Color) -
-Constructor for class jrummikub.model.Player
-Create a new player with a given name and color
- PlayerPanel - Class in jrummikub.view.impl Implementation of the player panel PlayerPanel() -
-Constructor for class jrummikub.view.impl.PlayerPanel
-Creates a new PlayerPanel instance
- Position - Class in jrummikub.model Stone
Position class to determine positions on Table
or
- Hand
Position(float, float) -
-Constructor for class jrummikub.model.Position
-Create a new position by specifying the coordinates
- putBack(Collection<Stone>) -
-Method in class jrummikub.model.StoneHeap
-Put stones back on the heap
@@ -176,7 +235,7 @@ Method in class jrummikub.model.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-14.html b/doc/index-files/index-14.html
index 1bce57c..6af96bf 100644
--- a/doc/index-files/index-14.html
+++ b/doc/index-files/index-14.html
@@ -2,12 +2,12 @@
-
+
-R-Index
+N-Index
-
+
@@ -15,7 +15,7 @@ R-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="R-Index";
+ parent.document.title="N-Index";
}
}
@@ -78,34 +78,134 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-R
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+N
-remove() -
-Method in interface jrummikub.util.Connection
-Removes the listener
- remove(IListener) -
-Method in class jrummikub.util.Event
+name -
+Variable in class jrummikub.model.PlayerSettings
- remove(IListener1<T>) -
-Method in class jrummikub.util.Event1
+nameField -
+Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
- remove(IListener2<T1, T2>) -
-Method in class jrummikub.util.Event2
+nameLabel -
+Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ NAMESPACE -
+Static variable in class jrummikub.control.network.ConnectionControl
+
+ neededPoints -
+Variable in class jrummikub.ai.TurnLogic
+
+ neededScore -
+Variable in class jrummikub.ai.TurnLogic
+
+ needIntialMeldThreshold() -
+Method in class jrummikub.ai.TurnLogic
+Include initial meld threshold into turn logic
+ needsJoker(boolean) -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Checks whether we need a joker on the left or right side to place
+ this stone
+ networkButton -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ networkControl -
+Variable in class jrummikub.control.ApplicationControl
+
+ NetworkControl - Class in jrummikub.control.network Class dealing with network connection, offering and choice of network games NetworkControl(LoginData, IConnectionControl, SaveControl, IView) -
+Constructor for class jrummikub.control.network.NetworkControl
+Creates a new network control
+ NetworkGameControl - Class in jrummikub.control.network Class controlling network games NetworkGameControl(GameSettings, SaveControl, IView, IConnectionControl, boolean) -
+Constructor for class jrummikub.control.network.NetworkGameControl
+Creates new network game control
+ networkGameEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ networkGameEvent -
+Variable in class jrummikub.view.impl.View
+
+ NetworkRoundControl - Class in jrummikub.control.network Round control for network games NetworkRoundControl(IRoundState, IView, IConnectionControl, boolean) -
+Constructor for class jrummikub.control.network.NetworkRoundControl
+Creates new network round control
+ NetworkSettingsControl - Class in jrummikub.control.network Settings for network games, entered by host NetworkSettingsControl(String, IView, GameSettings) -
+Constructor for class jrummikub.control.network.NetworkSettingsControl
+Creates a new network settings control
+ NetworkTurnControl - Class in jrummikub.control.network Turn control for network games NetworkTurnControl(IConnectionControl) -
+Constructor for class jrummikub.control.network.NetworkTurnControl
+Creates new network turn control
+ newGameButton -
+Variable in class jrummikub.view.impl.RoundEndPanel
+
+ newGameEvent -
+Variable in class jrummikub.view.impl.RoundEndPanel
+
+ newRoundButton -
+Variable in class jrummikub.view.impl.RoundEndPanel
+
+ newRoundEvent -
+Variable in class jrummikub.view.impl.RoundEndPanel
+
+ nextPlayer() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ nextPlayer() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ nextPlayer() -
+Method in class jrummikub.control.network.NetworkRoundControl
+
+ nextPlayer() -
+Method in class jrummikub.control.RoundControl
+Set the next player as active player if the round is not finished
+ nextPlayer() -
+Method in interface jrummikub.model.IRoundState
+Changes the activePlayer to the next Player
in the list
+ nextPlayer() -
+Method in class jrummikub.model.RoundState
+
+ nextPlayerEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ nextTurn() -
+Method in interface jrummikub.model.IRoundState
+Increments the turn number
+ nextTurn() -
+Method in class jrummikub.model.RoundState
+
+ nickname -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ nickname -
+Variable in class jrummikub.control.network.NetworkSettingsControl
+
+ nicknameChanged(String, String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ noLimits -
+Variable in class jrummikub.model.GameSettings
+
+ noLimitsBox -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ noLimitsLabel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ noLimitsLabel -
+Variable in class jrummikub.view.impl.SidePanel
+
+ nonNullEquals(Object, Object) -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Checks that two objects are equal to each other and not null
+ numberOfStonesDealt -
+Variable in class jrummikub.model.GameSettings
+
+ numberOfStonesDealtLabel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ numberOfStonesDealtSpinner -
+Variable in class jrummikub.view.impl.SettingsPanel
- remove(IListener) -
-Method in interface jrummikub.util.IEvent
-Stop publishing events to a given listener
- remove(IListener1<T>) -
-Method in interface jrummikub.util.IEvent1
-Stop publishing events to a given listener
- remove(IListener2<T1, T2>) -
-Method in interface jrummikub.util.IEvent2
-Stop publishing events to a given listener
- RoundControl - Class in jrummikub.control Controller that manages a single round of rummikub RoundControl(IGameState, IView) -
-Constructor for class jrummikub.control.RoundControl
-Create a new RoundControl using the given gameState and view
@@ -160,7 +260,7 @@ Constructor for class jrummikub.control.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-15.html b/doc/index-files/index-15.html
index daaa5dc..2f23171 100644
--- a/doc/index-files/index-15.html
+++ b/doc/index-files/index-15.html
@@ -2,12 +2,12 @@
-
+
-S-Index
+O-Index
-
+
@@ -15,7 +15,7 @@ S-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="S-Index";
+ parent.document.title="O-Index";
}
}
@@ -78,157 +78,72 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-S
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+O
-setCurrentPlayerName(String) -
-Method in class jrummikub.view.impl.PlayerPanel
-Sets the current player name
- setCurrentPlayerName(String) -
-Method in class jrummikub.view.impl.StartTurnPanel
-Sets the current player name
- setCurrentPlayerName(String) -
-Method in class jrummikub.view.impl.View
+objects -
+Variable in class jrummikub.model.StoneTray
- setCurrentPlayerName(String) -
-Method in class jrummikub.view.impl.WinPanel
-Sets the name of the current player
- setCurrentPlayerName(String) -
-Method in interface jrummikub.view.IView
-Sets the current player's name
- setHandHeight(int) -
-Method in interface jrummikub.view.IHandPanel
-Set the number of stones that fit on the hand vertically
- setHandHeight(int) -
-Method in class jrummikub.view.impl.HandPanel
+objectsOverlap(E, Position, E, Position) -
+Method in class jrummikub.model.StoneTray
+Tests whether two objects overlap
+ offerButton -
+Variable in class jrummikub.view.impl.SettingsPanel
- setHandWidth(int) -
-Method in interface jrummikub.view.IHandPanel
-Set the number of stones that fit on the hand horizontally
- setHandWidth(int) -
-Method in class jrummikub.view.impl.HandPanel
+offeredGame -
+Variable in class jrummikub.control.network.ConnectionControl
- setLeftPlayerName(String) -
-Method in class jrummikub.view.impl.TablePanel
+offerGame(GameData) -
+Method in class jrummikub.control.network.ConnectionControl
- setLeftPlayerName(String) -
-Method in interface jrummikub.view.ITablePanel
-Sets the player name on the left label
- setRightPlayerName(String) -
-Method in class jrummikub.view.impl.TablePanel
+offerGame(GameData) -
+Method in interface jrummikub.control.network.IConnectionControl
- setRightPlayerName(String) -
-Method in interface jrummikub.view.ITablePanel
-Sets the player name on the right label
- setScale(float) -
-Method in class jrummikub.view.impl.StonePainter
-Sets the new grid scale
- setSelectedStones(Collection<Stone>) -
-Method in class jrummikub.view.impl.HandPanel
-Sets the stones that are to be painted selected
- setSelectedStones(Collection<Stone>) -
-Method in class jrummikub.view.impl.StoneCollectionPanel
-Sets the stones to be shown in the collection
- setSelectedStones(Collection<Stone>) -
-Method in class jrummikub.view.impl.TablePanel
-Sets the currently selected stones
- setSelectedStones(Collection<Stone>) -
-Method in class jrummikub.view.impl.View
+offerGame() -
+Method in class jrummikub.control.network.NetworkSettingsControl
- setSelectedStones(Collection<Stone>) -
-Method in interface jrummikub.view.IView
-Sets the stones that are to be painted selected
- setStones(Iterable<Pair<Stone, Position>>) -
-Method in interface jrummikub.view.IHandPanel
-Set the player's stones to display on the board
- setStones(Iterable<Pair<Stone, Position>>) -
-Method in class jrummikub.view.impl.AbstractStonePanel
-Sets the list of stones that can be clicked on
- setStones(Iterable<Pair<Stone, Position>>) -
-Method in class jrummikub.view.impl.HandPanel
+offerGameEvent -
+Variable in class jrummikub.control.network.NetworkSettingsControl
- setStoneSets(Iterable<Pair<StoneSet, Position>>) -
-Method in class jrummikub.view.impl.TablePanel
+offerGameEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
- setStoneSets(Iterable<Pair<StoneSet, Position>>) -
-Method in interface jrummikub.view.ITablePanel
-Sets the stone sets lying on the table
- setTable(ITable) -
-Method in class jrummikub.model.GameState
+oldHand -
+Variable in class jrummikub.control.turn.ITurnControl.TurnInfo
- setTable(ITable) -
-Method in interface jrummikub.model.IGameState
-Sets the current Table
- setTimeLeft(int) -
-Method in class jrummikub.view.impl.PlayerPanel
+oldTable -
+Variable in class jrummikub.control.turn.ITurnControl.TurnInfo
- setTimeLeft(int) -
-Method in interface jrummikub.view.IPlayerPanel
-Sets the time the player has left for his turn
- setTopPlayerName(String) -
-Method in class jrummikub.view.impl.TablePanel
+oneHuman() -
+Method in class jrummikub.model.GameSettings
+Check if there is only one human player
+ onResize() -
+Method in class jrummikub.view.impl.SidePanel.BottomScrollPane
- setTopPlayerName(String) -
-Method in interface jrummikub.view.ITablePanel
-Sets the player name on the top label
- size() -
-Method in class jrummikub.model.StoneSet
-Returns the number of stones in the set.
- Sizeable - Interface in jrummikub.model Objects that have a size. splitAt(int) -
-Method in class jrummikub.model.StoneSet
-Splits the StoneSet at a specified Position
and returns two new
- Stone Sets
- startGame() -
-Method in class jrummikub.control.GameControl
-Game gets started by initializing the first Round
- startRound() -
-Method in class jrummikub.control.RoundControl
-Begin the round
- startTimer() -
-Method in interface jrummikub.control.ITurnTimer
-Starts the timer
- startTimer() -
-Method in class jrummikub.control.TurnTimer
+onTable -
+Variable in class jrummikub.ai.TurnLogic.StoneState
- startTurn() -
-Method in class jrummikub.control.TurnControl
-Start the turn
- StartTurnPanel - Class in jrummikub.view.impl A panel that is displayed before a player's turn StartTurnPanel() -
-Constructor for class jrummikub.view.impl.StartTurnPanel
-Creates a new StartTurnPanel
- Stone - Class in jrummikub.model Basic Rummikub Stone Stone(StoneColor) -
-Constructor for class jrummikub.model.Stone
-Creates a joker of the given color.
- Stone(int, StoneColor) -
-Constructor for class jrummikub.model.Stone
-Creates a normal stone of a given color and value
- StoneCollectionPanel - Class in jrummikub.view.impl Implementation of the stone collection (selection) StoneCollectionPanel() -
-Constructor for class jrummikub.view.impl.StoneCollectionPanel
-Creates a new StoneCollection instance
- StoneColor - Enum in jrummikub.model Class specifying possible StoneColors StoneHeap - Class in jrummikub.model StoneHeap creates all Stone
s for a game, manages them and allows
- players to draw one or more random Stones. StoneHeap() -
-Constructor for class jrummikub.model.StoneHeap
-Creates 106 Stones according to standard rules
- StonePainter - Class in jrummikub.view.impl The StonePainter paints stones and converts between pixel and grid
- coordinates StonePainter(float) -
-Constructor for class jrummikub.view.impl.StonePainter
+openNewGameButton -
+Variable in class jrummikub.view.impl.GameListPanel
- StoneSet - Class in jrummikub.model Class managing Stone
s joined together to form sets StoneSet(Stone) -
-Constructor for class jrummikub.model.StoneSet
-Create a new single stone stone set
- StoneSet(List<Stone>) -
-Constructor for class jrummikub.model.StoneSet
-Create a stone set from a list of stones
- StoneSet.Type - Enum in jrummikub.model Validity type of the set StoneTray <E extends Sizeable > - Class in jrummikub.model A StoneTray is a collection of positioned objects (for example Stone
s
- or StoneSet
s. StoneTray() -
-Constructor for class jrummikub.model.StoneTray
+openNewGameEvent -
+Variable in class jrummikub.view.impl.GameListPanel
- StoneTray.Direction - Enum in jrummikub.model Possible move directions in case of overlapping Stones/Sets stopTimer() -
-Method in interface jrummikub.control.ITurnTimer
-Stops the timer.
- stopTimer() -
-Method in class jrummikub.control.TurnTimer
+optimize() -
+Method in class jrummikub.ai.TurnLogic
+Optimizes the solution found as long as stopped from control
+ optionsPanel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ otherClickEvent -
+Variable in class jrummikub.view.impl.StoneCollectionPanel
+
+ ownershipGranted(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ ownershipRevoked(String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
@@ -284,7 +199,7 @@ Method in class jrummikub.control.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-16.html b/doc/index-files/index-16.html
index 79588ed..db73ab4 100644
--- a/doc/index-files/index-16.html
+++ b/doc/index-files/index-16.html
@@ -2,12 +2,12 @@
-
+
-T-Index
+P-Index
-
+
@@ -15,7 +15,7 @@ T-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="T-Index";
+ parent.document.title="P-Index";
}
}
@@ -78,41 +78,240 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-T
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+P
-Table - Class in jrummikub.model Class administering the Stone
s on the game-Table Table() -
-Constructor for class jrummikub.model.Table
+paintCircle(Graphics2D, Rectangle, Color) -
+Method in class jrummikub.view.impl.StonePainter
- tableDifference(ITable, ITable) -
-Static method in class jrummikub.control.RoundControl
+paintComponent(Graphics) -
+Method in class jrummikub.view.impl.HandPanel
- TablePanel - Class in jrummikub.view.impl The implementation of the table TablePanel() -
-Constructor for class jrummikub.view.impl.TablePanel
-Creates a new Table instance
- toString() -
-Method in class jrummikub.model.Position
+paintComponent(Graphics) -
+Method in class jrummikub.view.impl.StoneCollectionPanel
- toString() -
-Method in class jrummikub.model.Stone
+paintComponent(Graphics) -
+Method in class jrummikub.view.impl.TablePanel
- toString() -
-Method in class jrummikub.model.StoneSet
+paintJoker(Graphics2D, Rectangle, Color) -
+Method in class jrummikub.view.impl.StonePainter
- TurnControl - Class in jrummikub.control Controller for a single turn made by a human player TurnControl(IHand, ITable, IView) -
-Constructor for class jrummikub.control.TurnControl
-Create a new TurnControl using a given hand (of the active player), a given
- table and a given view for user interaction.
- TurnControl(IHand, ITable, IView, ITurnTimer) -
-Constructor for class jrummikub.control.TurnControl
-Test only constructor
- TurnControl.HandStonePositionComparator - Class in jrummikub.control TurnControl.HandStonePositionComparator() -
-Constructor for class jrummikub.control.TurnControl.HandStonePositionComparator
+paintJokerFace(Graphics2D, Rectangle) -
+Method in class jrummikub.view.impl.StonePainter
- TurnTimer - Class in jrummikub.control Count-down timer used to limit the turn time TurnTimer(IView) -
-Constructor for class jrummikub.control.TurnTimer
-Create a new timer using a given view to display the current time left
+ paintStone(Graphics2D, Stone, Position, StonePainter.StoneState, boolean) -
+Method in class jrummikub.view.impl.StonePainter
+Paints a stone
+ paintStoneBackground(Graphics2D, Rectangle, Color) -
+Method in class jrummikub.view.impl.StonePainter
+
+ paintStoneSet(Graphics2D, StoneSet, Position, Area, Area) -
+Method in class jrummikub.view.impl.TablePanel
+
+ paintStoneValue(Graphics2D, Rectangle, Color, int) -
+Method in class jrummikub.view.impl.StonePainter
+
+ Pair <T1 ,T2 > - Class in jrummikub.util A pair of objects Pair(T1, T2) -
+Constructor for class jrummikub.util.Pair
+Create a new pair from two values
+ PANEL_FIRST_LINE_HEIGHT -
+Static variable in class jrummikub.view.impl.PausePanel
+
+ PANEL_FIRST_LINE_HEIGHT -
+Static variable in class jrummikub.view.impl.RoundEndPanel
+
+ PANEL_FIRST_LINE_HEIGHT -
+Static variable in class jrummikub.view.impl.StartTurnPanel
+
+ PANEL_INSET -
+Static variable in class jrummikub.view.impl.PausePanel
+
+ PANEL_INSET -
+Static variable in class jrummikub.view.impl.RoundEndPanel
+
+ PANEL_INSET -
+Static variable in class jrummikub.view.impl.StartTurnPanel
+
+ PANEL_MAX_WIDTH -
+Static variable in class jrummikub.view.impl.PausePanel
+
+ PANEL_MAX_WIDTH -
+Static variable in class jrummikub.view.impl.RoundEndPanel
+
+ PANEL_MAX_WIDTH -
+Static variable in class jrummikub.view.impl.StartTurnPanel
+
+ PANEL_SEPARATOR -
+Static variable in class jrummikub.view.impl.PausePanel
+
+ PANEL_SEPARATOR -
+Static variable in class jrummikub.view.impl.RoundEndPanel
+
+ PANEL_SEPARATOR -
+Static variable in class jrummikub.view.impl.StartTurnPanel
+
+ participantLeftEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ password -
+Variable in class jrummikub.util.LoginData
+
+ passwordField -
+Variable in class jrummikub.view.impl.LoginPanel
+
+ pauseButton -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ pauseEvent -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ pauseLabel -
+Variable in class jrummikub.view.impl.PausePanel
+
+ pauseMode -
+Variable in class jrummikub.view.impl.TablePanel
+
+ PausePanel - Class in jrummikub.view.impl A panel that is displayed before a player's turn PausePanel() -
+Constructor for class jrummikub.view.impl.PausePanel
+Creates a new StartTurnPanel
+ pausePanel -
+Variable in class jrummikub.view.impl.View
+
+ pauseStoneSets -
+Variable in class jrummikub.view.impl.TablePanel
+
+ pauseTurn() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ pauseTurn() -
+Method in class jrummikub.control.turn.AIControl
+
+ pickUp(E) -
+Method in interface jrummikub.model.IStoneTray
+Tries to pick up (remove) a given object
+ pickUp(E) -
+Method in class jrummikub.model.StoneTray
+
+ pickUpSelectedStones() -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ pickUpStone(Stone) -
+Method in interface jrummikub.model.ITable
+Removes Stone
from the Table
+ pickUpStone(Stone) -
+Method in class jrummikub.model.Table
+Removes Stone
from the Table
+ Player - Class in jrummikub.model Class managing player data. Player(PlayerSettings) -
+Constructor for class jrummikub.model.Player
+Create a new player with a given name and color
+ PLAYER_COLORS -
+Static variable in interface jrummikub.view.ISettingsPanel
+The list of player colors
+ PLAYER_PANEL_MAX_HEIGHT -
+Static variable in class jrummikub.view.impl.View
+
+ PLAYER_PANEL_RATIO -
+Static variable in class jrummikub.view.impl.View
+
+ playerColors -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ playerCountLabel -
+Variable in class jrummikub.view.impl.GameListPanel.GameDataCellRenderer
+
+ playerListPanel -
+Variable in class jrummikub.view.impl.SidePanel
+
+ playerListScrollPane -
+Variable in class jrummikub.view.impl.SidePanel
+
+ playerNamesEditable -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ playerNumber -
+Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ playerPanel -
+Variable in class jrummikub.view.impl.HandPanel
+
+ PlayerPanel - Class in jrummikub.view.impl Implementation of the player panel PlayerPanel() -
+Constructor for class jrummikub.view.impl.PlayerPanel
+Creates a new PlayerPanel instance
+ playerPanel -
+Variable in class jrummikub.view.impl.View
+
+ PlayerPanel.LeftPanelResizeListener - Class in jrummikub.view.impl PlayerPanel.LeftPanelResizeListener() -
+Constructor for class jrummikub.view.impl.PlayerPanel.LeftPanelResizeListener
+
+ PlayerPanel.RightPanelResizeListener - Class in jrummikub.view.impl PlayerPanel.RightPanelResizeListener() -
+Constructor for class jrummikub.view.impl.PlayerPanel.RightPanelResizeListener
+
+ players -
+Variable in class jrummikub.model.GameSettings
+
+ players -
+Variable in class jrummikub.model.RoundState
+
+ players -
+Variable in class jrummikub.view.impl.ScorePanel
+
+ PlayerSettings - Class in jrummikub.model The settings of a player PlayerSettings(String, Color) -
+Constructor for class jrummikub.model.PlayerSettings
+Create a new human player
+ PlayerSettings.Type - Enum in jrummikub.model Type of turn control. PlayerSettings.Type() -
+Constructor for enum jrummikub.model.PlayerSettings.Type
+
+ playerSettingsPanels -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ playerSettingsViewport -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ playerSetupPanel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ playerType -
+Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ playerTypeChoices -
+Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ playerTypeChoices -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ points -
+Variable in class jrummikub.model.Score
+
+ pop() -
+Method in class jrummikub.ai.TurnLogic
+Remove a contradicted state from the try stack, reset top
+ Position - Class in jrummikub.model Stone
Position class to determine positions on Table
or
+ Hand
Position(double, double) -
+Constructor for class jrummikub.model.Position
+Create a new position by specifying the coordinates
+ prepaintStone(Color, Color, int) -
+Method in class jrummikub.view.impl.StonePainter
+
+ prepareRound(IRoundState) -
+Method in class jrummikub.control.GameControl
+Prepare a new round by setting start player, adding listeners
+ prepareTurn() -
+Method in class jrummikub.control.network.NetworkRoundControl
+
+ prepareTurn() -
+Method in class jrummikub.control.RoundControl
+Prepare a player's turn by checking the player types and setting the
+ correct turn control
+ processPacket(Packet) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ pushes(TurnLogic.State...) -
+Method in class jrummikub.ai.TurnLogic
+Push multiple new state onto the try stack
+ putBack(Collection<Stone>) -
+Method in class jrummikub.model.StoneHeap
+Put stones back on the heap
@@ -167,7 +366,7 @@ Constructor for class jrummikub.control.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-17.html b/doc/index-files/index-17.html
index b620418..2c8effd 100644
--- a/doc/index-files/index-17.html
+++ b/doc/index-files/index-17.html
@@ -2,12 +2,12 @@
-
+
-V-Index
+Q-Index
-
+
@@ -15,7 +15,7 @@ V-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="V-Index";
+ parent.document.title="Q-Index";
}
}
@@ -78,37 +78,31 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+Q
-valueOf(String) -
-Static method in enum jrummikub.model.StoneColor
-Returns the enum constant of this type with the specified name.
- valueOf(String) -
-Static method in enum jrummikub.model.StoneSet.Type
-Returns the enum constant of this type with the specified name.
- valueOf(String) -
-Static method in enum jrummikub.model.StoneTray.Direction
-Returns the enum constant of this type with the specified name.
- values() -
-Static method in enum jrummikub.model.StoneColor
-Returns an array containing the constants of this enum type, in
-the order they are declared.
- values() -
-Static method in enum jrummikub.model.StoneSet.Type
-Returns an array containing the constants of this enum type, in
-the order they are declared.
- values() -
-Static method in enum jrummikub.model.StoneTray.Direction
-Returns an array containing the constants of this enum type, in
-the order they are declared.
- VERTICAL_BORDER -
-Static variable in class jrummikub.model.StoneSet
+quitButton -
+Variable in class jrummikub.view.impl.QuitWarningPanel
+
+ quitEvent -
+Variable in class jrummikub.view.impl.QuitWarningPanel
+
+ quitEvent -
+Variable in class jrummikub.view.impl.View
+
+ quitMode -
+Variable in class jrummikub.view.impl.QuitWarningPanel
+
+ quitWarningFrame -
+Variable in class jrummikub.view.impl.View
+
+ QuitWarningPanel - Class in jrummikub.view.impl Warning panel to inform users if their actions would end the current game QuitWarningPanel() -
+Constructor for class jrummikub.view.impl.QuitWarningPanel
+Creates new quit warning panel
+ quitWarningPanel -
+Variable in class jrummikub.view.impl.View
- View - Class in jrummikub.view.impl Implementation of the top-level view interface View() -
-Constructor for class jrummikub.view.impl.View
-Create a new instance of the view
@@ -163,7 +157,7 @@ Constructor for class jrummikub.view.impl.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-18.html b/doc/index-files/index-18.html
index 8af9f0f..d344ffa 100644
--- a/doc/index-files/index-18.html
+++ b/doc/index-files/index-18.html
@@ -2,12 +2,12 @@
-
+
-W-Index
+R-Index
-
+
@@ -15,7 +15,7 @@ W-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="W-Index";
+ parent.document.title="R-Index";
}
}
@@ -56,7 +56,7 @@ function windowTitle()
PREV LETTER
- NEXT LETTER
+ NEXT LETTER
FRAMES
NO FRAMES
@@ -78,19 +78,302 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+R
-WIDTH -
-Static variable in class jrummikub.model.Hand
-The width of the hand
- WIDTH_SCALE -
+rangeClickEvent -
+Variable in class jrummikub.view.impl.AbstractStonePanel
+
+ readyToEmit -
+Variable in class jrummikub.control.turn.AIControl
+
+ reconnectingIn(int) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.DisconnectListener
+
+ reconnectionFailed(Exception) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.DisconnectListener
+
+ reconnectionSuccessful() -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.DisconnectListener
+
+ redden(Color) -
+Static method in class jrummikub.view.impl.StonePainter
+
+ REDDEN_RATIO -
Static variable in class jrummikub.view.impl.StonePainter
-The width of one pixel in the scale of 1.0
- WinPanel - Class in jrummikub.view.impl A panel that is displayed when a player has won WinPanel() -
-Constructor for class jrummikub.view.impl.WinPanel
+
+ redeal() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ redeal() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ redeal() -
+Method in class jrummikub.control.network.NetworkRoundControl
+
+ redeal() -
+Method in class jrummikub.control.network.NetworkTurnControl
+
+ redeal() -
+Method in class jrummikub.control.RoundControl
+Redeal stones and restart round if a player was allowed to redeal and chose
+ to do so
+ redealButton -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ redealedPlayerName -
+Variable in class jrummikub.view.impl.StartTurnPanel
+
+ redealEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ redealEvent -
+Variable in class jrummikub.control.turn.AbstractTurnControl
+
+ redealEvent -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ rejectMove() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ remove() -
+Method in interface jrummikub.util.Connection
+Removes the listener
+ remove(IListener) -
+Method in class jrummikub.util.Event
+
+ remove(IListener1<T>) -
+Method in class jrummikub.util.Event1
+
+ remove(IListener2<T1, T2>) -
+Method in class jrummikub.util.Event2
+
+ remove(IListener3<T1, T2, T3>) -
+Method in class jrummikub.util.Event3
+
+ remove(IListener) -
+Method in interface jrummikub.util.IEvent
+Stop publishing events to a given listener
+ remove(IListener1<T>) -
+Method in interface jrummikub.util.IEvent1
+Stop publishing events to a given listener
+ remove(IListener2<T1, T2>) -
+Method in interface jrummikub.util.IEvent2
+Stop publishing events to a given listener
+ remove(IListener3<T1, T2, T3>) -
+Method in interface jrummikub.util.IEvent3
+Stop publishing events to a given listener
+ remove() -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ removeButton -
+Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ removeButtonsEnabled -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ removeListeners() -
+Method in class jrummikub.control.GameControl
+Removes all listeners from the connection
+ removeListeners() -
+Method in class jrummikub.control.RoundControl
+Removes all listeners form the connections
+ removeOptionPanelComponentsAndLabels() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ removePlayer(int) -
+Method in class jrummikub.control.AbstractSettingsControl
+Removes a player from the planned game
+ removePlayerEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ removePlayerSettingsPanel() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ removeUpdate(DocumentEvent) -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel.NameChangeListener
+
+ removeVacant(GameSettings) -
+Method in class jrummikub.control.network.GameOfferControl
+
+ repaintAll -
+Variable in class jrummikub.view.impl.HandPanel
+
+ replace() -
+Method in class jrummikub.ai.TurnLogic
+Remove an unsolved state, to be replaced with refined state, from the try
+ stack
+ requestGames() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ rescale(int) -
+Method in class jrummikub.view.impl.HandPanel
+Rescales the hand panel according to window size
+ rescale() -
+Method in class jrummikub.view.impl.PausePanel
+
+ rescale() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ rescale() -
+Method in class jrummikub.view.impl.RoundEndPanel
+
+ rescale() -
+Method in class jrummikub.view.impl.StartTurnPanel
+
+ rescale() -
+Method in class jrummikub.view.impl.StoneCollectionPanel
+
+ rescale() -
+Method in class jrummikub.view.impl.TablePanel
+
+ rescale() -
+Method in class jrummikub.view.impl.View
+
+ rescaleNetworkConnectionLostPanel(int, int, int, int) -
+Method in class jrummikub.view.impl.RoundEndPanel
+
+ rescaleNetworkWinPanel(int, int, int, int) -
+Method in class jrummikub.view.impl.RoundEndPanel
+
+ rescaleSubpanel(JPanel, double, double, int, int) -
+Method in class jrummikub.view.impl.View
+
+ rescaleTimeBar(int, int, int, int) -
+Method in class jrummikub.view.impl.PlayerPanel.RightPanelResizeListener
+
+ rescaleUpDownButtons(int, float) -
+Method in class jrummikub.view.impl.PlayerPanel.RightPanelResizeListener
+
+ rescaleWinPanel(int, int, int, int) -
+Method in class jrummikub.view.impl.RoundEndPanel
+
+ reset() -
+Method in class jrummikub.model.GameSettings
+Reset the game settings to the default values
+ reset() -
+Method in class jrummikub.view.impl.GameListPanel
+Resets panel if all games have been removed from list
+ resetCurrentRow() -
+Method in interface jrummikub.view.IHandPanel
+Resets the rows currently displayed
+ resetCurrentRow() -
+Method in class jrummikub.view.impl.HandPanel
+
+ resetLoginPanel() -
+Method in class jrummikub.view.impl.LoginPanel
+
+ resetLoginPanel() -
+Method in class jrummikub.view.impl.View
+
+ resetLoginPanel() -
+Method in interface jrummikub.view.IView
+Clears user input of the resetLoginPanel
+ resetPrepaint() -
+Method in class jrummikub.view.impl.StonePainter
+
+ resetTabbedPane() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ restartRound() -
+Method in class jrummikub.control.GameControl
+Restarts round after redealing
+ restartRoundEvent -
+Variable in class jrummikub.control.RoundControl
+
+ resumeTurn() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ resumeTurn() -
+Method in class jrummikub.control.turn.AIControl
+
+ rightConnectorClickEvent -
+Variable in class jrummikub.view.impl.TablePanel
+
+ rightGroup -
+Variable in class jrummikub.ai.TurnLogic.StoneState
+
+ rightHoveredConnector -
+Variable in class jrummikub.view.impl.TablePanel
+
+ rightPanel -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ rightPanelResizeListener -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ rightRun -
+Variable in class jrummikub.ai.TurnLogic.StoneState
+
+ roundControl -
+Variable in class jrummikub.control.GameControl
+
+ RoundControl - Class in jrummikub.control Controller that manages a single round of rummikub RoundControl(IRoundState, IView) -
+Constructor for class jrummikub.control.RoundControl
+Create a new RoundControl using the given roundState and view
+ RoundControl(IRoundState, IView, boolean) -
+Constructor for class jrummikub.control.RoundControl
+Create a new RoundControl using the given roundState and view
+ RoundControl.InvalidTurnInfo - Class in jrummikub.control Table, stone sets and type of an invalid turn to allow a user to track his
+ own errors RoundControl.InvalidTurnInfo(ITable, RoundControl.InvalidTurnType, Collection<StoneSet>) -
+Constructor for class jrummikub.control.RoundControl.InvalidTurnInfo
+Creates new InvalidTurnInfo
+ RoundControl.InvalidTurnType - Enum in jrummikub.control Enum summarizing the different types of invalid turns to set the correct
+ panel message RoundControl.InvalidTurnType() -
+Constructor for enum jrummikub.control.RoundControl.InvalidTurnType
+
+ RoundEndPanel - Class in jrummikub.view.impl A panel that is displayed when a player has won RoundEndPanel() -
+Constructor for class jrummikub.view.impl.RoundEndPanel
Creates a new WinPanel
+ roundEndPanel -
+Variable in class jrummikub.view.impl.View
+
+ roundStartEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ roundState -
+Variable in class jrummikub.control.network.ConnectionControl.TurnEndData
+
+ roundState -
+Variable in class jrummikub.control.RoundControl
+
+ roundState -
+Variable in class jrummikub.control.SaveControl
+
+ roundState -
+Variable in class jrummikub.control.turn.ITurnControl.TurnInfo
+
+ RoundState - Class in jrummikub.model Class managing the overall and momentary RoundState RoundState(GameSettings, GameState) -
+Constructor for class jrummikub.model.RoundState
+Create a new RoundState with an empty table
+ roundStateUpdateEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ roundStateUpdateEvent -
+Variable in class jrummikub.control.RoundControl
+
+ rowDown() -
+Method in class jrummikub.view.impl.HandPanel
+Updates panel after visible row changed
+ rowUp() -
+Method in class jrummikub.view.impl.HandPanel
+Updates panel after visible row changed
+ ruleInfoPanel -
+Variable in class jrummikub.view.impl.SidePanel.InfoPanel
+
+ run() -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner
+
+ run(Runnable) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ run() -
+Method in class jrummikub.control.network.ConnectionControl.SendRunner
+
+ runNeighbor(TurnLogic.StoneState) -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Checks whether this stone could be left to other in a run
@@ -123,7 +406,7 @@ Constructor for class jrummikub.view.impl.
PREV LETTER
- NEXT LETTER
+ NEXT LETTER
FRAMES
NO FRAMES
@@ -145,7 +428,7 @@ Constructor for class jrummikub.view.impl.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html
index 91e6ecb..24a3bdb 100644
--- a/doc/index-files/index-2.html
+++ b/doc/index-files/index-2.html
@@ -2,12 +2,12 @@
-
+
-E-Index
+B-Index
-
+
@@ -15,7 +15,7 @@ E-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="E-Index";
+ parent.document.title="B-Index";
}
}
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -77,15 +78,88 @@ function windowTitle()
-C E G J L R S V
-
-E
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+B
-enablePauseMode(boolean) -
-Method in class jrummikub.view.impl.View
+backButton -
+Variable in class jrummikub.view.impl.SettingsPanel
- enableSave(boolean) -
-Method in class jrummikub.view.impl.View
+backEvent -
+Variable in class jrummikub.control.network.AbstractGameBeginControl
+
+ backEvent -
+Variable in class jrummikub.control.network.NetworkSettingsControl
+
+ backEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ BACKGROUND -
+Static variable in class jrummikub.view.impl.HandPanel
+
+ BACKGROUND -
+Static variable in class jrummikub.view.impl.StoneCollectionPanel
+
+ BACKGROUND -
+Static variable in class jrummikub.view.impl.TablePanel
+
+ BACKGROUND_COLOR -
+Static variable in class jrummikub.view.impl.StonePainter
+
+ backToLoginEvent -
+Variable in class jrummikub.control.network.NetworkControl
+
+ banned(String, String, String) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ bestState -
+Variable in class jrummikub.ai.TurnLogic
+
+ bottomPanelType -
+Variable in class jrummikub.view.impl.View
+
+ branch() -
+Method in class jrummikub.ai.TurnLogic
+Refine the currently unsolved top stack state
+ branchColor(int) -
+Method in class jrummikub.ai.TurnLogic
+Create states for all possible colors of stone i
+ branchLeftGroup(int, TurnLogic.StoneState) -
+Method in class jrummikub.ai.TurnLogic
+Create states for all possible left group neighbors of stone i
+ branchLeftRun(int, TurnLogic.StoneState) -
+Method in class jrummikub.ai.TurnLogic
+Create states for all possible left run neighbors of stone i
+ branchOnHand(int) -
+Method in class jrummikub.ai.TurnLogic
+Create states with stone i on the table and stone i on the hand
+ branchRightGroup(int, TurnLogic.StoneState) -
+Method in class jrummikub.ai.TurnLogic
+Create states for all possible right group neighbors of stone i
+ branchRightRun(int, TurnLogic.StoneState) -
+Method in class jrummikub.ai.TurnLogic
+Create states for all possible right run neighbors of stone i
+ branchValue(int) -
+Method in class jrummikub.ai.TurnLogic
+Create states for all possible values of stone i
+ breakSymmetries(HashSet<Integer>) -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Try to break symmetries between exchangeable stones to reduce the
+ state space
+ BRIGHT_BACKGROUND -
+Static variable in class jrummikub.view.impl.TablePanel
+
+ brighter(Color) -
+Static method in class jrummikub.view.impl.StonePainter
+
+ BRIGHTER_SCALE -
+Static variable in class jrummikub.view.impl.StonePainter
+
+ buttonEvent -
+Variable in class jrummikub.view.impl.StartTurnPanel
+
+ buttonPanel -
+Variable in class jrummikub.view.impl.SettingsPanel
@@ -100,7 +174,8 @@ Method in class jrummikub.view.impl.
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -140,7 +215,7 @@ Method in class jrummikub.view.impl.
-C E G J L R S V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html
index 7717b0c..bf7fbce 100644
--- a/doc/index-files/index-3.html
+++ b/doc/index-files/index-3.html
@@ -2,12 +2,12 @@
-
+
-G-Index
+C-Index
-
+
@@ -15,7 +15,7 @@ G-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="G-Index";
+ parent.document.title="C-Index";
}
}
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -77,82 +78,549 @@ function windowTitle()
-C E G J L R S V
-
-G
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+C
-getAcknowledgeConnectionLostEvent() -
+calculatePosition(int, int) -
+Method in class jrummikub.view.impl.StonePainter
+
+ calculateTableExtent() -
+Method in class jrummikub.view.impl.TablePanel
+
+ cancelButton -
+Variable in class jrummikub.view.impl.ConnectPanel
+
+ cancelButton -
+Variable in class jrummikub.view.impl.GameListPanel
+
+ cancelButton -
+Variable in class jrummikub.view.impl.QuitWarningPanel
+
+ cancelEvent -
+Variable in class jrummikub.control.LoginControl
+
+ cancelEvent -
+Variable in class jrummikub.view.impl.ConnectPanel
+
+ cancelEvent -
+Variable in class jrummikub.view.impl.GameListPanel
+
+ cancelEvent -
+Variable in class jrummikub.view.impl.LoginPanel
+
+ cancelEvent -
+Variable in class jrummikub.view.impl.QuitWarningPanel
+
+ canRowDown() -
+Method in class jrummikub.view.impl.HandPanel
+Is there a lower row than the current row
+ canRowUp() -
+Method in class jrummikub.view.impl.HandPanel
+Is there a higher row than the current row
+ changeColor(Color) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ changeColor(Color) -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ changeColor(Color) -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ changeColorEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ changedStones -
+Variable in class jrummikub.ai.TurnLogic.State
+The stones that were changed since the previous state
+ changedUpdate(DocumentEvent) -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel.NameChangeListener
+
+ changeHighestValueEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeInitialMeldThresholdEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeJokerNumberEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeName() -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ changeNoLimitsEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeNumberOfStonesDealtEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changePlayerColorEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changePlayerNameEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changePlayerTypeEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeSeeHandSizeEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeStoneColorsEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeStoneSetNumberEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeTimeEvent -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ changeType() -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ channelName -
+Variable in class jrummikub.util.LoginData
+
+ channelNameField -
+Variable in class jrummikub.view.impl.LoginPanel
+
+ checkErrors() -
+Method in class jrummikub.control.AbstractSettingsControl
+Check options leading to errors
+ checkGroupRunExclusive() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+If we need to be in a group and in a run at the same time we have a
+ contradiction
+ checkJokerColor() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Try to derive the color of a joker stone from it's neighbor(s)
+ checkJokerCount() -
+Method in class jrummikub.ai.TurnLogic.State
+Checks that not more jokers than available are needed
+ checkJokerValue() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Try to derive the value of a joker stone from it's neighbor(s)
+ checkLonelyStone() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+If we have no group/run neighbors and no left/right neighbors but are
+ on the table we need to have a neighbor for the remaining case
+ checkName() -
+Method in class jrummikub.control.AbstractSettingsControl
+Checks if unique player name is present for each player
+ checkNeighborStoneNeeded() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+If we have a neighbor that is on the end of a set we can't be on the
+ end either
+ checkPlayers() -
+Method in class jrummikub.control.network.GameOfferControl
+
+ checkScoreAndPoints() -
+Method in class jrummikub.ai.TurnLogic.State
+Checks that enough points and a high enough score can be reached
+ checkSettings() -
+Method in class jrummikub.control.AbstractSettingsControl
+Checks the settings for ambiguous or missing data and sets error/warning
+ if necessary
+ checkSetTypeKnown() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+If this stone has to be in a group it can't be part of a run and the
+ other way around
+ checkState() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Enforce local rule consistency
+ checkStoneCanBeOnTable() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+When we need to have some kind of neighbor but there isn't any
+ possible one we're either not on the table or if we have to have a
+ contradiction
+ checkTurn() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ checkWarnings() -
+Method in class jrummikub.control.AbstractSettingsControl
+Check all options and player settings for entries causing warnings
+ chooser -
+Variable in class jrummikub.view.impl.View
+
+ CIRCLE_POS -
+Static variable in class jrummikub.view.impl.StonePainter
+
+ CIRCLE_WIDTH -
+Static variable in class jrummikub.view.impl.StonePainter
+
+ classify(GameSettings) -
+Method in class jrummikub.model.StoneSet
+Test for rule conflict within the StoneSet and determine whether the set is
+ a group or a run
+ classifyJokersOnly(GameSettings) -
+Method in class jrummikub.model.StoneSet
+Test for rule conflict within a StoneSet with jokers only and determine
+ whether the set is a group or a run
+ cleanUp() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ cleanUp() -
+Method in class jrummikub.control.turn.AIControl
+
+ clearView() -
Method in class jrummikub.view.impl.View
- getAcknowledgeInvalidEvent() -
+clearView() -
+Method in interface jrummikub.view.IView
+Hides all view elements and panels except for the cleared table and an
+ empty hand panel
+ clickAt(Point, int, boolean, boolean, boolean) -
+Method in class jrummikub.view.impl.AbstractStonePanel
+clickAt is called when a click has occurred
+ clickEvent -
+Variable in class jrummikub.view.impl.AbstractStonePanel
+
+ clone() -
+Method in interface jrummikub.model.IStoneTray
+Create a clone of the StoneTray
+ clone() -
+Method in class jrummikub.model.StoneTray
+
+ COLLECTION_GAP -
+Variable in class jrummikub.view.impl.TablePanel
+
+ COLLECTION_RATIO -
+Variable in class jrummikub.view.impl.TablePanel
+
+ collectionSetClick(Stone, boolean) -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ collectionStoneClick(Stone, boolean) -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ color -
+Variable in class jrummikub.ai.TurnLogic.StoneState
+
+ color -
+Variable in class jrummikub.model.PlayerSettings
+
+ color -
+Variable in class jrummikub.model.Stone
+
+ colorButton -
+Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ colorButtons -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ colorChangable -
+Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ colorLabel -
+Variable in class jrummikub.view.impl.SidePanel
+
+ colorLabelPanel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ colorSelectionPanel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ comparator -
+Static variable in class jrummikub.model.Hand
+The measure to compare the stones by
+ compare(Stone, Stone) -
+Method in class jrummikub.control.turn.HumanTurnControl.GroupComparator
+
+ compare(Pair<Stone, Position>, Pair<Stone, Position>) -
+Method in class jrummikub.control.turn.HumanTurnControl.HandStonePositionComparator
+
+ compare(Stone, Stone) -
+Method in class jrummikub.control.turn.HumanTurnControl.RunComparator
+
+ compareColors(Stone, Stone) -
+Static method in class jrummikub.control.turn.HumanTurnControl
+
+ compareJokers(Stone, Stone) -
+Static method in class jrummikub.control.turn.HumanTurnControl
+
+ compareValues(Stone, Stone) -
+Static method in class jrummikub.control.turn.HumanTurnControl
+
+ componentResized(ComponentEvent) -
+Method in class jrummikub.view.impl.PlayerPanel.LeftPanelResizeListener
+
+ componentResized(ComponentEvent) -
+Method in class jrummikub.view.impl.PlayerPanel.RightPanelResizeListener
+
+ compute() -
+Method in class jrummikub.control.turn.AIControl
+
+ connect() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ connect() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ connectedEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ connection -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ Connection - Interface in jrummikub.util A Connection object can be used to remove a listener from a event connectionClosed() -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.DisconnectListener
+
+ connectionClosedOnError(Exception) -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner.DisconnectListener
+
+ connectionControl -
+Variable in class jrummikub.control.network.AbstractGameBeginControl
+
+ ConnectionControl - Class in jrummikub.control.network Connection control managing network connections, messages and events ConnectionControl(LoginData) -
+Constructor for class jrummikub.control.network.ConnectionControl
+Creates new connection control
+ connectionControl -
+Variable in class jrummikub.control.network.NetworkControl
+
+ connectionControl -
+Variable in class jrummikub.control.network.NetworkGameControl
+
+ connectionControl -
+Variable in class jrummikub.control.network.NetworkRoundControl
+
+ connectionControl -
+Variable in class jrummikub.control.network.NetworkTurnControl
+
+ ConnectionControl.ConnectRunner - Class in jrummikub.control.network ConnectionControl.ConnectRunner() -
+Constructor for class jrummikub.control.network.ConnectionControl.ConnectRunner
+
+ ConnectionControl.ConnectRunner.DisconnectListener - Class in jrummikub.control.network ConnectionControl.ConnectRunner.DisconnectListener() -
+Constructor for class jrummikub.control.network.ConnectionControl.ConnectRunner.DisconnectListener
+
+ ConnectionControl.ConnectRunner.LeaveListener - Class in jrummikub.control.network ConnectionControl.ConnectRunner.LeaveListener() -
+Constructor for class jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener
+
+ ConnectionControl.SendRunner - Class in jrummikub.control.network ConnectionControl.SendRunner() -
+Constructor for class jrummikub.control.network.ConnectionControl.SendRunner
+
+ ConnectionControl.TurnEndData - Class in jrummikub.control.network ConnectionControl.TurnEndData(IRoundState, RoundControl.InvalidTurnInfo) -
+Constructor for class jrummikub.control.network.ConnectionControl.TurnEndData
+
+ connectionFailedEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ connectionLost() -
+Method in class jrummikub.control.network.NetworkGameControl
+
+ connectionLostEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ connectionLostLabel -
+Variable in class jrummikub.view.impl.RoundEndPanel
+
+ connections -
+Variable in class jrummikub.control.AbstractSettingsControl
+
+ connections -
+Variable in class jrummikub.control.GameControl
+
+ connections -
+Variable in class jrummikub.control.LoginControl
+
+ connections -
+Variable in class jrummikub.control.network.AbstractGameBeginControl
+
+ connections -
+Variable in class jrummikub.control.network.NetworkControl
+
+ connections -
+Variable in class jrummikub.control.RoundControl
+
+ connections -
+Variable in class jrummikub.control.turn.AbstractTurnControl
+
+ CONNECTOR_WIDTH -
+Static variable in class jrummikub.view.impl.TablePanel
+
+ connectorClick(StoneSet, boolean) -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ ConnectPanel - Class in jrummikub.view.impl Panel shown during network connecting process and showing errors ConnectPanel() -
+Constructor for class jrummikub.view.impl.ConnectPanel
+Creates new connection panel
+ connectPanel -
+Variable in class jrummikub.view.impl.View
+
+ contains(E) -
+Method in interface jrummikub.model.IStoneTray
+Search for an object within the stone tray
+ contains(E) -
+Method in class jrummikub.model.StoneTray
+
+ content -
+Variable in class jrummikub.view.impl.SidePanel.BottomScrollPane
+
+ continueGame(GameState, IRoundState) -
+Method in class jrummikub.control.GameControl
+Continues game after loading
+ continueRound() -
+Method in class jrummikub.control.RoundControl
+Continue a saved round after loading
+ countStones(List<Stone>) -
+Static method in class jrummikub.model.Hand
+Counts the numbers of stones
+ create() -
+Method in class jrummikub.control.turn.TurnControlFactory
+Creates a new turn control instance
+ createButton(JPanel, String, ActionListener) -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ createButton(String, Event) -
+Method in class jrummikub.view.impl.QuitWarningPanel
+
+ createButton(String, Event) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ createButtons() -
+Method in class jrummikub.view.impl.RoundEndPanel
+
+ createColorButton(StoneColor) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ createColorIcon(Color, int, int) -
+Static method in class jrummikub.view.impl.ImageUtil
+
+ createColorSelectionPanel() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ createControls(PlayerSettings) -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ createDecorationStones() -
Method in class jrummikub.view.impl.View
- getConnectPanel() -
+createFileChooser() -
Method in class jrummikub.view.impl.View
- getEndPauseEvent() -
+createGameControl(GameSettings, boolean) -
+Method in class jrummikub.control.network.NetworkControl
+
+ createGameInfoPanel() -
+Method in class jrummikub.view.impl.SidePanel
+
+ createGameJoinControl() -
+Method in class jrummikub.control.network.NetworkControl
+
+ createGameList() -
+Method in class jrummikub.view.impl.GameListPanel
+Creates the game list to be displayed in the panel
+ createGameOfferControl(GameSettings) -
+Method in class jrummikub.control.network.NetworkControl
+
+ createInputFields() -
+Method in class jrummikub.view.impl.LoginPanel
+
+ createJRummikubExtension() -
+Static method in class jrummikub.control.network.ConnectionControl
+
+ createLabels() -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ createLayeredPane() -
Method in class jrummikub.view.impl.View
- getEndProgramEvent() -
+createLeftPanel() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ createLoginControl(boolean) -
+Method in class jrummikub.control.ApplicationControl
+Create a new network login control
+ createMainLayer() -
Method in class jrummikub.view.impl.View
- getGameListPanel() -
+createMenuBar() -
Method in class jrummikub.view.impl.View
- getHandPanel() -
+createMenuItem(String, Event) -
Method in class jrummikub.view.impl.View
- getLoadEvent() -
+createMessage(PacketExtension) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ createNetworkControl(LoginData) -
+Method in class jrummikub.control.ApplicationControl
+Create a new network game control
+ createOptionCheckbox(Event1<Boolean>) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ createOptionsPanel() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ createOptionSpinner(int, int, int, Event1<Integer>) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ createPauseIcon(int) -
+Static method in class jrummikub.view.impl.ImageUtil
+
+ createPauseStoneSets() -
+Method in class jrummikub.view.impl.TablePanel
+
+ createPlayerSetupPanel() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ createRightPanel() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ createRightPanelButtons() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ createRoundControl(IRoundState) -
+Method in class jrummikub.control.GameControl
+Creates a new round control with the specified round state
+ createRoundControl(IRoundState) -
+Method in class jrummikub.control.network.NetworkGameControl
+
+ createRoundState() -
+Method in class jrummikub.control.GameControl
+Creates a new round State
+ createRoundState() -
+Method in class jrummikub.control.network.NetworkGameControl
+
+ createRuleInfoPanel() -
+Method in class jrummikub.view.impl.SidePanel
+
+ createRuleLine(JPanel, String, int) -
+Method in class jrummikub.view.impl.SidePanel
+
+ createSettingsControl() -
+Method in class jrummikub.control.network.NetworkControl
+
+ createSettingsPanel() -
Method in class jrummikub.view.impl.View
- getLoadFileEvent() -
-Method in class jrummikub.view.impl.View
+createTurnControl() -
+Method in class jrummikub.control.network.NetworkRoundControl
- getLoginPanel() -
-Method in class jrummikub.view.impl.View
+createTurnControl() -
+Method in class jrummikub.control.RoundControl
+Creates new turn control of the specified type
+ currentGame -
+Variable in class jrummikub.control.network.ConnectionControl
- getMenuNewGameEvent() -
-Method in class jrummikub.view.impl.View
+currentlyActive -
+Variable in class jrummikub.control.network.NetworkRoundControl
- getNetworkGameEvent() -
-Method in class jrummikub.view.impl.View
+currentPlayerColor -
+Variable in class jrummikub.view.impl.StartTurnPanel
- getNewGameEvent() -
-Method in class jrummikub.view.impl.View
+currentPlayerName -
+Variable in class jrummikub.view.impl.StartTurnPanel
- getNewRoundEvent() -
-Method in class jrummikub.view.impl.View
+currentPlayerNameLabel -
+Variable in class jrummikub.view.impl.PlayerPanel
- getPauseEvent() -
-Method in class jrummikub.view.impl.View
-
- getPlayerPanel() -
-Method in class jrummikub.view.impl.View
-
- getQuitEvent() -
-Method in class jrummikub.view.impl.View
-
- getQuitWarningPanel() -
-Method in class jrummikub.view.impl.View
-
- getSaveEvent() -
-Method in class jrummikub.view.impl.View
-
- getScorePanel() -
-Method in class jrummikub.view.impl.View
-
- getSettingsPanel() -
-Method in class jrummikub.view.impl.View
-
- getSidePanel() -
-Method in class jrummikub.view.impl.View
-
- getStartTurnEvent() -
-Method in class jrummikub.view.impl.View
-
- getTablePanel() -
-Method in class jrummikub.view.impl.View
+currentRow -
+Variable in class jrummikub.view.impl.HandPanel
+ cycleStep(Integer, Integer) -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Checks whether a and b are consecutive integers modulo highest value
+ or either i snull
@@ -166,7 +634,8 @@ Method in class jrummikub.view.impl.
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -206,7 +675,7 @@ Method in class jrummikub.view.impl.
-C E G J L R S V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html
index 9ffe614..26f0ff6 100644
--- a/doc/index-files/index-4.html
+++ b/doc/index-files/index-4.html
@@ -2,12 +2,12 @@
-
+
-J-Index
+D-Index
-
+
@@ -15,7 +15,7 @@ J-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="J-Index";
+ parent.document.title="D-Index";
}
}
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -77,11 +78,115 @@ function windowTitle()
-C E G J L R S V
-
-J
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+D
-jrummikub.view.impl - package jrummikub.view.impl
+DARK_BACKGROUND -
+Static variable in class jrummikub.view.impl.HandPanel
+
+ DARK_BACKGROUND -
+Static variable in class jrummikub.view.impl.StoneCollectionPanel
+
+ DARK_BACKGROUND -
+Static variable in class jrummikub.view.impl.TablePanel
+
+ deal() -
+Method in class jrummikub.control.network.NetworkRoundControl
+
+ deal() -
+Method in class jrummikub.control.RoundControl
+Deal each player the number of stones specified in the game settings
+ (numberOfStonesDealt)
+ dealPenalty(int) -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ dealStone() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ dealStones(int) -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ DedicatedServer - Class in jrummikub.server Implements a simple XMPP server with a global server password DedicatedServer(String) -
+Constructor for class jrummikub.server.DedicatedServer
+Creates a new dedicated server with the specified password
+ DedicatedServer.ServerPasswordAuthorization - Class in jrummikub.server Allow authorization using a single password for all users DedicatedServer.ServerPasswordAuthorization() -
+Constructor for class jrummikub.server.DedicatedServer.ServerPasswordAuthorization
+
+ DedicatedServer.ServerStatus - Enum in jrummikub.server Result of server startup attempt DedicatedServer.ServerStatus() -
+Constructor for enum jrummikub.server.DedicatedServer.ServerStatus
+
+ DEFAULT_PASSWORD -
+Static variable in class jrummikub.view.impl.LoginPanel
+
+ DEFAULT_WIDTH -
+Static variable in class jrummikub.view.impl.StonePainter
+
+ defaultStones -
+Variable in class jrummikub.view.impl.StonePainter
+
+ disconnect() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ disconnect() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ doConnect() -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner
+
+ doFindNickname() -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner
+
+ doJoin() -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner
+
+ doLogin() -
+Method in class jrummikub.control.network.ConnectionControl.ConnectRunner
+
+ done() -
+Method in class jrummikub.ai.TurnLogic
+Done with modifying the try stack, reset top
+ doNotMoveExistingSets(List<StoneSet>) -
+Method in class jrummikub.control.turn.AIControl
+
+ doPrepareTurn() -
+Method in class jrummikub.control.RoundControl
+Prepare turn by setting the view components
+ doSetBottomPanel(IView.BottomPanelType) -
+Method in class jrummikub.view.impl.View
+
+ doStartTurn() -
+Method in class jrummikub.control.network.NetworkTurnControl
+
+ doStartTurn() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ doStartTurn() -
+Method in class jrummikub.control.turn.AIControl
+
+ doStartTurn() -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ drawStone() -
+Method in class jrummikub.model.StoneHeap
+Removes random Stone
from the heap and returns it
+ drawStones(int) -
+Method in class jrummikub.model.StoneHeap
+Removes several Stone
s from the heap and returns them
+ drop(E, Position) -
+Method in interface jrummikub.model.IStoneTray
+Adds object to the tray
+ drop(E, Position) -
+Method in class jrummikub.model.StoneTray
+
+ drop(E, Position, StoneTray.Direction) -
+Method in class jrummikub.model.StoneTray
+Subroutine to "drop" to consider and determine the direction the objects
+ dropped one collides with position-wise evade in
+ dropUnchecked(E, Position, StoneTray.Direction) -
+Method in class jrummikub.model.StoneTray
+Subroutine to "drop" to execute the actual drop
+
@@ -94,7 +199,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -134,7 +240,7 @@ function windowTitle()
-C E G J L R S V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html
index 1f93e5c..f099798 100644
--- a/doc/index-files/index-5.html
+++ b/doc/index-files/index-5.html
@@ -2,12 +2,12 @@
-
+
-L-Index
+E-Index
-
+
@@ -15,7 +15,7 @@ L-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="L-Index";
+ parent.document.title="E-Index";
}
}
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -77,13 +78,175 @@ function windowTitle()
-C E G J L R S V
-
-L
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+E
-load() -
+ELEMENT_NAME -
+Static variable in class jrummikub.control.network.ConnectionControl
+
+ emit() -
+Method in class jrummikub.util.Event
+Generate a single event
+ emit(T) -
+Method in class jrummikub.util.Event1
+Generate a single event
+ emit(T1, T2) -
+Method in class jrummikub.util.Event2
+Generate a single event
+ emit(T1, T2, T3) -
+Method in class jrummikub.util.Event3
+Generate a single event
+ emitColorChangeEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ emitEndOfTurn() -
+Method in class jrummikub.control.turn.AIControl
+
+ emitLater(Event) -
+Static method in class jrummikub.control.network.ConnectionControl
+
+ emitLater(Event1<T>, T) -
+Static method in class jrummikub.control.network.ConnectionControl
+
+ EMPTY_ICON -
+Static variable in class jrummikub.view.impl.ScorePanel
+
+ enableAddPlayerButton(boolean) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ enableAddPlayerButton(boolean) -
+Method in interface jrummikub.view.ISettingsPanel
+Enables or disables the add player button
+ enableButtons(boolean) -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ enableOptions(boolean) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ enablePauseMode(boolean) -
+Method in class jrummikub.view.impl.TablePanel
+
+ enablePauseMode(boolean) -
Method in class jrummikub.view.impl.View
+ enablePauseMode(boolean) -
+Method in interface jrummikub.view.IView
+Enable/disable pause mode
+ enableRemoveButton(boolean) -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ enableRemovePlayerButtons(List<Boolean>) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ enableRemovePlayerButtons(List<Boolean>) -
+Method in interface jrummikub.view.ISettingsPanel
+Enables or disables the remove player buttons
+ enableSave(boolean) -
+Method in class jrummikub.view.impl.View
+
+ enableSave(boolean) -
+Method in interface jrummikub.view.IView
+Enables/disables saving in menu bar
+ enableStartGameButton(boolean) -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ enableStartGameButton(boolean) -
+Method in interface jrummikub.view.ISettingsPanel
+Enables or disables the start game button
+ endGame() -
+Method in class jrummikub.control.GameControl
+Ends the running game
+ endOfGameEvent -
+Variable in class jrummikub.control.GameControl
+
+ endOfRound(Score) -
+Method in class jrummikub.control.GameControl
+Sets the score and default values for saving when round ends
+ endOfRound() -
+Method in class jrummikub.control.RoundControl
+Ends the current round and emits an event setting the score
+ endOfRoundEvent -
+Variable in class jrummikub.control.RoundControl
+
+ endOfTurn(RoundControl.InvalidTurnInfo) -
+Method in class jrummikub.control.network.NetworkRoundControl
+
+ endOfTurn(IRoundState, RoundControl.InvalidTurnInfo) -
+Method in class jrummikub.control.network.NetworkTurnControl
+
+ endOfTurn(RoundControl.InvalidTurnInfo) -
+Method in class jrummikub.control.RoundControl
+End the players turn
+ endOfTurn(boolean) -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ endOfTurnEvent -
+Variable in class jrummikub.control.turn.AbstractTurnControl
+
+ endPauseButton -
+Variable in class jrummikub.view.impl.PausePanel
+
+ endPauseEvent -
+Variable in class jrummikub.view.impl.PausePanel
+
+ endProgram() -
+Method in class jrummikub.control.GameControl
+Exits System without warnings if no game control is active
+ endProgramButton -
+Variable in class jrummikub.view.impl.RoundEndPanel
+
+ endProgramEvent -
+Variable in class jrummikub.view.impl.RoundEndPanel
+
+ endTurn(IRoundState, RoundControl.InvalidTurnInfo) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ endTurn(IRoundState, RoundControl.InvalidTurnInfo) -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ endTurn() -
+Method in class jrummikub.control.turn.AIControl
+
+ endTurnButton -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ endTurnEvent -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ equals(Object) -
+Method in class jrummikub.model.Position
+
+ equals(Object) -
+Method in class jrummikub.util.Pair
+
+ errorMessageLabel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ even(double) -
+Static method in class jrummikub.view.impl.StonePainter
+
+ even(double) -
+Static method in class jrummikub.view.impl.View
+
+ Event - Class in jrummikub.util Simple parameterless event generator Event() -
+Constructor for class jrummikub.util.Event
+
+ Event1 <T > - Class in jrummikub.util Simple single parameter event generator Event1() -
+Constructor for class jrummikub.util.Event1
+
+ Event2 <T1 ,T2 > - Class in jrummikub.util Simple single parameter event generator Event2() -
+Constructor for class jrummikub.util.Event2
+
+ Event3 <T1 ,T2 ,T3 > - Class in jrummikub.util Simple single parameter event generator Event3() -
+Constructor for class jrummikub.util.Event3
+
+ executeTurn() -
+Method in class jrummikub.control.turn.AIControl
+
+ extraLabel -
+Variable in class jrummikub.view.impl.StartTurnPanel
+
@@ -97,7 +260,8 @@ Method in class jrummikub.view.impl.
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -137,7 +301,7 @@ Method in class jrummikub.view.impl.
-C E G J L R S V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html
index 94713e1..541c5b5 100644
--- a/doc/index-files/index-6.html
+++ b/doc/index-files/index-6.html
@@ -2,12 +2,12 @@
-
+
-R-Index
+F-Index
-
+
@@ -15,7 +15,7 @@ R-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="R-Index";
+ parent.document.title="F-Index";
}
}
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -77,12 +78,46 @@ function windowTitle()
-C E G J L R S V
-
-R
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+F
-resetLoginPanel() -
-Method in class jrummikub.view.impl.View
+FACE_WIDTH -
+Static variable in class jrummikub.view.impl.StonePainter
+
+ findStoneInfo(Stone) -
+Method in class jrummikub.model.Table
+Finds Table.StoneInfo
+ findStoneSet(Stone) -
+Method in interface jrummikub.model.ITable
+Finds the StoneSet
containing the given Stone
+ findStoneSet(Stone) -
+Method in class jrummikub.model.Table
+
+ findUnusedColor() -
+Method in class jrummikub.control.AbstractSettingsControl
+Finds the next unused player color
+ first -
+Variable in class jrummikub.util.Pair
+
+ firstRoundFirstPlayer -
+Variable in class jrummikub.model.GameState
+
+ fixGameSettings(GameSettings) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ fixInvalidDrop(Stone, Position, StoneTray.Direction) -
+Method in class jrummikub.model.Hand
+
+ fixInvalidDrop(E, Position, StoneTray.Direction) -
+Method in class jrummikub.model.StoneTray
+Checks whether the object may be placed on the given position, computes
+ new position if not
+ foobar -
+Variable in class jrummikub.view.impl.ConnectPanel
+
+ fromTable -
+Variable in class jrummikub.ai.TurnLogic.StoneState
@@ -97,7 +132,8 @@ Method in class jrummikub.view.impl.
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -137,7 +173,7 @@ Method in class jrummikub.view.impl.
-C E G J L R S V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html
index af1bcbf..f06aa79 100644
--- a/doc/index-files/index-7.html
+++ b/doc/index-files/index-7.html
@@ -2,12 +2,12 @@
-
+
-S-Index
+G-Index
-
+
@@ -15,7 +15,7 @@ S-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="S-Index";
+ parent.document.title="G-Index";
}
}
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -77,73 +78,1172 @@ function windowTitle()
-C E G J L R S V
-
-S
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+G
-setBottomPanel(IView.BottomPanelType) -
+gameControl -
+Variable in class jrummikub.control.ApplicationControl
+
+ GameControl - Class in jrummikub.control Controls a Game, at some point including all Rounds, starts new Rounds GameControl(GameSettings, SaveControl, IView) -
+Constructor for class jrummikub.control.GameControl
+Constructor
+ gameControl -
+Variable in class jrummikub.control.network.NetworkControl
+
+ gameData -
+Variable in class jrummikub.control.network.AbstractGameBeginControl
+
+ GameData - Class in jrummikub.util Class summarizing the game data important for unique and sensible network
+ representation and use GameData(UUID, GameSettings) -
+Constructor for class jrummikub.util.GameData
+Creates new game data
+ GameData(UUID, GameSettings, String) -
+Constructor for class jrummikub.util.GameData
+Creates new game data
+ gameID -
+Variable in class jrummikub.util.GameData
+
+ gameInfoPanel -
+Variable in class jrummikub.view.impl.SidePanel.InfoPanel
+
+ gameJoinAckEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ GameJoinControl - Class in jrummikub.control.network Control for joining a network game GameJoinControl(IConnectionControl, GameData, IView) -
+Constructor for class jrummikub.control.network.GameJoinControl
+Creates new game join control
+ gameJoinControl -
+Variable in class jrummikub.control.network.NetworkControl
+
+ gameJoinEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ gameLeaveEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ gameList -
+Variable in class jrummikub.view.impl.GameListPanel
+
+ GameListPanel - Class in jrummikub.view.impl GameListPanel() -
+Constructor for class jrummikub.view.impl.GameListPanel
+Creates new game list panel
+ gameListPanel -
+Variable in class jrummikub.view.impl.View
+
+ GameListPanel.GameDataCellRenderer - Class in jrummikub.view.impl Class presenting the game data in a readable way GameListPanel.GameDataCellRenderer() -
+Constructor for class jrummikub.view.impl.GameListPanel.GameDataCellRenderer
+Create new game data cell renderer
+ gameMap -
+Variable in class jrummikub.control.network.NetworkControl
+
+ GameOfferControl - Class in jrummikub.control.network Control for network game host GameOfferControl(IConnectionControl, GameSettings, IView) -
+Constructor for class jrummikub.control.network.GameOfferControl
+Creates new game offer control
+ gameOfferControl -
+Variable in class jrummikub.control.network.NetworkControl
+
+ gameOfferEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ games -
+Variable in class jrummikub.control.network.NetworkControl
+
+ games -
+Variable in class jrummikub.view.impl.GameListPanel
+
+ gameSettings -
+Variable in class jrummikub.control.GameControl
+
+ gameSettings -
+Variable in class jrummikub.control.SaveControl
+
+ GameSettings - Class in jrummikub.model The overall game settings GameSettings() -
+Constructor for class jrummikub.model.GameSettings
+Creates new GameSettings with default values
+ gameSettings -
+Variable in class jrummikub.model.RoundState
+
+ gameSettings -
+Variable in class jrummikub.model.Table
+
+ gameSettings -
+Variable in class jrummikub.util.GameData
+
+ gameSettings -
+Variable in class jrummikub.view.impl.SidePanel
+
+ gameStartEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ gameStartEvent -
+Variable in class jrummikub.control.network.GameJoinControl
+
+ gameStartEvent -
+Variable in class jrummikub.control.network.GameOfferControl
+
+ gameState -
+Variable in class jrummikub.control.GameControl
+
+ gameState -
+Variable in class jrummikub.control.SaveControl
+
+ GameState - Class in jrummikub.model Class that stores information for a game of multiple rounds GameState() -
+Constructor for class jrummikub.model.GameState
+
+ gameState -
+Variable in class jrummikub.model.RoundState
+
+ gameWithdrawalEvent -
+Variable in class jrummikub.control.network.ConnectionControl
+
+ generator -
+Variable in class jrummikub.model.StoneHeap
+
+ get(int) -
+Method in class jrummikub.model.StoneSet
+Returns the i-th stone of the set (starting with 0)
+ getAccumulatedScore() -
+Method in class jrummikub.model.GameState
+Calculated the accumulated score over the played rounds
+ getAcknowledgeConnectionLostEvent() -
+Method in class jrummikub.view.impl.StartTurnPanel
+
+ getAcknowledgeConnectionLostEvent() -
Method in class jrummikub.view.impl.View
- setCurrentPlayerColor(Color) -
+getAcknowledgeConnectionLostEvent() -
+Method in interface jrummikub.view.IView
+The acknoledge connection lost event is emitted when the user has
+ acknowledged that the network connection was lost
+ getAcknowledgeInvalidEvent() -
+Method in class jrummikub.view.impl.StartTurnPanel
+
+ getAcknowledgeInvalidEvent() -
Method in class jrummikub.view.impl.View
- setCurrentPlayerHasLaidOut(boolean) -
+getAcknowledgeInvalidEvent() -
+Method in interface jrummikub.view.IView
+The start turn event is emitted when the player knows what invalid stones
+ he played
+ getActivePlayer() -
+Method in interface jrummikub.model.IRoundState
+Returns the currently active player
+ getActivePlayer() -
+Method in class jrummikub.model.RoundState
+
+ getAddPlayerEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getAddPlayerEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The add player event is emitted when the user wants to add a player to the
+ player list
+ getBackEvent() -
+Method in class jrummikub.control.network.AbstractGameBeginControl
+The back event is emitted when the player wants to go back to the previous
+ control and panel
+ getBackEvent() -
+Method in class jrummikub.control.network.NetworkSettingsControl
+The get back event is emitted when the player wants to go back to the
+ previous settings panel
+ getBackEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getBackEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+Emitted when the user wants to go back to the panel before
+ getBackToLoginEvent() -
+Method in class jrummikub.control.network.NetworkControl
+The back to login event is emitted when the player aborted the connecting
+ process or when a connection error has occured and been acknowledged
+ getCancelEvent() -
+Method in class jrummikub.control.LoginControl
+Getter for cancelEvent
+ getCancelEvent() -
+Method in interface jrummikub.view.IConnectPanel
+Is emitted when the user wants to abort connecting or has acknowledged
+ the error
+ getCancelEvent() -
+Method in interface jrummikub.view.IGameListPanel
+Emitted when the network game is canceled
+ getCancelEvent() -
+Method in interface jrummikub.view.ILoginPanel
+Emitted when the user cancels the login process
+ getCancelEvent() -
+Method in class jrummikub.view.impl.ConnectPanel
+
+ getCancelEvent() -
+Method in class jrummikub.view.impl.GameListPanel
+
+ getCancelEvent() -
+Method in class jrummikub.view.impl.LoginPanel
+
+ getCancelEvent() -
+Method in class jrummikub.view.impl.QuitWarningPanel
+
+ getCancelEvent() -
+Method in interface jrummikub.view.IQuitWarningPanel
+Is emitted if the user selected quit by mistake
+ getChangeColorEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getChangeColorEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getChangeHighestValueEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeHighestValueEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change highest value event is emitted when the user wants to set the
+ highest Stone value
+ getChangeInitialMeldThresholdEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeInitialMeldThresholdEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change initial meld threshold event is emitted when the user wants
+ change the initial meld threshold
+ getChangeJokerNumberEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeJokerNumberEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+Emitted when the joker number is changed
+ getChangeNoLimitsEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeNoLimitsEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+Emitted when no limits is chosen
+ getChangeNumberOfStonesDealtEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeNumberOfStonesDealtEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change number of Stones dealt event is emitted when the user wants to
+ be dealt more or less than 14 Stones at the game start
+ getChangePlayerColorEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangePlayerColorEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change player color event is emitted when the user wants change a
+ player's color
+ getChangePlayerNameEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangePlayerNameEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change player color event is emitted when the user wants change a
+ player's name
+ getChangePlayerTypeEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangePlayerTypeEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change player color event is emitted when the user wants change a
+ player's type
+ getChangeSeeHandSizeEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeSeeHandSizeEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change see hand size event is emitted when the player chooses to see
+ the other players hand sizes
+ getChangeStoneColorsEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeStoneColorsEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change Stone colors event is emitted when the user chooses the stone
+ colors to play with.
+ getChangeStoneSetNumberEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeStoneSetNumberEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The change StoneSet number event is emitted when the user wants to use more
+ or less than 2 StoneSets per color
+ getChangeTimeEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getChangeTimeEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+Emitted when totalTime for a turn is changed
+ getChannelName() -
+Method in class jrummikub.util.LoginData
+Getter for channel name
+ getClickEvent() -
+Method in interface jrummikub.view.IClickable
+the click event is emitted when the player clicks on the table/hand/etc.
+ getClickEvent() -
+Method in class jrummikub.view.impl.AbstractStonePanel
+
+ getColor() -
+Method in class jrummikub.model.PlayerSettings
+Returns the player's color
+ getColor() -
+Method in class jrummikub.model.Stone
+Returns the color of the stone.
+ getColor(StoneColor) -
+Static method in class jrummikub.view.impl.StonePainter
+
+ getConnectedEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getConnectedEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getConnectionFailedEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getConnectionFailedEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getConnectionLostEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getConnectionLostEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getConnectPanel() -
Method in class jrummikub.view.impl.View
- setCurrentPlayerName(String) -
+getConnectPanel() -
+Method in interface jrummikub.view.IView
+Getter for connect panel
+ getCurrentGame() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getCurrentGame() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getEndOfGameEvent() -
+Method in class jrummikub.control.GameControl
+Is emitted when the user ends the game and start a new one
+ getEndOfRoundEvent() -
+Method in class jrummikub.control.RoundControl
+End the round
+ getEndOfTurnEvent() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ getEndOfTurnEvent() -
+Method in interface jrummikub.control.turn.ITurnControl
+Get the event that is emitted when the turn is over
+ getEndPauseEvent() -
+Method in class jrummikub.view.impl.PausePanel
+
+ getEndPauseEvent() -
Method in class jrummikub.view.impl.View
- setInitialMeldError(int) -
+getEndPauseEvent() -
+Method in interface jrummikub.view.IView
+The end pause event is emitted when the user wants to sresume the game
+ after a pause
+ getEndProgramEvent() -
+Method in class jrummikub.view.impl.RoundEndPanel
+The end program is emitted when the player wants to quit the program
+ getEndProgramEvent() -
Method in class jrummikub.view.impl.View
- setInitialMeldFirstError() -
+getEndProgramEvent() -
+Method in interface jrummikub.view.IView
+The quit event is emitted when the player wants to quit the game
+ getEndTurnEvent() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ getEndTurnEvent() -
+Method in interface jrummikub.view.IPlayerPanel
+The end turn event is emitted when the player wants to end his turn
+ getFactory() -
+Static method in class jrummikub.control.turn.AIControl
+Get the factory for the base AI control
+ getFactory() -
+Static method in class jrummikub.control.turn.HumanTurnControl
+Get a factory for this turn control
+ getFactory(PlayerSettings.Type) -
+Static method in class jrummikub.control.turn.TurnControlFactory
+returns the turn control factory for the specified type
+ getFirst() -
+Method in class jrummikub.util.Pair
+Extract the first component of a pair
+ getFirstRoundFirstPlayer() -
+Method in class jrummikub.model.GameState
+Gets the number of the first player of the first round
+ getFreeRowSpace(int) -
+Method in class jrummikub.model.Hand
+
+ getFreeRowSpace(int) -
+Method in interface jrummikub.model.IHand
+Gets the amount of free space in a hand row
+ getGameID() -
+Method in class jrummikub.util.GameData
+Getter for gameID
+ getGameJoinAckEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getGameJoinAckEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getGameJoinEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getGameJoinEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getGameLeaveEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getGameLeaveEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getGameListPanel() -
Method in class jrummikub.view.impl.View
- setInvalidStoneSets(Collection<StoneSet>) -
+getGameListPanel() -
+Method in interface jrummikub.view.IView
+Getter for game list panel
+ getGameOfferEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getGameOfferEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getGameSettings() -
+Method in interface jrummikub.model.IRoundState
+Get the current GameSettings
+ getGameSettings() -
+Method in class jrummikub.model.RoundState
+
+ getGameSettings() -
+Method in class jrummikub.util.GameData
+Getter for game settings
+ getGameStartEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getGameStartEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getGameState() -
+Method in interface jrummikub.model.IRoundState
+Returns the game state
+ getGameState() -
+Method in class jrummikub.model.RoundState
+
+ getGameWithdrawalEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getGameWithdrawalEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getHand() -
+Method in class jrummikub.control.turn.ITurnControl.TurnInfo
+Gets the current player's hand
+ getHand() -
+Method in interface jrummikub.model.IPlayer
+Get the current hand of the player
+ getHand() -
+Method in class jrummikub.model.Player
+
+ getHandPanel() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ getHandPanel() -
Method in class jrummikub.view.impl.View
- setLastStonePlayerName(String) -
+getHandPanel() -
+Method in interface jrummikub.view.IView
+
+ getHeight() -
+Method in interface jrummikub.model.Sizeable
+Get the height of the object
+ getHeight() -
+Method in class jrummikub.model.Stone
+
+ getHeight() -
+Method in class jrummikub.model.StoneSet
+
+ getHighestValue() -
+Method in class jrummikub.model.GameSettings
+Return the highest stone value in use
+ getHost() -
+Method in class jrummikub.util.GameData
+Getter for host name
+ getHostName() -
+Method in class jrummikub.server.DedicatedServer
+Getter for host name
+ getHoveredStone() -
+Method in class jrummikub.view.impl.AbstractStonePanel
+Returns the stone the mouse pointer is hovering over
+ getIdenticalStoneCount() -
+Method in class jrummikub.model.Hand
+
+ getIdenticalStoneCount() -
+Method in interface jrummikub.model.IHand
+Counts the pairs of identical stones
+ getInitialMeldThreshold() -
+Method in class jrummikub.model.GameSettings
+Returns the initial meld threshold
+ getInvalidSets() -
+Method in class jrummikub.control.RoundControl.InvalidTurnInfo
+Getter for the invalid sets
+ getInvalidTurnInfo() -
+Method in class jrummikub.control.network.ConnectionControl.TurnEndData
+
+ getJoinEvent() -
+Method in interface jrummikub.view.IGameListPanel
+Emitted when the user chose to join an existing, open game
+ getJoinEvent() -
+Method in class jrummikub.view.impl.GameListPanel
+
+ getJokerNumber() -
+Method in class jrummikub.model.GameSettings
+Returns the number of jokers
+ getJokerPoints() -
+Method in class jrummikub.model.GameSettings
+Returns the points counted for a joker
+ getLaidOut() -
+Method in class jrummikub.control.turn.ITurnControl.TurnInfo
+Returns if the current player has laid out yet
+ getLaidOut() -
+Method in interface jrummikub.model.IPlayer
+Has the player laid out yet?
+ getLaidOut() -
+Method in class jrummikub.model.Player
+
+ getLastPlayer() -
+Method in interface jrummikub.model.IRoundState
+Sets the player that will make the last turn before the round ends when the
+ heap is empty
+ getLastPlayer() -
+Method in class jrummikub.model.RoundState
+
+ getLastPlayerRedealed() -
+Method in class jrummikub.model.GameState
+Returns the player that has redealed last
+ getLastTurnStoneCount() -
+Method in interface jrummikub.model.IPlayer
+Gets the number of stones put on table in player's last turn
+ getLastTurnStoneCount() -
+Method in class jrummikub.model.Player
+
+ getLeftConnectorClickEvent() -
+Method in class jrummikub.view.impl.TablePanel
+
+ getLeftConnectorClickEvent() -
+Method in interface jrummikub.view.ITablePanel
+the left connector click event is emitted when the player clicks on a left
+ connector of a stone set on the table .
+ getLeftPanelWidth() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ getListCellRendererComponent(JList, Object, int, boolean, boolean) -
+Method in class jrummikub.view.impl.GameListPanel.GameDataCellRenderer
+
+ getLoadErrorEvent() -
+Method in class jrummikub.control.SaveControl
+The load error event is emitted when the file selected for loading is not
+ a rum file
+ getLoadEvent() -
+Method in class jrummikub.control.SaveControl
+Getter for loadEvent
+ getLoadEvent() -
Method in class jrummikub.view.impl.View
- setMayPause(boolean) -
+getLoadEvent() -
+Method in interface jrummikub.view.IView
+The load event is emitted when the user wants to load a previously saved
+ game state
+ getLoadFileEvent() -
Method in class jrummikub.view.impl.View
- setRedealedPlayerName(String) -
+getLoadFileEvent() -
+Method in interface jrummikub.view.IView
+The load file event is emitted when the user chose to discard the current
+ game to save another
+ getLoadGameEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getLoginEvent() -
+Method in class jrummikub.control.LoginControl
+Getter for loginEvent
+ getLoginEvent() -
+Method in interface jrummikub.view.ILoginPanel
+Player has offered all information and wants to connect
+ getLoginEvent() -
+Method in class jrummikub.view.impl.LoginPanel
+
+ getLoginPanel() -
Method in class jrummikub.view.impl.View
- setSelectedStones(Collection<Stone>) -
+getLoginPanel() -
+Method in interface jrummikub.view.IView
+Getter for login panel
+ getMaximumSize() -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ getMenuNewGameEvent() -
Method in class jrummikub.view.impl.View
- setStoneCollectionHidden(boolean) -
+getMenuNewGameEvent() -
+Method in interface jrummikub.view.IView
+The menu new game event is emitted when the user selects the new game menu
+ entry
+ getMoveDirection(E, Position, Pair<E, Position>) -
+Method in class jrummikub.model.StoneTray
+Returns the direction to move the object in
+ getMoveOrientation(E, Position, Pair<E, Position>) -
+Method in class jrummikub.model.StoneTray
+Will the object be moved horizontally or vertically
+ getName() -
+Method in class jrummikub.model.PlayerSettings
+Returns the player's name
+ getNetworkGameEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getNetworkGameEvent() -
Method in class jrummikub.view.impl.View
- showConnectPanel(boolean) -
+getNetworkGameEvent() -
+Method in interface jrummikub.view.IView
+The network game event is emitted when the user chooses a network game
+ getNewGameEvent() -
+Method in class jrummikub.view.impl.RoundEndPanel
+
+ getNewGameEvent() -
Method in class jrummikub.view.impl.View
- showGameListPanel(boolean) -
+getNewGameEvent() -
+Method in interface jrummikub.view.IView
+Is emitted if the player wants to end the game and start a new one
+ getNewPosition(E, Position, StoneTray.Direction, E, Position) -
+Method in class jrummikub.model.StoneTray
+
+ getNewRoundEvent() -
+Method in class jrummikub.view.impl.RoundEndPanel
+The new round event is emitted when the player wants to start a new round
+ getNewRoundEvent() -
Method in class jrummikub.view.impl.View
- showLoadingError() -
+getNewRoundEvent() -
+Method in interface jrummikub.view.IView
+The new round event is emitted when the player wants to start a new round
+ getNextPlayerEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getNextPlayerEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getNickname() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getNickname() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getNthNextPlayer(int) -
+Method in interface jrummikub.model.IRoundState
+Returns the player that would be the active player after i turns
+ getNthNextPlayer(int) -
+Method in class jrummikub.model.RoundState
+
+ getNthPlayer(int) -
+Method in interface jrummikub.model.IRoundState
+Returns the nth player
+ getNthPlayer(int) -
+Method in class jrummikub.model.RoundState
+
+ getNumberOfStonesDealt() -
+Method in class jrummikub.model.GameSettings
+Get number of stones dealt at game start
+ getOfferGameEvent() -
+Method in class jrummikub.control.network.NetworkSettingsControl
+The game offer event is emitted when a player wants to offer a new network
+ game
+ getOfferGameEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getOfferGameEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The offer new game event is emitted when a new game is started and looking
+ for players
+ getOldHand() -
+Method in class jrummikub.control.turn.ITurnControl.TurnInfo
+Gets the current player's hand at the beginning of the turn
+ getOldTable() -
+Method in class jrummikub.control.turn.ITurnControl.TurnInfo
+Gets the table at the beginning of the turn
+ getOpenNewGameEvent() -
+Method in interface jrummikub.view.IGameListPanel
+Emitted when a new game is offered
+ getOpenNewGameEvent() -
+Method in class jrummikub.view.impl.GameListPanel
+
+ getOtherClickEvent() -
+Method in class jrummikub.view.impl.StoneCollectionPanel
+The other click event is emitted by the stone collection when the player
+ has clicked on it, but hasn't hit a stone.
+ getParticipantLeftEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getParticipantLeftEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getPassword() -
+Method in class jrummikub.util.LoginData
+Getter for password
+ getPauseEvent() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ getPauseEvent() -
Method in class jrummikub.view.impl.View
- showLoginPanel(boolean) -
+getPauseEvent() -
+Method in interface jrummikub.view.IView
+The pause event is emitted when the user wants to pause the current turn
+ getPlayerCount() -
+Method in interface jrummikub.model.IRoundState
+Returns the number of players
+ getPlayerCount() -
+Method in class jrummikub.model.RoundState
+
+ getPlayerList() -
+Method in class jrummikub.model.GameSettings
+Returns the list containing the settings of all players
+ getPlayerPanel() -
Method in class jrummikub.view.impl.View
- showQuitWarningPanel(boolean) -
+getPlayerPanel() -
+Method in interface jrummikub.view.IView
+Returns the player panel
+ getPlayerSettings() -
+Method in interface jrummikub.model.IPlayer
+Returns the player settings
+ getPlayerSettings() -
+Method in class jrummikub.model.Player
+
+ getPlayerSlotCount(GameData) -
+Static method in class jrummikub.view.impl.GameListPanel
+Counts the empty slots for network players in a game
+ getPoints() -
+Method in class jrummikub.ai.TurnLogic.State
+Returns the points
+ getPoints() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+How many points we get for melding this stone
+ getPoints() -
+Method in class jrummikub.model.Score
+Get the point list
+ getPosition(E) -
+Method in interface jrummikub.model.IStoneTray
+Returns the position of an object that is already on the tray
+ getPosition(E) -
+Method in class jrummikub.model.StoneTray
+
+ getPreferredSize() -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ getPreferredSize() -
+Method in class jrummikub.view.impl.SidePanel.PlayerListPanel
+
+ getQuitEvent() -
+Method in class jrummikub.view.impl.QuitWarningPanel
+
+ getQuitEvent() -
Method in class jrummikub.view.impl.View
- showScorePanel(boolean) -
+getQuitEvent() -
+Method in interface jrummikub.view.IQuitWarningPanel
+Is emitted if the user is positive about quitting
+ getQuitEvent() -
+Method in interface jrummikub.view.IView
+The quit event is emitted when the user wants to leave the application
+ getQuitMode() -
+Method in class jrummikub.view.impl.QuitWarningPanel
+
+ getQuitMode() -
+Method in interface jrummikub.view.IQuitWarningPanel
+Getter for quit mode
+ getQuitWarningPanel() -
Method in class jrummikub.view.impl.View
- showServerStartupError(boolean) -
+getQuitWarningPanel() -
+Method in interface jrummikub.view.IView
+Getter for quit warning panel
+ getRangeClickEvent() -
+Method in class jrummikub.view.impl.AbstractStonePanel
+
+ getRangeClickEvent() -
+Method in interface jrummikub.view.IStonePanel
+the range click event is emitted when the player clicks on the table/hand/
+ etc. and wants to select a range instead of a single stone
+ getRedealEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getRedealEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getRedealEvent() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ getRedealEvent() -
+Method in interface jrummikub.control.turn.ITurnControl
+Emitted when the round is aborted and needs to be restarted
+ getRedealEvent() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ getRedealEvent() -
+Method in interface jrummikub.view.IPlayerPanel
+The redeal event is emitted when the player wants to get new stones
+ getRemovePlayerEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getRemovePlayerEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+The remove player event is emitted when the user wants to remove a player
+ remove the player list
+ getRestartRoundEvent() -
+Method in class jrummikub.control.RoundControl
+Emitted when the round is aborted and needs to be restarted
+ getResult() -
+Method in class jrummikub.ai.TurnLogic
+Get the found stones and create output sets
+ getRightConnectorClickEvent() -
+Method in class jrummikub.view.impl.TablePanel
+
+ getRightConnectorClickEvent() -
+Method in interface jrummikub.view.ITablePanel
+the right connector click event is emitted when the player clicks on a
+ right connector of a stone set on the table .
+ getRoundStartEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getRoundStartEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getRoundState() -
+Method in class jrummikub.control.network.ConnectionControl.TurnEndData
+
+ getRoundState() -
+Method in class jrummikub.control.turn.ITurnControl.TurnInfo
+Get the current round state
+ getRoundStateUpdateEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getRoundStateUpdateEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getRoundStateUpdateEvent() -
+Method in class jrummikub.control.RoundControl
+Is emitted in network when a new turn starts
+ getRowCount() -
+Method in class jrummikub.model.Hand
+
+ getRowCount() -
+Method in interface jrummikub.model.IHand
+The number of used rows
+ getSaveEvent() -
Method in class jrummikub.view.impl.View
- showSettingsPanel(boolean) -
+getSaveEvent() -
+Method in interface jrummikub.view.IView
+The save event is emitted when the user wants to save the current game
+ state
+ getScaledBackground(int, BufferedImage) -
+Method in class jrummikub.view.impl.HandPanel
+
+ getScore() -
+Method in class jrummikub.ai.TurnLogic.State
+Returns the score
+ getScore() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+How badly we want to get rid of this stone
+ getScorePanel() -
Method in class jrummikub.view.impl.View
- showSidePanel(boolean) -
+getScorePanel() -
+Method in interface jrummikub.view.IView
+Returns the score panel
+ getScores() -
+Method in class jrummikub.model.GameState
+Returns the list of players' scores in the rounds played before
+ getSecond() -
+Method in class jrummikub.util.Pair
+Extract the second component of a pair
+ getSeeHandSize() -
+Method in class jrummikub.model.GameSettings
+Returns the visibility of the hand size
+ getServerName() -
+Method in class jrummikub.util.LoginData
+Getter for server name
+ getServerPassword() -
+Method in class jrummikub.server.DedicatedServer
+Get the current server password
+ getSetClickEvent() -
+Method in class jrummikub.view.impl.AbstractStonePanel
+
+ getSetClickEvent() -
+Method in interface jrummikub.view.IStonePanel
+the set click event is emitted when the player clicks on the table/hand/
+ etc. and wants to select a whole set instead of a single stone
+ getSettingsPanel() -
Method in class jrummikub.view.impl.View
+ getSettingsPanel() -
+Method in interface jrummikub.view.IView
+Returns the settings panel
+ getSetVariantChildrenEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getSetVariantChildrenEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+Emitted when the children variant is chosen
+ getSetVariantDefaultEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getSetVariantDefaultEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+Emitted when the variables are reset to the default values
+ getSidePanel() -
+Method in class jrummikub.view.impl.View
+
+ getSidePanel() -
+Method in interface jrummikub.view.IView
+Returns the side panel
+ getSize() -
+Method in interface jrummikub.model.IStoneTray
+Return the number of objects on the tray
+ getSize() -
+Method in class jrummikub.model.StoneHeap
+Get the number of stones left
+ getSize() -
+Method in class jrummikub.model.StoneSet
+Returns the number of stones in the set.
+ getSize() -
+Method in class jrummikub.model.StoneTray
+
+ getSortByGroupsEvent() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ getSortByGroupsEvent() -
+Method in interface jrummikub.view.IPlayerPanel
+The sort by groups event is emitted when the player wants to sort his
+ stones by groups
+ getSortByRunsEvent() -
+Method in class jrummikub.view.impl.PlayerPanel
+
+ getSortByRunsEvent() -
+Method in interface jrummikub.view.IPlayerPanel
+The sort by runs event is emitted when the player wants to sort his
+ stones by runs
+ getStartGameEvent() -
+Method in class jrummikub.control.network.GameJoinControl
+The event that is emitted when the game is started
+ getStartGameEvent() -
+Method in class jrummikub.control.network.GameOfferControl
+The event that is emitted when the game is started
+ getStartGameEvent() -
+Method in class jrummikub.control.SettingsControl
+the start game event is emitted when the user wants to start a game and
+ the settings made are valid
+ getStartGameEvent() -
+Method in class jrummikub.view.impl.SettingsPanel
+
+ getStartGameEvent() -
+Method in interface jrummikub.view.ISettingsPanel
+the start game event is emitted when the user wants to start the game
+ getStartTurnEvent() -
+Method in class jrummikub.view.impl.StartTurnPanel
+
+ getStartTurnEvent() -
+Method in class jrummikub.view.impl.View
+
+ getStartTurnEvent() -
+Method in interface jrummikub.view.IView
+The start turn event is emitted when the player wants to start his turn
+ getStoneAt(Position) -
+Method in class jrummikub.view.impl.AbstractStonePanel
+Gets the stone at the specified position
+ getStoneClickEvent() -
+Method in class jrummikub.view.impl.AbstractStonePanel
+
+ getStoneClickEvent() -
+Method in interface jrummikub.view.IStonePanel
+the click event is emitted when the player clicks on the table/hand/etc.
+ getStoneCollectionPanel() -
+Method in class jrummikub.view.impl.TablePanel
+
+ getStoneCollectionPanel() -
+Method in interface jrummikub.view.ITablePanel
+Returns the stone collection (the panel showing the stones currently
+ selected)
+ getStoneColors() -
+Method in class jrummikub.model.GameSettings
+Get stone colors used
+ getStoneHeap() -
+Method in interface jrummikub.model.IRoundState
+Returns the heap of stones to draw from
+ getStoneHeap() -
+Method in class jrummikub.model.RoundState
+
+ getStoneHeight() -
+Method in class jrummikub.view.impl.StonePainter
+
+ getStoneImage(StoneColor, int, StonePainter.StoneState, boolean) -
+Method in class jrummikub.view.impl.StonePainter
+
+ getStonePainter() -
+Method in class jrummikub.view.impl.AbstractStonePanel
+
+ getStonePoints(GameSettings) -
+Method in class jrummikub.model.Hand
+
+ getStonePoints(GameSettings) -
+Method in interface jrummikub.model.IHand
+Get the accumulated number of points of stones in the hand
+ getStones() -
+Method in class jrummikub.view.impl.AbstractStonePanel
+Returns the list of stones and positions currently set
+ getStoneSetNumber() -
+Method in class jrummikub.model.GameSettings
+Get the number of sets of stones in use
+ getStoneWidth() -
+Method in class jrummikub.view.impl.StonePainter
+
+ getStopNetworkEvent() -
+Method in class jrummikub.control.network.NetworkControl
+Getter for stopNetworkEvent
+ getTable() -
+Method in class jrummikub.control.RoundControl.InvalidTurnInfo
+Getter for table
+ getTable() -
+Method in class jrummikub.control.turn.ITurnControl.TurnInfo
+Gets the current table
+ getTable() -
+Method in interface jrummikub.model.IRoundState
+Get the current Table
+ getTable() -
+Method in class jrummikub.model.RoundState
+
+ getTablePanel() -
+Method in class jrummikub.view.impl.View
+
+ getTablePanel() -
+Method in interface jrummikub.view.IView
+Returns the table
+ getTableUpdateEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getTableUpdateEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getTableUpdateEvent() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ getTableUpdateEvent() -
+Method in interface jrummikub.control.turn.ITurnControl
+Emitted in network when the table changes during player turn
+ getTimeRunOutEvent() -
+Method in interface jrummikub.control.ITurnTimer
+Returns the event that is emitted if the timer timed out.
+ getTimeRunOutEvent() -
+Method in class jrummikub.control.TurnTimer
+
+ getTotalStones() -
+Method in class jrummikub.model.GameSettings
+Calculate the total number of stones in game
+ getTotalTime() -
+Method in class jrummikub.model.GameSettings
+Getter for the time for a turn
+ getTranslation() -
+Method in class jrummikub.view.impl.AbstractStonePanel
+Returns the translation in pixels the stones in this panel are painted
+ with
+ getTranslation() -
+Method in class jrummikub.view.impl.HandPanel
+
+ getTranslation() -
+Method in class jrummikub.view.impl.StoneCollectionPanel
+
+ getTranslation() -
+Method in class jrummikub.view.impl.TablePanel
+
+ getTurnEndEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getTurnEndEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getTurnMode() -
+Method in class jrummikub.control.turn.ITurnControl.TurnInfo
+Gets the current turn's mode
+ getTurnNumber() -
+Method in interface jrummikub.model.IRoundState
+Gets the number of the current turn.
+ getTurnNumber() -
+Method in class jrummikub.model.RoundState
+
+ getTurnStartEvent() -
+Method in class jrummikub.control.network.ConnectionControl
+
+ getTurnStartEvent() -
+Method in interface jrummikub.control.network.IConnectionControl
+
+ getType() -
+Method in class jrummikub.control.RoundControl.InvalidTurnInfo
+Getter for invalid turn type
+ getType() -
+Method in class jrummikub.model.PlayerSettings
+Get the player's TurnControlFactory type
+ getTypeLabel(PlayerSettings.Type) -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel
+
+ getUseDedicatedServerEvent() -
+Method in interface jrummikub.view.ILoginPanel
+Emitted when the user presses the use dedicated server button
+ getUseDedicatedServerEvent() -
+Method in class jrummikub.view.impl.LoginPanel
+
+ getUserName() -
+Method in class jrummikub.util.LoginData
+Getter for user name
+ getValue() -
+Method in class jrummikub.model.Stone
+Returns the value of the stone.
+ getWidth() -
+Method in interface jrummikub.model.Sizeable
+Get the width of the object
+ getWidth() -
+Method in class jrummikub.model.Stone
+
+ getWidth() -
+Method in class jrummikub.model.StoneSet
+
+ getWinners(Integer[], int[]) -
+Method in class jrummikub.model.GameState
+Returns whether players have won
+ getWinners() -
+Method in class jrummikub.model.Score
+Get the winner list
+ getX() -
+Method in class jrummikub.model.Position
+Get the x coordinate of the position
+ getY() -
+Method in class jrummikub.model.Position
+Get the y coordinate of the position
+ goBack() -
+Method in class jrummikub.control.network.AbstractGameBeginControl
+
+ goBack() -
+Method in class jrummikub.control.network.GameJoinControl
+Aborts joining and goes back to game list
+ goBack() -
+Method in class jrummikub.control.network.GameOfferControl
+
+ groupNeighbor(TurnLogic.StoneState) -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Checks whether this stone could be left to other in a group
@@ -157,7 +1257,8 @@ Method in class jrummikub.view.impl.
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -197,7 +1298,7 @@ Method in class jrummikub.view.impl.
-C E G J L R S V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html
index a8eee42..5be7d40 100644
--- a/doc/index-files/index-8.html
+++ b/doc/index-files/index-8.html
@@ -2,12 +2,12 @@
-
+
-V-Index
+H-Index
-
+
@@ -15,7 +15,7 @@ V-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="V-Index";
+ parent.document.title="H-Index";
}
}
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -55,7 +56,7 @@ function windowTitle()
PREV LETTER
- NEXT LETTER
+ NEXT LETTER
FRAMES
NO FRAMES
@@ -77,13 +78,160 @@ function windowTitle()
-C E G J L R S V
-
-V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+H
-View - Class in jrummikub.view.impl Implementation of the top-level view interface View() -
-Constructor for class jrummikub.view.impl.View
-Create a new instance of the view
+ hand -
+Variable in class jrummikub.control.turn.ITurnControl.TurnInfo
+
+ Hand - Class in jrummikub.model Class managing a Player
's Stone
s Hand() -
+Constructor for class jrummikub.model.Hand
+
+ hand -
+Variable in class jrummikub.model.Player
+
+ hand -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ HAND_ROW_BUTTON_RATIO -
+Static variable in class jrummikub.view.impl.PlayerPanel
+
+ handClick(Position) -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ handle() -
+Method in interface jrummikub.util.IListener
+This method is called whenever a class we're listening to emits an event
+ handle(T) -
+Method in interface jrummikub.util.IListener1
+This method is called whenever a class we're listening to emits an event
+ handle(T1, T2) -
+Method in interface jrummikub.util.IListener2
+This method is called whenever a class we're listening to emits an event
+ handle(T1, T2, T3) -
+Method in interface jrummikub.util.IListener3
+This method is called whenever a class we're listening to emits an event
+ handleLeave(String) -
+Method in class jrummikub.control.network.GameOfferControl
+
+ handleMessageTypes(DefaultPacketExtension, String, String) -
+Method in class jrummikub.control.network.ConnectionControl
+
+ handleOtherClickEvent(Position) -
+Method in class jrummikub.view.impl.AbstractStonePanel
+Overwrite this method to signal if special zone was clicked
+ handleOtherClickEvent(Position) -
+Method in class jrummikub.view.impl.StoneCollectionPanel
+
+ handleOtherClickEvent(Position) -
+Method in class jrummikub.view.impl.TablePanel
+
+ handleOtherMoveEvent(Position) -
+Method in class jrummikub.view.impl.AbstractStonePanel
+Overwrite this method to signal if special zone was hovered
+ handleOtherMoveEvent(Position) -
+Method in class jrummikub.view.impl.TablePanel
+
+ HandPanel - Class in jrummikub.view.impl Implementation of the board HandPanel(PlayerPanel) -
+Constructor for class jrummikub.view.impl.HandPanel
+Creates a new Board instance
+ handRangeClick(Stone, boolean) -
+Method in class jrummikub.control.turn.HumanTurnControl
+
+ handRowDownButton -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ handRowUpButton -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ handStonesLabel -
+Variable in class jrummikub.view.impl.SidePanel
+
+ hashCode() -
+Method in class jrummikub.model.Position
+
+ hashCode() -
+Method in class jrummikub.util.Pair
+
+ hasLaidOutLabel -
+Variable in class jrummikub.view.impl.PlayerPanel
+
+ heap -
+Variable in class jrummikub.model.StoneHeap
+
+ heapBar -
+Variable in class jrummikub.view.impl.SidePanel
+
+ heapBar -
+Variable in class jrummikub.view.impl.SidePanel.InfoPanel
+
+ HEIGHT -
+Static variable in class jrummikub.view.impl.HandPanel
+
+ HEIGHT_SCALE -
+Static variable in class jrummikub.view.impl.StonePainter
+The height of one pixel in the scale of 1.0
+ hidden -
+Variable in class jrummikub.view.impl.StoneCollectionPanel
+
+ highestValue -
+Variable in class jrummikub.model.GameSettings
+
+ highestValueLabel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ highestValueLabel -
+Variable in class jrummikub.view.impl.SidePanel
+
+ highestValueSpinner -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ HORIZONTAL_BORDER -
+Static variable in class jrummikub.model.StoneSet
+
+ HORIZONTAL_MARGIN -
+Static variable in class jrummikub.view.impl.TablePanel
+
+ host -
+Variable in class jrummikub.control.network.NetworkGameControl
+
+ host -
+Variable in class jrummikub.util.GameData
+
+ hostLabel -
+Variable in class jrummikub.view.impl.GameListPanel.GameDataCellRenderer
+
+ hostName -
+Variable in class jrummikub.server.DedicatedServer
+
+ hover(Color) -
+Static method in class jrummikub.view.impl.StonePainter
+
+ HOVER_RATIO -
+Static variable in class jrummikub.view.impl.StonePainter
+
+ hoveredStone -
+Variable in class jrummikub.view.impl.AbstractStonePanel
+
+ hoveredStones -
+Variable in class jrummikub.view.impl.StonePainter
+
+ HumanTurnControl - Class in jrummikub.control.turn Controller for a single turn made by a human player HumanTurnControl() -
+Constructor for class jrummikub.control.turn.HumanTurnControl
+Create a new human player's turn control
+ HumanTurnControl(ITurnTimer) -
+Constructor for class jrummikub.control.turn.HumanTurnControl
+Test only constructor
+ HumanTurnControl.GroupComparator - Class in jrummikub.control.turn HumanTurnControl.GroupComparator() -
+Constructor for class jrummikub.control.turn.HumanTurnControl.GroupComparator
+
+ HumanTurnControl.HandStonePositionComparator - Class in jrummikub.control.turn HumanTurnControl.HandStonePositionComparator() -
+Constructor for class jrummikub.control.turn.HumanTurnControl.HandStonePositionComparator
+
+ HumanTurnControl.RunComparator - Class in jrummikub.control.turn HumanTurnControl.RunComparator() -
+Constructor for class jrummikub.control.turn.HumanTurnControl.RunComparator
+
@@ -97,7 +245,8 @@ Constructor for class jrummikub.view.impl.
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -115,7 +264,7 @@ Constructor for class jrummikub.view.impl.
PREV LETTER
- NEXT LETTER
+ NEXT LETTER
FRAMES
NO FRAMES
@@ -137,7 +286,7 @@ Constructor for class jrummikub.view.impl.
-C E G J L R S V
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html
index d4f9b54..8162ed3 100644
--- a/doc/index-files/index-9.html
+++ b/doc/index-files/index-9.html
@@ -2,12 +2,12 @@
-
+
-J-Index
+I-Index
-
+
@@ -15,7 +15,7 @@ J-Index
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="J-Index";
+ parent.document.title="I-Index";
}
}
@@ -78,17 +78,142 @@ function windowTitle()
-A C D E F G H I J M N O P R S T V W
-
-J
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
+
+I
-join(StoneSet) -
-Method in class jrummikub.model.StoneSet
-Joins StoneSet to another StoneSet and returns the resulting new StoneSet
- JRummikub - Class in jrummikub The main class JRummikub() -
-Constructor for class jrummikub.JRummikub
+IClickable - Interface in jrummikub.view An interface for view elements that can emit click events IConnectionControl - Interface in jrummikub.control.network IConnectPanel - Interface in jrummikub.view Panel shown during connection process and showing errors id -
+Variable in class jrummikub.ai.TurnLogic.StoneState
- jrummikub.view.impl - package jrummikub.view.impl
+IEvent - Interface in jrummikub.util Interface for classes that can generate parameterless events IEvent1 <T > - Interface in jrummikub.util Interface for classes that can generate events having a single parameter IEvent2 <T1 ,T2 > - Interface in jrummikub.util Interface for classes that can generate events having a two parameters IEvent3 <T1 ,T2 ,T3 > - Interface in jrummikub.util Interface for classes that can generate events having a two parameters IGameListPanel - Interface in jrummikub.view Panel showing all offered games in the chosen channel IHand - Interface in jrummikub.model Interface for the Hand
model IHandPanel - Interface in jrummikub.view The view for a player's hand that displays his stones IListener - Interface in jrummikub.util Interface for classes that can receive parameterless events IListener1 <T > - Interface in jrummikub.util Interface for classes that can receive parameterless events having a single
+ parameter IListener2 <T1 ,T2 > - Interface in jrummikub.util Interface for classes that can receive parameterless events having a two
+ parameters IListener3 <T1 ,T2 ,T3 > - Interface in jrummikub.util Interface for classes that can receive parameterless events having a two
+ parameters ILoginPanel - Interface in jrummikub.view LoginPanel for network game ImageUtil - Class in jrummikub.view.impl ImageUtil() -
+Constructor for class jrummikub.view.impl.ImageUtil
+
+ incrementStoneCount(TreeMap<Pair<Integer, StoneColor>, Integer>, Pair<Integer, StoneColor>) -
+Static method in class jrummikub.model.Hand
+Increments the count of a stone in the list of all stones
+ inited -
+Variable in class jrummikub.control.network.NetworkRoundControl
+
+ initialMeldLabel -
+Variable in class jrummikub.view.impl.SidePanel
+
+ initialMeldThreshold -
+Variable in class jrummikub.model.GameSettings
+
+ initialMeldThresholdLabel -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ initialMeldThresholdSpinner -
+Variable in class jrummikub.view.impl.SettingsPanel
+
+ innerPanel -
+Variable in class jrummikub.view.impl.ScorePanel
+
+ inputStones -
+Variable in class jrummikub.ai.TurnLogic
+
+ insertUpdate(DocumentEvent) -
+Method in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel.NameChangeListener
+
+ INSET_RATIO -
+Static variable in class jrummikub.view.impl.StoneCollectionPanel
+
+ invalidSets -
+Variable in class jrummikub.control.RoundControl.InvalidTurnInfo
+
+ invalidStoneSets() -
+Method in class jrummikub.control.turn.AbstractTurnControl
+
+ invalidStoneSets -
+Variable in class jrummikub.view.impl.TablePanel
+
+ invalidTurnInfo -
+Variable in class jrummikub.control.network.ConnectionControl.TurnEndData
+
+ IPlayer - Interface in jrummikub.model Interface for Player
model IPlayerPanel - Interface in jrummikub.view The player panel that contains a player's board and other user interfaces IQuitWarningPanel - Interface in jrummikub.view Warning panel shown to if the emitted event would cancel the current game IQuitWarningPanel.QuitMode - Enum in jrummikub.view Enum summarizing the different events invoking the quit warning panel IQuitWarningPanel.QuitMode() -
+Constructor for enum jrummikub.view.IQuitWarningPanel.QuitMode
+
+ IRoundState - Interface in jrummikub.model Interface for RoundState
model IScorePanel - Interface in jrummikub.view The panel the scores are displayed in ISettingsPanel - Interface in jrummikub.view The panel for the game setup ISettingsPanel.SettingsError - Enum in jrummikub.view Specifies the different kinds of settings errors that can be displayed ISettingsPanel.SettingsError() -
+Constructor for enum jrummikub.view.ISettingsPanel.SettingsError
+
+ ISettingsPanel.SettingsMode - Enum in jrummikub.view SettingsPanel can be used with different functions in different situations ISettingsPanel.SettingsMode() -
+Constructor for enum jrummikub.view.ISettingsPanel.SettingsMode
+
+ isGameRunning() -
+Method in class jrummikub.control.ApplicationControl
+Checks if a game is currently running
+ isGameRunning() -
+Method in class jrummikub.control.network.NetworkControl
+Returns if there is a running game
+ ISidePanel - Interface in jrummikub.view Side panel to show all players and relevant player information in round
+ order, game settings and stone heap size isInitialMeldPossible(GameSettings) -
+Method in class jrummikub.model.Hand
+
+ isInitialMeldPossible(GameSettings) -
+Method in interface jrummikub.model.IHand
+Tests whether it is possible to lay down an initial meld using the stones
+ on the hand
+ isInterested(HashSet<Integer>) -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Returns whether the recent changes could affect the stone
+ isJoker() -
+Method in class jrummikub.model.Stone
+Returns whether the stone is a joker or not.
+ isMayPause() -
+Method in class jrummikub.control.turn.ITurnControl.TurnInfo
+Return whether pausing is allowed during this turn
+ isNoLimits() -
+Method in class jrummikub.model.GameSettings
+Use "No-Limits" rules
+ isNullSet(HashSet<Integer>) -
+Static method in class jrummikub.ai.TurnLogic
+Check whether a set of Integers only contains null
+ isPaused -
+Variable in class jrummikub.control.turn.AIControl
+
+ isSingleNonNullSet(HashSet<Integer>) -
+Static method in class jrummikub.ai.TurnLogic
+Check whether a set of Integers only contains a single non null value
+ isSolved() -
+Method in class jrummikub.ai.TurnLogic.State
+Returns whether the stones have a definite value and the state is
+ thereby solved
+ isSolved() -
+Method in class jrummikub.ai.TurnLogic.StoneState
+Check whether this stone's position, value and color are known
+ IStoneCollectionPanel - Interface in jrummikub.view The view of the collection that shows the stones a player has selected IStonePanel - Interface in jrummikub.view An interface for view elements that can emit click events for clicks on
+ stones IStoneTray <E extends Sizeable > - Interface in jrummikub.model Interface for the StoneTray
model isValid() -
+Method in interface jrummikub.model.ITable
+Tests the Table for rule conflicts by checking all the StoneSet
+ isValid(GameSettings) -
+Method in class jrummikub.model.StoneSet
+Test for rule conflict within the StoneSet
+ isValid() -
+Method in class jrummikub.model.Table
+Tests the Table for rule conflicts by checking all the StoneSet
+ isValidGroup(int, GameSettings) -
+Method in class jrummikub.model.StoneSet
+Test for rule conflict within the StoneSet, assuming we have a group
+ isValidRun(int, GameSettings) -
+Method in class jrummikub.model.StoneSet
+Test for rule conflict within the StoneSet, assuming we have a run
+ ITable - Interface in jrummikub.model Interface for the Table
model ITablePanel - Interface in jrummikub.view The view of the table, where the stone sets lie iterator() -
+Method in class jrummikub.model.StoneSet
+
+ iterator() -
+Method in class jrummikub.model.StoneTray
+
+ ITurnControl - Interface in jrummikub.control.turn Interface containing shared methods of human and computer turn control ITurnControl.TurnInfo - Class in jrummikub.control.turn The TurnInfo class encapsulates all information concerning the current
+ turn ITurnControl.TurnInfo(IRoundState, TurnMode, boolean) -
+Constructor for class jrummikub.control.turn.ITurnControl.TurnInfo
+Creates a new TurnInfo instance
+ ITurnTimer - Interface in jrummikub.control Interface for the TurnTimer
IView - Interface in jrummikub.view The top-level view interface IView.BottomPanelType - Enum in jrummikub.view Different types of bottom panels IView.BottomPanelType() -
+Constructor for enum jrummikub.view.IView.BottomPanelType
+
+
@@ -142,7 +267,7 @@ Constructor for class jrummikub.
-A C D E F G H I J M N O P R S T V W
+A B C D E F G H I J K L M N O P Q R S T U V W X Y
diff --git a/doc/index.html b/doc/index.html
index b766593..041dd2a 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -2,7 +2,7 @@
-
+
Generated Documentation (Untitled)
@@ -21,8 +21,11 @@ Generated Documentation (Untitled)
+
+
-
+
+
Frame Alert
@@ -30,7 +33,7 @@ Frame Alert
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
-Link toNon-frame version.
+Link toNon-frame version.
diff --git a/doc/jrummikub/JRummikub.html b/doc/jrummikub/JRummikub.html
index 35a765a..9c7779a 100644
--- a/doc/jrummikub/JRummikub.html
+++ b/doc/jrummikub/JRummikub.html
@@ -2,12 +2,12 @@
-
+
JRummikub
-
+
diff --git a/doc/jrummikub/class-use/JRummikub.html b/doc/jrummikub/class-use/JRummikub.html
index ab4bb2d..a3c709b 100644
--- a/doc/jrummikub/class-use/JRummikub.html
+++ b/doc/jrummikub/class-use/JRummikub.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.JRummikub
-
+
diff --git a/doc/jrummikub/control/ApplicationControl.html b/doc/jrummikub/control/ApplicationControl.html
index 3022e0c..057410d 100644
--- a/doc/jrummikub/control/ApplicationControl.html
+++ b/doc/jrummikub/control/ApplicationControl.html
@@ -2,12 +2,12 @@
-
+
ApplicationControl
-
+
@@ -37,7 +37,8 @@ function windowTitle()
@@ -108,7 +109,80 @@ The application control controls the settings for a new games and create the
+
+
+
+
@@ -118,7 +192,7 @@ The application control controls the settings for a new games and create the
Constructor Summary
-ApplicationControl (jrummikub.view.IView view)
+ApplicationControl (IView view)
Creates a new application control
@@ -135,6 +209,62 @@ The application control controls the settings for a new games and create the
+private void
+abortControls ()
+
+
+ End all controls in case of e.g. quit event
+
+
+
+private void
+addGameControlListeners (GameControl gameControl)
+
+
+ Adds events listeners to game control events
+
+
+
+private void
+addNewNetworkGameHandler ()
+
+
+
+
+
+
+private void
+addQuitGameHandlers ()
+
+
+
+
+
+
+private void
+addSaveLoadHandlers ()
+
+
+
+
+
+
+private void
+createLoginControl (boolean reset)
+
+
+ Create a new network login control
+
+
+
+private void
+createNetworkControl (LoginData loginData)
+
+
+ Create a new network game control
+
+
+
boolean
isGameRunning ()
@@ -143,6 +273,22 @@ The application control controls the settings for a new games and create the
+private void
+showQuitWarning ()
+
+
+
+
+
+
+private void
+showRestartWarning ()
+
+
+
+
+
+
void
startApplication ()
@@ -160,7 +306,7 @@ The application control controls the settings for a new games and create the
void
-updateDedicatedServerPassword (jrummikub.util.LoginData loginData)
+updateDedicatedServerPassword (LoginData loginData)
If the login given is to our own dedicated server, update it's password
@@ -173,12 +319,101 @@ The application control controls the settings for a new games and create the
Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+
+
+
+
+
+
+settingsControl
+
+private SettingsControl settingsControl
+
+
+
+
+
+
+
+loginControl
+
+private LoginControl loginControl
+
+
+
+
+
+
+
+networkControl
+
+private NetworkControl networkControl
+
+
+
+
+
+
+
+saveControl
+
+private SaveControl saveControl
+
+
+
+
+
+
+
+gameControl
+
+private GameControl gameControl
+
+
+
+
+
+
+
+tempConnection
+
+private Connection tempConnection
+
+
+
+
+
+
+
+server
+
+private DedicatedServer server
+
+
+
+
+
+
+
+view
+
+private IView view
+
+
+
+
+
@@ -192,7 +427,7 @@ The application control controls the settings for a new games and create the
ApplicationControl
-public ApplicationControl (jrummikub.view.IView view)
+public ApplicationControl (IView view)
Creates a new application control
@@ -210,6 +445,61 @@ public ApplicationControl (jrummikub.view.IView view)
+
+addSaveLoadHandlers
+
+private void addSaveLoadHandlers ()
+
+
+
+
+
+
+
+
+addNewNetworkGameHandler
+
+private void addNewNetworkGameHandler ()
+
+
+
+
+
+
+
+
+addQuitGameHandlers
+
+private void addQuitGameHandlers ()
+
+
+
+
+
+
+
+
+showRestartWarning
+
+private void showRestartWarning ()
+
+
+
+
+
+
+
+
+showQuitWarning
+
+private void showQuitWarning ()
+
+
+
+
+
+
+
isGameRunning
@@ -224,6 +514,32 @@ public boolean isGameRunning ()
+
+createLoginControl
+
+private void createLoginControl (boolean reset)
+
+Create a new network login control
+
+
+
+
+
+
+
+
+abortControls
+
+private void abortControls ()
+
+End all controls in case of e.g. quit event
+
+
+
+
+
+
+
startApplication
@@ -237,6 +553,32 @@ public void startApplication ()
+
+addGameControlListeners
+
+private void addGameControlListeners (GameControl gameControl)
+
+Adds events listeners to game control events
+
+
+Parameters: gameControl
- of current game
+
+
+
+
+
+createNetworkControl
+
+private void createNetworkControl (LoginData loginData)
+
+Create a new network game control
+
+
+Parameters: loginData
- users login data for channel
+
+
+
+
startDedicatedServer
@@ -254,7 +596,7 @@ public boolean startDedicatedServer (java.lang.String password)
updateDedicatedServerPassword
-public void updateDedicatedServerPassword (jrummikub.util.LoginData loginData)
+public void updateDedicatedServerPassword (LoginData loginData)
If the login given is to our own dedicated server, update it's password
to match
@@ -276,7 +618,8 @@ public void updateDedicatedServerPassword (jrummikub.util.LoginData l
diff --git a/doc/jrummikub/control/GameControl.html b/doc/jrummikub/control/GameControl.html
index 1359550..1f3bf4b 100644
--- a/doc/jrummikub/control/GameControl.html
+++ b/doc/jrummikub/control/GameControl.html
@@ -2,12 +2,12 @@
-
+
GameControl
-
+
@@ -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
@@ -95,6 +95,9 @@ Class GameControl
java.lang.Object
jrummikub.control.GameControl
+
+Direct Known Subclasses: NetworkGameControl
+
public class GameControl extends java.lang.Object
@@ -108,7 +111,72 @@ Controls a Game, at some point including all Rounds, starts new Rounds
+
+
+
+
@@ -118,7 +186,9 @@ Controls a Game, at some point including all Rounds, starts new Rounds
Constructor Summary
-GameControl (IView view)
+GameControl (GameSettings gameSettings,
+ SaveControl saveControl,
+ IView view)
Constructor
@@ -136,11 +206,125 @@ Controls a Game, at some point including all Rounds, starts new Rounds
void
+abortGame ()
+
+
+ Clean abortion of a running game when another one is loaded or when a new
+ one is started
+
+
+
+ void
+continueGame (GameState gameState,
+ IRoundState roundState)
+
+
+ Continues game after loading
+
+
+
+protected RoundControl
+createRoundControl (IRoundState roundState)
+
+
+ Creates a new round control with the specified round state
+
+
+
+protected IRoundState
+createRoundState ()
+
+
+ Creates a new round State
+
+
+
+private void
+endGame ()
+
+
+ Ends the running game
+
+
+
+private void
+endOfRound (Score roundScore)
+
+
+ Sets the score and default values for saving when round ends
+
+
+
+private void
+endProgram ()
+
+
+ Exits System without warnings if no game control is active
+
+
+
+ IEvent
+getEndOfGameEvent ()
+
+
+ Is emitted when the user ends the game and start a new one
+
+
+
+private void
+prepareRound (IRoundState roundState)
+
+
+ Prepare a new round by setting start player, adding listeners
+
+
+
+private void
+removeListeners ()
+
+
+ Removes all listeners from the connection
+
+
+
+private void
+restartRound ()
+
+
+ Restarts round after redealing
+
+
+
+private void
+showScorePanel ()
+
+
+ Sets score panel visible
+
+
+
+protected void
+showWinPanel ()
+
+
+
+
+
+
+ void
startGame ()
Game gets started by initializing the first Round
+
+
+protected void
+startRound ()
+
+
+ Start a new round within the existing game
+
@@ -154,6 +338,85 @@ Controls a Game, at some point including all Rounds, starts new Rounds
+
+
+
+
+
+
+saveControl
+
+protected SaveControl saveControl
+
+
+
+
+
+
+
+gameSettings
+
+protected GameSettings gameSettings
+
+
+
+
+
+
+
+view
+
+protected IView view
+
+
+
+
+
+
+
+roundControl
+
+protected RoundControl roundControl
+
+
+
+
+
+
+
+gameState
+
+protected GameState gameState
+
+
+
+
+
+
+
+connections
+
+protected java.util.List<Connection > connections
+
+
+
+
+
+
+
+endOfGameEvent
+
+protected Event endOfGameEvent
+
+
+
+
+
@@ -164,15 +427,17 @@ Controls a Game, at some point including all Rounds, starts new Rounds
-
+
GameControl
-public GameControl (IView view)
+public GameControl (GameSettings gameSettings,
+ SaveControl saveControl,
+ IView view)
Constructor
-Parameters: view
- the view
+ Parameters: gameSettings
- the game settingssaveControl
- the save controlview
- the view
@@ -185,6 +450,46 @@ public GameControl (
+getEndOfGameEvent
+
+public IEvent getEndOfGameEvent ()
+
+Is emitted when the user ends the game and start a new one
+
+
+
+Returns: the endOfGameEvent
+
+
+
+
+
+endGame
+
+private void endGame ()
+
+Ends the running game
+
+
+
+
+
+
+
+
+removeListeners
+
+private void removeListeners ()
+
+Removes all listeners from the connection
+
+
+
+
+
+
+
startGame
@@ -196,6 +501,151 @@ public void startGame ()
+
+
+
+continueGame
+
+public void continueGame (GameState gameState,
+ IRoundState roundState)
+
+Continues game after loading
+
+
+Parameters: gameState
- the saved GameState (Players, startplayer, points)roundState
- the saved RoundState (activePlayer, Table, heap etc)
+
+
+
+
+
+abortGame
+
+public void abortGame ()
+
+Clean abortion of a running game when another one is loaded or when a new
+ one is started
+
+
+
+
+
+
+
+
+startRound
+
+protected void startRound ()
+
+Start a new round within the existing game
+
+
+
+
+
+
+
+
+prepareRound
+
+private void prepareRound (IRoundState roundState)
+
+Prepare a new round by setting start player, adding listeners
+
+
+Parameters: roundState
- of current round
+
+
+
+
+
+createRoundState
+
+protected IRoundState createRoundState ()
+
+Creates a new round State
+
+
+
+Returns: the round state
+
+
+
+
+
+createRoundControl
+
+protected RoundControl createRoundControl (IRoundState roundState)
+
+Creates a new round control with the specified round state
+
+
+Parameters: roundState
- for new round control
+Returns: the round control
+
+
+
+
+
+restartRound
+
+private void restartRound ()
+
+Restarts round after redealing
+
+
+
+
+
+
+
+
+endOfRound
+
+private void endOfRound (Score roundScore)
+
+Sets the score and default values for saving when round ends
+
+
+Parameters: roundScore
- score for ended round
+
+
+
+
+
+showScorePanel
+
+private void showScorePanel ()
+
+Sets score panel visible
+
+
+
+
+
+
+
+
+showWinPanel
+
+protected void showWinPanel ()
+
+
+
+
+
+
+
+
+endProgram
+
+private void endProgram ()
+
+Exits System without warnings if no game control is active
+
+
+
+
+
@@ -227,7 +677,7 @@ public void startGame ()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -248,9 +698,9 @@ public void startGame ()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/control/ITurnTimer.html b/doc/jrummikub/control/ITurnTimer.html
index 70e6910..25cc840 100644
--- a/doc/jrummikub/control/ITurnTimer.html
+++ b/doc/jrummikub/control/ITurnTimer.html
@@ -2,12 +2,12 @@
-
+
ITurnTimer
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -224,7 +224,7 @@ getTimeRunOutEvent
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/control/RoundControl.html b/doc/jrummikub/control/RoundControl.html
index b6a8501..4fce933 100644
--- a/doc/jrummikub/control/RoundControl.html
+++ b/doc/jrummikub/control/RoundControl.html
@@ -2,12 +2,12 @@
-
+
RoundControl
-
+
@@ -55,8 +55,8 @@ function windowTitle()
- PREV CLASS
- NEXT CLASS
+ PREV 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
@@ -95,6 +95,9 @@ Class RoundControl
java.lang.Object
jrummikub.control.RoundControl
+
+Direct Known Subclasses: NetworkRoundControl
+
public class RoundControl extends java.lang.Object
@@ -108,7 +111,107 @@ Controller that manages a single round of rummikub
+
+
+
+
+
+Nested Class Summary
+
+
+
+static class
+RoundControl.InvalidTurnInfo
+
+
+ Table, stone sets and type of an invalid turn to allow a user to track his
+ own errors
+
+
+
+static class
+RoundControl.InvalidTurnType
+
+
+ Enum summarizing the different types of invalid turns to set the correct
+ panel message
+
+
+
+
+
+
+
@@ -118,11 +221,23 @@ Controller that manages a single round of rummikub
Constructor Summary
-RoundControl (IGameState gameState,
+
+
+RoundControl (IRoundState roundState,
IView view)
- Create a new RoundControl using the given gameState and view
+ Create a new RoundControl using the given roundState and view
+
+
+
+protected
+RoundControl (IRoundState roundState,
+ IView view,
+ boolean mayPause)
+
+
+ Create a new RoundControl using the given roundState and view
@@ -136,30 +251,153 @@ Controller that manages a single round of rummikub
-(package private) void
+ void
+abortRound ()
+
+
+ Abort round if a new one is started or a saved one is loaded
+
+
+
+protected void
+addTurnControlListeners (ITurnControl turnControl)
+
+
+ Override this
+
+
+
+ void
+continueRound ()
+
+
+ Continue a saved round after loading
+
+
+
+protected ITurnControl
+createTurnControl ()
+
+
+ Creates new turn control of the specified type
+
+
+
+protected void
deal ()
-
+ Deal each player the number of stones specified in the game settings
+ (numberOfStonesDealt)
+
+
+
+protected void
+doPrepareTurn ()
+
+
+ Prepare turn by setting the view components
(package private) void
-dealStone ()
+endOfRound ()
-
+ Ends the current round and emits an event setting the score
- IEvent
-getEndRoundEvent ()
+protected void
+endOfTurn (RoundControl.InvalidTurnInfo invalidTurnInfo)
+
+
+ End the players turn
+
+
+
+ IEvent1 <Score >
+getEndOfRoundEvent ()
End the round
+ IEvent1 <PlayerSettings >
+getRestartRoundEvent ()
+
+
+ Emitted when the round is aborted and needs to be restarted
+
+
+
+ IEvent1 <IRoundState >
+getRoundStateUpdateEvent ()
+
+
+ Is emitted in network when a new turn starts
+
+
+
+protected void
+nextPlayer ()
+
+
+ Set the next player as active player if the round is not finished
+
+
+
+protected void
+prepareTurn ()
+
+
+ Prepare a player's turn by checking the player types and setting the
+ correct turn control
+
+
+
+protected void
+redeal ()
+
+
+ Redeal stones and restart round if a player was allowed to redeal and chose
+ to do so
+
+
+
+private void
+removeListeners ()
+
+
+ Removes all listeners form the connections
+
+
+
+private Score
+score ()
+
+
+ Calculate the score for the current round and the total game score
+
+
+
+protected void
+setRoundState (IRoundState state)
+
+
+ Sets the current round state
+
+
+
+protected IView.BottomPanelType
+showStartTurnPanel ()
+
+
+
+
+
+
void
startRound ()
@@ -168,12 +406,30 @@ Controller that manages a single round of rummikub
-(package private) static java.util.Set<Stone >
-tableDifference (ITable oldTable,
- ITable newTable)
+protected void
+startTurn ()
-
+ Start a players turn with the correct turn control
+
+
+
+private static Pair <java.lang.Integer,java.lang.Integer>
+updateBestScore (Pair <java.lang.Integer,java.lang.Integer> bestScore,
+ int stonePoints,
+ int size)
+
+
+ Update the best score to find the winner in case of special game end
+ (everybody still has stones on hand)
+
+
+
+private void
+updateSidePanel ()
+
+
+ Update the side panel to show correct player order and heap size
@@ -188,6 +444,95 @@ Controller that manages a single round of rummikub
+
+
+
+
+
+
+turnControl
+
+private ITurnControl turnControl
+
+
+
+
+
+
+
+roundState
+
+protected IRoundState roundState
+
+
+
+
+
+
+
+view
+
+private IView view
+
+
+
+
+
+
+
+restartRoundEvent
+
+private Event1 <PlayerSettings > restartRoundEvent
+
+
+
+
+
+
+
+roundStateUpdateEvent
+
+private Event1 <IRoundState > roundStateUpdateEvent
+
+
+
+
+
+
+
+endOfRoundEvent
+
+private Event1 <Score > endOfRoundEvent
+
+
+
+
+
+
+
+connections
+
+protected java.util.List<Connection > connections
+
+
+
+
+
+
+
+mayPause
+
+private boolean mayPause
+
+
+
+
+
@@ -198,16 +543,30 @@ Controller that manages a single round of rummikub
-
+
RoundControl
-public RoundControl (IGameState gameState,
+public RoundControl (IRoundState roundState,
IView view)
-Create a new RoundControl using the given gameState and view
+Create a new RoundControl using the given roundState and view
-Parameters: gameState
- initial game stateview
- view used for user interaction
+ Parameters: roundState
- initial round stateview
- view used for user interaction
+
+
+
+
+RoundControl
+
+protected RoundControl (IRoundState roundState,
+ IView view,
+ boolean mayPause)
+
+Create a new RoundControl using the given roundState and view
+
+
+Parameters: roundState
- initial round stateview
- view used for user interactionmayPause
- true when players are allowed to pause
@@ -220,16 +579,30 @@ public RoundControl (
-
-getEndRoundEvent
+
+getRoundStateUpdateEvent
-public IEvent getEndRoundEvent ()
+public IEvent1 <IRoundState > getRoundStateUpdateEvent ()
+
+Is emitted in network when a new turn starts
+
+
+
+Returns: the event
+
+
+
+
+
+getEndOfRoundEvent
+
+public IEvent1 <Score > getEndOfRoundEvent ()
End the round
-Returns: endRoundEvent
+ Returns: endOfRoundEvent
@@ -247,34 +620,255 @@ public void startRound ()
+
+continueRound
+
+public void continueRound ()
+
+Continue a saved round after loading
+
+
+
+
+
+
+
+
+abortRound
+
+public void abortRound ()
+
+Abort round if a new one is started or a saved one is loaded
+
+
+
+
+
+
+
+
+setRoundState
+
+protected void setRoundState (IRoundState state)
+
+Sets the current round state
+
+
+Parameters: state
- to be set
+
+
+
+
+
+showStartTurnPanel
+
+protected IView.BottomPanelType showStartTurnPanel ()
+
+
+
+
+
+
+
+
+prepareTurn
+
+protected void prepareTurn ()
+
+Prepare a player's turn by checking the player types and setting the
+ correct turn control
+
+
+
+
+
+
+
+
+doPrepareTurn
+
+protected void doPrepareTurn ()
+
+Prepare turn by setting the view components
+
+
+
+
+
+
+
+
+startTurn
+
+protected void startTurn ()
+
+Start a players turn with the correct turn control
+
+
+
+
+
+
+
+
+updateSidePanel
+
+private void updateSidePanel ()
+
+Update the side panel to show correct player order and heap size
+
+
+
+
+
+
+
+
+addTurnControlListeners
+
+protected void addTurnControlListeners (ITurnControl turnControl)
+
+Override this
+
+
+Parameters: turnControl
- current turn control
+
+
+
+
+
+createTurnControl
+
+protected ITurnControl createTurnControl ()
+
+Creates new turn control of the specified type
+
+
+
+Returns: the new turn control
+
+
+
+
deal
-void deal ()
+protected void deal ()
+Deal each player the number of stones specified in the game settings
+ (numberOfStonesDealt)
+
-
-tableDifference
+
+endOfTurn
-static java.util.Set<Stone > tableDifference (ITable oldTable,
- ITable newTable)
+protected void endOfTurn (RoundControl.InvalidTurnInfo invalidTurnInfo)
+End the players turn
+
+
+Parameters: invalidTurnInfo
- info about the player's last turn
+
+
+
+
+
+nextPlayer
+
+protected void nextPlayer ()
+
+Set the next player as active player if the round is not finished
+
-
-dealStone
+
+endOfRound
-void dealStone ()
+void endOfRound ()
+Ends the current round and emits an event setting the score
+
+
+
+
+
+
+
+
+removeListeners
+
+private void removeListeners ()
+
+Removes all listeners form the connections
+
+
+
+
+
+
+
+
+score
+
+private Score score ()
+
+Calculate the score for the current round and the total game score
+
+
+
+Returns: the new score
+
+
+
+
+
+updateBestScore
+
+private static Pair <java.lang.Integer,java.lang.Integer> updateBestScore (Pair <java.lang.Integer,java.lang.Integer> bestScore,
+ int stonePoints,
+ int size)
+
+Update the best score to find the winner in case of special game end
+ (everybody still has stones on hand)
+
+
+Parameters: bestScore
- of previous roundsstonePoints
- sum of points still left on handssize
- number of players in game (= size of score list in columns)
+Returns: Pair of maximum points and hand size
+
+
+
+
+
+getRestartRoundEvent
+
+public IEvent1 <PlayerSettings > getRestartRoundEvent ()
+
+Emitted when the round is aborted and needs to be restarted
+
+
+
+Returns: the event
+
+
+
+
+
+redeal
+
+protected void redeal ()
+
+Redeal stones and restart round if a player was allowed to redeal and chose
+ to do so
+
@@ -310,8 +904,8 @@ void dealStone ()
- PREV CLASS
- NEXT CLASS
+ PREV CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -331,9 +925,9 @@ void dealStone ()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/control/TurnTimer.html b/doc/jrummikub/control/TurnTimer.html
index 42bd298..f65eb7d 100644
--- a/doc/jrummikub/control/TurnTimer.html
+++ b/doc/jrummikub/control/TurnTimer.html
@@ -2,12 +2,12 @@
-
+
TurnTimer
-
+
@@ -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
@@ -111,7 +111,56 @@ Count-down timer used to limit the turn time
+
+
+
+
@@ -121,7 +170,8 @@ Count-down timer used to limit the turn time
Constructor Summary
-TurnTimer (IView view)
+TurnTimer (IView view,
+ int totalTime)
Create a new timer using a given view to display the current time left
@@ -181,6 +231,65 @@ Count-down timer used to limit the turn time
+
+
+
+
+
+
+view
+
+private IView view
+
+
+
+
+
+
+
+timeLeft
+
+private int timeLeft
+
+
+
+
+
+
+
+totalTime
+
+private int totalTime
+
+
+
+
+
+
+
+timer
+
+private javax.swing.Timer timer
+
+
+
+
+
+
+
+timeRunOutEvent
+
+private Event timeRunOutEvent
+
+
+
+
+
@@ -191,15 +300,16 @@ Count-down timer used to limit the turn time
-
diff --git a/doc/jrummikub/control/class-use/ApplicationControl.html b/doc/jrummikub/control/class-use/ApplicationControl.html
index 66a799a..1ff6a66 100644
--- a/doc/jrummikub/control/class-use/ApplicationControl.html
+++ b/doc/jrummikub/control/class-use/ApplicationControl.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.control.ApplicationControl
-
+
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -82,7 +83,58 @@ function windowTitle()
Uses of Class jrummikub.control.ApplicationControl
-No usage of jrummikub.control.ApplicationControl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -96,7 +148,8 @@ No usage of jrummikub.control.ApplicationControl
- Package
+ Overview
+ Package
Class
Use
Tree
diff --git a/doc/jrummikub/control/class-use/GameControl.html b/doc/jrummikub/control/class-use/GameControl.html
index ddc8911..15980ba 100644
--- a/doc/jrummikub/control/class-use/GameControl.html
+++ b/doc/jrummikub/control/class-use/GameControl.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.control.GameControl
-
+
@@ -83,7 +83,88 @@ function windowTitle()
Uses of Class jrummikub.control.GameControl
-No usage of jrummikub.control.GameControl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/control/class-use/ITurnTimer.html b/doc/jrummikub/control/class-use/ITurnTimer.html
index bf6b79f..296fb37 100644
--- a/doc/jrummikub/control/class-use/ITurnTimer.html
+++ b/doc/jrummikub/control/class-use/ITurnTimer.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.control.ITurnTimer
-
+
@@ -93,6 +93,10 @@ Packages that use jrummikub.control
+
+jrummikub.control.turn
+
+
@@ -121,16 +125,38 @@ Uses of
+
+
+
+
+
+
+
+
+Constructors in jrummikub.control.turn with parameters of type ITurnTimer
+
+
+HumanTurnControl (ITurnTimer testTimer)
Test only constructor
diff --git a/doc/jrummikub/control/class-use/RoundControl.html b/doc/jrummikub/control/class-use/RoundControl.html
index eb8d850..ff58ab9 100644
--- a/doc/jrummikub/control/class-use/RoundControl.html
+++ b/doc/jrummikub/control/class-use/RoundControl.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.control.RoundControl
-
+
@@ -83,7 +83,104 @@ function windowTitle()
Uses of Class jrummikub.control.RoundControl
-No usage of jrummikub.control.RoundControl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/control/class-use/TurnTimer.html b/doc/jrummikub/control/class-use/TurnTimer.html
index 16b27db..fec7a3a 100644
--- a/doc/jrummikub/control/class-use/TurnTimer.html
+++ b/doc/jrummikub/control/class-use/TurnTimer.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.control.TurnTimer
-
+
diff --git a/doc/jrummikub/control/package-frame.html b/doc/jrummikub/control/package-frame.html
index 002929f..f230cef 100644
--- a/doc/jrummikub/control/package-frame.html
+++ b/doc/jrummikub/control/package-frame.html
@@ -2,12 +2,12 @@
-
+
jrummikub.control
-
+
@@ -34,18 +34,37 @@ Interfaces
Classes
+AbstractSettingsControl
+
+ApplicationControl
+
GameControl
+LoginControl
+
RoundControl
-TurnControl
+RoundControl.InvalidTurnInfo
-TurnControl.HandStonePositionComparator
+SaveControl
+
+SettingsControl
TurnTimer
+
+
+
diff --git a/doc/jrummikub/control/package-summary.html b/doc/jrummikub/control/package-summary.html
index 1091c76..ca6f66d 100644
--- a/doc/jrummikub/control/package-summary.html
+++ b/doc/jrummikub/control/package-summary.html
@@ -2,12 +2,12 @@
-
+
jrummikub.control
-
+
@@ -55,8 +55,8 @@ function windowTitle()
- PREV PACKAGE
- NEXT PACKAGE
+ PREV PACKAGE
+ NEXT PACKAGE
FRAMES
NO FRAMES
@@ -103,20 +103,39 @@ Package jrummikub.control
Class Summary
+AbstractSettingsControl
+Abstract control class managing joined methods and attributes of all
+ different (network, default...) settings controls
+
+
+ApplicationControl
+The application control controls the settings for a new games and create the
+ game control
+
+
GameControl
Controls a Game, at some point including all Rounds, starts new Rounds
+LoginControl
+Control checking and processing login data for network game
+
+
RoundControl
Controller that manages a single round of rummikub
-TurnControl
-Controller for a single turn made by a human player
+RoundControl.InvalidTurnInfo
+Table, stone sets and type of an invalid turn to allow a user to track his
+ own errors
-TurnControl.HandStonePositionComparator
-
+SaveControl
+The save control is responsible for loading and saving game and round states
+
+
+SettingsControl
+The settings control controls the settings panel
TurnTimer
@@ -125,6 +144,21 @@ Package jrummikub.control
+
+
+
+
+
+Enum Summary
+
+
+RoundControl.InvalidTurnType
+Enum summarizing the different types of invalid turns to set the correct
+ panel message
+
+
+
+
@@ -158,8 +192,8 @@ Package jrummikub.control
- PREV PACKAGE
- NEXT PACKAGE
+ PREV PACKAGE
+ NEXT PACKAGE
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/control/package-tree.html b/doc/jrummikub/control/package-tree.html
index 59c2f2a..b89ea75 100644
--- a/doc/jrummikub/control/package-tree.html
+++ b/doc/jrummikub/control/package-tree.html
@@ -2,12 +2,12 @@
-
+
jrummikub.control Class Hierarchy
-
+
@@ -55,8 +55,8 @@ function windowTitle()
- PREV
- NEXT
+ PREV
+ NEXT
FRAMES
NO FRAMES
@@ -92,8 +92,10 @@ Class Hierarchy
@@ -101,6 +103,16 @@ Interface Hierarchy
+
+Enum Hierarchy
+
+
+java.lang.Object
+java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
+
+
+
@@ -131,8 +143,8 @@ Interface Hierarchy
- PREV
- NEXT
+ PREV
+ NEXT
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/control/package-use.html b/doc/jrummikub/control/package-use.html
index 39dddbe..924169b 100644
--- a/doc/jrummikub/control/package-use.html
+++ b/doc/jrummikub/control/package-use.html
@@ -2,12 +2,12 @@
-
+
Uses of Package jrummikub.control
-
+
@@ -93,6 +93,14 @@ Packages that use jrummik
jrummikub.control
+
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
@@ -103,11 +111,132 @@ Packages that use jrummik
Classes in jrummikub.control used by jrummikub.control
+AbstractSettingsControl
+
+
+ Abstract control class managing joined methods and attributes of all
+ different (network, default...) settings controls
+
+
+ApplicationControl
+
+
+ The application control controls the settings for a new games and create the
+ game control
+
+
+GameControl
+
+
+ Controls a Game, at some point including all Rounds, starts new Rounds
+
+
ITurnTimer
Interface for the TurnTimer
+
+LoginControl
+
+
+ Control checking and processing login data for network game
+
+
+RoundControl
+
+
+ Controller that manages a single round of rummikub
+
+
+RoundControl.InvalidTurnInfo
+
+
+ Table, stone sets and type of an invalid turn to allow a user to track his
+ own errors
+
+
+RoundControl.InvalidTurnType
+
+
+ Enum summarizing the different types of invalid turns to set the correct
+ panel message
+
+
+SaveControl
+
+
+ The save control is responsible for loading and saving game and round states
+
+
+SettingsControl
+
+
+ The settings control controls the settings panel
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/model/GameState.html b/doc/jrummikub/model/GameState.html
index b99ddf5..4a9e6ae 100644
--- a/doc/jrummikub/model/GameState.html
+++ b/doc/jrummikub/model/GameState.html
@@ -2,12 +2,12 @@
-
+
GameState
-
+
@@ -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
@@ -96,22 +96,65 @@ java.lang.Object
jrummikub.model.GameState
-All Implemented Interfaces: IGameState
+All Implemented Interfaces: java.io.Serializable
-public class GameState extends java.lang.Objectimplements IGameState
+public class GameState extends java.lang.Objectimplements java.io.Serializable
-Class managing the overall and momentary GameState
+Class that stores information for a game of multiple rounds
+
+See Also: Serialized Form
+
+
+
+
@@ -124,7 +167,7 @@ Class managing the overall and momentary GameState
GameState ()
- Create a new GameState with an empty table and (currently) 4 new players.
+
@@ -138,59 +181,60 @@ Class managing the overall and momentary GameState
- IPlayer
-getActivePlayer ()
+ Score
+getAccumulatedScore ()
- Returns the currently active player
-
-
-
- StoneHeap
-getGameHeap ()
-
-
- Returns the heap of stones to draw from
-
-
-
- IPlayer
-getNthNextPlayer (int i)
-
-
- Returns the player that would be the active player after i turns
+ Calculated the accumulated score over the played rounds
int
-getPlayerCount ()
+getFirstRoundFirstPlayer ()
- Returns the number of players
+ Gets the number of the first player of the first round
- ITable
-getTable ()
+ PlayerSettings
+getLastPlayerRedealed ()
- Get the current Table
+ Returns the player that has redealed last
+
+
+
+ java.util.List<Score >
+getScores ()
+
+
+ Returns the list of players' scores in the rounds played before
+
+
+
+private java.lang.Boolean[]
+getWinners (java.lang.Integer[] points,
+ int[] wins)
+
+
+ Returns whether players have won
void
-nextPlayer ()
+setFirstRoundFirstPlayer (int firstRoundFirstPlayer)
- Changes the activePlayer to the next Player
in the list
+ Sets the number of the first player of the first round
void
-setTable (ITable table)
+setLastPlayerRedealed (PlayerSettings lastPlayerRedealed)
- Sets the current Table
+ Sets the player that has redealed last
@@ -205,6 +249,55 @@ Class managing the overall and momentary GameState
+
+
+
+
+
+
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
+
+firstRoundFirstPlayer
+
+private int firstRoundFirstPlayer
+
+
+
+
+
+
+
+scores
+
+private java.util.ArrayList<Score > scores
+
+
+
+
+
+
+
+lastPlayerRedealed
+
+private PlayerSettings lastPlayerRedealed
+
+
+
+
+
@@ -220,8 +313,6 @@ GameState
public GameState ()
-Create a new GameState with an empty table and (currently) 4 new players.
-
@@ -234,126 +325,120 @@ public GameState ()
-
-getTable
+
+getFirstRoundFirstPlayer
-public ITable getTable ()
+public int getFirstRoundFirstPlayer ()
-Description copied from interface: IGameState
-Get the current Table
+Gets the number of the first player of the first round
-Specified by: getTable
in interface IGameState
+
-Returns: The current Table
+Returns: the number of the first player of the first round
-
-setTable
+
+setFirstRoundFirstPlayer
-public void setTable (ITable table)
+public void setFirstRoundFirstPlayer (int firstRoundFirstPlayer)
-Description copied from interface: IGameState
-Sets the current Table
+Sets the number of the first player of the first round
-Specified by: setTable
in interface IGameState
+
-Parameters: table
- The new Table
+Parameters: firstRoundFirstPlayer
- the number of the first player of the first round
-
-getPlayerCount
+
+setLastPlayerRedealed
-public int getPlayerCount ()
+public void setLastPlayerRedealed (PlayerSettings lastPlayerRedealed)
-Description copied from interface: IGameState
-Returns the number of players
+Sets the player that has redealed last
-Specified by: getPlayerCount
in interface IGameState
+
-
-Returns: number of players
+Parameters: lastPlayerRedealed
- the player to set
-
-nextPlayer
+
+getLastPlayerRedealed
-public void nextPlayer ()
+public PlayerSettings getLastPlayerRedealed ()
-Description copied from interface: IGameState
-Changes the activePlayer to the next Player
in the list
+Returns the player that has redealed last
-Specified by: nextPlayer
in interface IGameState
+
-
+
+Returns: the player
-
-getNthNextPlayer
+
+getScores
-public IPlayer getNthNextPlayer (int i)
+public java.util.List<Score > getScores ()
-Description copied from interface: IGameState
-Returns the player that would be the active player after i turns
+Returns the list of players' scores in the rounds played before
-Specified by: getNthNextPlayer
in interface IGameState
+
-Parameters: i
- number of turns
-Returns: player active after i turns
+
+Returns: the list of scores
-
-getActivePlayer
+
+getWinners
-public IPlayer getActivePlayer ()
+private java.lang.Boolean[] getWinners (java.lang.Integer[] points,
+ int[] wins)
-Description copied from interface: IGameState
-Returns the currently active player
+Returns whether players have won
-Specified by: getActivePlayer
in interface IGameState
+
-
-Returns: currently active player
+Parameters: points
- the player's pointswins
- the number of wins per player
+Returns: whether a player has won
-
-getGameHeap
+
+getAccumulatedScore
-public StoneHeap getGameHeap ()
+public Score getAccumulatedScore ()
-Description copied from interface: IGameState
-Returns the heap of stones to draw from
+Calculated the accumulated score over the played rounds
-Specified by: getGameHeap
in interface IGameState
+
-Returns: heap of stones
+Returns: the accumulated score
@@ -387,7 +472,7 @@ public
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -408,9 +493,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/model/Hand.html b/doc/jrummikub/model/Hand.html
index 985907a..fdea6c2 100644
--- a/doc/jrummikub/model/Hand.html
+++ b/doc/jrummikub/model/Hand.html
@@ -2,12 +2,12 @@
-
+
Hand
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -97,7 +97,7 @@ java.lang.Object
jrummikub.model.Hand
-All Implemented Interfaces: java.lang.Cloneable, java.lang.Iterable<Pair <Stone ,Position >>, IHand , IStoneTray <Stone >
+All Implemented Interfaces: java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Pair <Stone ,Position >>, IHand , IStoneTray <Stone >
@@ -109,6 +109,8 @@ Class managing a Serialized Form
@@ -141,11 +143,19 @@ Class managing a
-static int
-HEIGHT
+private static java.util.Comparator<Pair <java.lang.Integer,StoneColor >>
+comparator
- The height of the hand
+ The measure to compare the stones by
+
+
+
+private static long
+serialVersionUID
+
+
+
@@ -192,6 +202,14 @@ Class managing a
+private static Pair <java.util.TreeMap<Pair <java.lang.Integer,StoneColor >,java.lang.Integer>,java.lang.Integer>
+countStones (java.util.List<Stone > stones)
+
+
+ Counts the numbers of stones
+
+
+
protected Pair <Position ,StoneTray.Direction >
fixInvalidDrop (Stone stone,
Position pos,
@@ -201,6 +219,56 @@ Class managing a
+
+ int
+getFreeRowSpace (int row)
+
+
+ Gets the amount of free space in a hand row
+
+
+
+ int
+getIdenticalStoneCount ()
+
+
+ Counts the pairs of identical stones
+
+
+
+ int
+getRowCount ()
+
+
+ The number of used rows
+
+
+
+ int
+getStonePoints (GameSettings settings)
+
+
+ Get the accumulated number of points of stones in the hand
+
+
+
+private static void
+incrementStoneCount (java.util.TreeMap<Pair <java.lang.Integer,StoneColor >,java.lang.Integer> stones,
+ Pair <java.lang.Integer,StoneColor > stone)
+
+
+ Increments the count of a stone in the list of all stones
+
+
+
+ boolean
+isInitialMeldPossible (GameSettings settings)
+
+
+ Tests whether it is possible to lay down an initial meld using the stones
+ on the hand
+
@@ -208,7 +276,7 @@ Class managing a Methods inherited from class jrummikub.model.StoneTray
-clone , drop , getPosition , getSize , iterator , pickUp
+clone , contains , drop , getPosition , getSize , iterator , pickUp
@@ -226,7 +294,7 @@ Class managing a Methods inherited from interface jrummikub.model.IStoneTray
-clone , drop , getPosition , getSize , pickUp
+clone , contains , drop , getPosition , getSize , pickUp
@@ -251,6 +319,16 @@ Class managing a
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
WIDTH
@@ -263,15 +341,15 @@ public static final int WIDTH
-
-HEIGHT
+
+comparator
-public static final int HEIGHT
+private static final java.util.Comparator<Pair <java.lang.Integer,StoneColor >> comparator
-The height of the hand
+The measure to compare the stones by
-See Also: Constant Field Values
+
@@ -301,6 +379,42 @@ public Hand ()
+
+getFreeRowSpace
+
+public int getFreeRowSpace (int row)
+
+Description copied from interface: IHand
+Gets the amount of free space in a hand row
+
+
+Specified by: getFreeRowSpace
in interface IHand
+
+
+Parameters: row
- the row number
+Returns: the number of stones that can fit into the row
+
+
+
+
+
+getRowCount
+
+public int getRowCount ()
+
+Description copied from interface: IHand
+The number of used rows
+
+
+Specified by: getRowCount
in interface IHand
+
+
+
+Returns: the number of rows
+
+
+
+
fixInvalidDrop
@@ -320,6 +434,95 @@ protected
+getStonePoints
+
+public int getStonePoints (GameSettings settings)
+
+Description copied from interface: IHand
+Get the accumulated number of points of stones in the hand
+
+
+Specified by: getStonePoints
in interface IHand
+
+
+Parameters: settings
- the game settings
+Returns: points
+
+
+
+
+
+isInitialMeldPossible
+
+public boolean isInitialMeldPossible (GameSettings settings)
+
+Description copied from interface: IHand
+Tests whether it is possible to lay down an initial meld using the stones
+ on the hand
+
+
+Specified by: isInitialMeldPossible
in interface IHand
+
+
+Parameters: settings
- the game settings
+Returns: true if an initial meld is possible
+
+
+
+
+
+incrementStoneCount
+
+private static void incrementStoneCount (java.util.TreeMap<Pair <java.lang.Integer,StoneColor >,java.lang.Integer> stones,
+ Pair <java.lang.Integer,StoneColor > stone)
+
+Increments the count of a stone in the list of all stones
+
+
+
+
+
+Parameters: stones
- all stones and their respective numbersstone
- the start stone
+
+
+
+
+
+countStones
+
+private static Pair <java.util.TreeMap<Pair <java.lang.Integer,StoneColor >,java.lang.Integer>,java.lang.Integer> countStones (java.util.List<Stone > stones)
+
+Counts the numbers of stones
+
+
+
+
+
+Parameters: stones
- the stones to count
+Returns: the numbers for all stones
+
+
+
+
+
+getIdenticalStoneCount
+
+public int getIdenticalStoneCount ()
+
+Description copied from interface: IHand
+Counts the pairs of identical stones
+
+
+Specified by: getIdenticalStoneCount
in interface IHand
+
+
+
+Returns: number of identical stone pairs
+
+
@@ -352,7 +555,7 @@ protected
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/model/IHand.html b/doc/jrummikub/model/IHand.html
index 293f9ad..3c8ea74 100644
--- a/doc/jrummikub/model/IHand.html
+++ b/doc/jrummikub/model/IHand.html
@@ -2,12 +2,12 @@
-
+
IHand
-
+
@@ -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
@@ -92,7 +92,7 @@ jrummikub.model
Interface IHand
-All Superinterfaces: java.lang.Cloneable, IStoneTray <Stone >, java.lang.Iterable<Pair <Stone ,Position >>
+All Superinterfaces: java.lang.Cloneable, IStoneTray <Stone >, java.lang.Iterable<Pair <Stone ,Position >>, java.io.Serializable
All Known Implementing Classes: Hand
@@ -119,6 +119,47 @@ Interface for the
Method Summary
+
+
+ int
+getFreeRowSpace (int row)
+
+
+ Gets the amount of free space in a hand row
+
+
+
+ int
+getIdenticalStoneCount ()
+
+
+ Counts the pairs of identical stones
+
+
+
+ int
+getRowCount ()
+
+
+ The number of used rows
+
+
+
+ int
+getStonePoints (GameSettings settings)
+
+
+ Get the accumulated number of points of stones in the hand
+
+
+
+ boolean
+isInitialMeldPossible (GameSettings settings)
+
+
+ Tests whether it is possible to lay down an initial meld using the stones
+ on the hand
+
@@ -126,7 +167,7 @@ Interface for the Methods inherited from interface jrummikub.model.IStoneTray
-clone , drop , getPosition , getSize , pickUp
+clone , contains , drop , getPosition , getSize , pickUp
@@ -140,6 +181,101 @@ Interface for the
+
+
+
+getRowCount
+
+int getRowCount ()
+
+The number of used rows
+
+
+
+
+
+
+Returns: the number of rows
+
+
+
+
+
+getFreeRowSpace
+
+int getFreeRowSpace (int row)
+
+Gets the amount of free space in a hand row
+
+
+
+
+
+Parameters: row
- the row number
+Returns: the number of stones that can fit into the row
+
+
+
+
+
+getStonePoints
+
+int getStonePoints (GameSettings settings)
+
+Get the accumulated number of points of stones in the hand
+
+
+
+
+
+Parameters: settings
- the game settings
+Returns: points
+
+
+
+
+
+isInitialMeldPossible
+
+boolean isInitialMeldPossible (GameSettings settings)
+
+Tests whether it is possible to lay down an initial meld using the stones
+ on the hand
+
+
+
+
+
+Parameters: settings
- the game settings
+Returns: true if an initial meld is possible
+
+
+
+
+
+getIdenticalStoneCount
+
+int getIdenticalStoneCount ()
+
+Counts the pairs of identical stones
+
+
+
+
+
+
+Returns: number of identical stone pairs
+
+
@@ -171,7 +307,7 @@ Interface for the
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -192,9 +328,9 @@ Interface for the
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/model/IPlayer.html b/doc/jrummikub/model/IPlayer.html
index 9e6e86d..38beef7 100644
--- a/doc/jrummikub/model/IPlayer.html
+++ b/doc/jrummikub/model/IPlayer.html
@@ -2,12 +2,12 @@
-
+
IPlayer
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -92,11 +92,14 @@ jrummikub.model
Interface IPlayer
+All Superinterfaces: java.io.Serializable
+
+
All Known Implementing Classes: Player
-public interface IPlayer
+public interface IPlayer extends java.io.Serializable
@@ -118,14 +121,6 @@ Interface for
- java.awt.Color
-getColor ()
-
-
- Return the player's color
-
-
-
IHand
getHand ()
@@ -134,11 +129,67 @@ Interface for
- java.lang.String
-getName ()
+ boolean
+getLaidOut ()
- Return the name of the player
+ Has the player laid out yet?
+
+
+
+ int
+getLastTurnStoneCount ()
+
+
+ Gets the number of stones put on table in player's last turn
+
+
+
+ PlayerSettings
+getPlayerSettings ()
+
+
+ Returns the player settings
+
+
+
+ void
+setHand (IHand hand)
+
+
+ Set the current hand of the player
+
+
+
+ void
+setLaidOut (boolean laidOut)
+
+
+ Set if the player laid out
+
+
+
+ void
+setLastTurnInvalid (boolean value)
+
+
+ Sets last turn invalid
+
+
+
+ void
+setLastTurnStoneCount (int value)
+
+
+ Sets the number of stones out on the table in player's last turn
+
+
+
+ boolean
+wasLastTurnInvalid ()
+
+
+ Getter for last turn invalid
@@ -162,36 +213,143 @@ getHand
Get the current hand of the player
+
+
+
Returns: the player's hand
-
-getColor
+
+setHand
-java.awt.Color getColor ()
+void setHand (IHand hand)
-Return the player's color
+Set the current hand of the player
-
-Returns: the player's color
+
+
+
+Parameters: hand
- the new hand
-
-getName
+
+getLaidOut
-java.lang.String getName ()
+boolean getLaidOut ()
-Return the name of the player
+Has the player laid out yet?
+
+
+
-Returns: the player's name
+ Returns: if the player has laid out
+
+
+
+
+
+getPlayerSettings
+
+PlayerSettings getPlayerSettings ()
+
+Returns the player settings
+
+
+
+
+
+
+Returns: the player settings
+
+
+
+
+
+setLaidOut
+
+void setLaidOut (boolean laidOut)
+
+Set if the player laid out
+
+
+
+
+
+Parameters: laidOut
- the player laid out
+
+
+
+
+
+wasLastTurnInvalid
+
+boolean wasLastTurnInvalid ()
+
+Getter for last turn invalid
+
+
+
+
+
+
+Returns: last turn invalid
+
+
+
+
+
+setLastTurnInvalid
+
+void setLastTurnInvalid (boolean value)
+
+Sets last turn invalid
+
+
+
+
+
+Parameters: value
- last turn invalid
+
+
+
+
+
+getLastTurnStoneCount
+
+int getLastTurnStoneCount ()
+
+Gets the number of stones put on table in player's last turn
+
+
+
+
+
+
+Returns: number of stones
+
+
+
+
+
+setLastTurnStoneCount
+
+void setLastTurnStoneCount (int value)
+
+Sets the number of stones out on the table in player's last turn
+
+
+
+
+
+Parameters: value
- number of stones
@@ -226,7 +384,7 @@ java.lang.String getName ()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/model/IStoneTray.html b/doc/jrummikub/model/IStoneTray.html
index f2a07c7..341c384 100644
--- a/doc/jrummikub/model/IStoneTray.html
+++ b/doc/jrummikub/model/IStoneTray.html
@@ -2,12 +2,12 @@
-
+
IStoneTray
-
+
@@ -55,7 +55,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -94,7 +94,7 @@ Interface IStoneTray<E extends
Type Parameters: E
- Objects held by the IStoneTray
-All Superinterfaces: java.lang.Cloneable, java.lang.Iterable<Pair <E,Position >>
+All Superinterfaces: java.lang.Cloneable, java.lang.Iterable<Pair <E,Position >>, java.io.Serializable
All Known Subinterfaces: IHand , ITable
@@ -104,7 +104,7 @@ Interface IStoneTray<E extends
-public interface IStoneTray<E extends Sizeable > extends java.lang.Iterable<Pair <E,Position >>, java.lang.Cloneable
+public interface IStoneTray<E extends Sizeable > extends java.lang.Iterable<Pair <E,Position >>, java.lang.Cloneable, java.io.Serializable
@@ -134,6 +134,14 @@ Interface for the
+ boolean
+contains (E object)
+
+
+ Search for an object within the stone tray
+
+
+
void
drop (E object,
Position position)
@@ -271,6 +279,23 @@ int getSize ()
Returns: number of objects
+
+
+
+contains
+
+boolean contains (E object)
+
+Search for an object within the stone tray
+
+
+
+
+
+Parameters: object
- object to search for
+Returns: object found in stone tray
+
+
@@ -302,7 +327,7 @@ int getSize ()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
diff --git a/doc/jrummikub/model/ITable.html b/doc/jrummikub/model/ITable.html
index ea079ae..e753208 100644
--- a/doc/jrummikub/model/ITable.html
+++ b/doc/jrummikub/model/ITable.html
@@ -2,12 +2,12 @@
-
+
ITable
-
+
@@ -92,7 +92,7 @@ jrummikub.model
Interface ITable
-All Superinterfaces: java.lang.Cloneable, IStoneTray <StoneSet >, java.lang.Iterable<Pair <StoneSet ,Position >>
+All Superinterfaces: java.lang.Cloneable, IStoneTray <StoneSet >, java.lang.Iterable<Pair <StoneSet ,Position >>, java.io.Serializable
All Known Implementing Classes: Table
@@ -150,7 +150,7 @@ Interface for the Methods inherited from interface jrummikub.model.IStoneTray
-clone , drop , getPosition , getSize , pickUp
+clone , contains , drop , getPosition , getSize , pickUp
diff --git a/doc/jrummikub/model/Player.html b/doc/jrummikub/model/Player.html
index a3f4e3d..d1aa71f 100644
--- a/doc/jrummikub/model/Player.html
+++ b/doc/jrummikub/model/Player.html
@@ -2,12 +2,12 @@
-
+
Player
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV CLASS
- NEXT 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
@@ -96,7 +96,7 @@ java.lang.Object
jrummikub.model.Player
-All Implemented Interfaces: IPlayer
+All Implemented Interfaces: java.io.Serializable, IPlayer
@@ -108,10 +108,69 @@ Class managing player data. No methods in release 1
+
+See Also: Serialized Form
+
+
+
+
@@ -121,8 +180,7 @@ Class managing player data. No methods in release 1
Constructor Summary
-Player (java.lang.String name,
- java.awt.Color color)
+Player (PlayerSettings settings)
Create a new player with a given name and color
@@ -139,14 +197,6 @@ Class managing player data. No methods in release 1
- java.awt.Color
-getColor ()
-
-
- Return the player's color
-
-
-
IHand
getHand ()
@@ -155,11 +205,67 @@ Class managing player data. No methods in release 1
- java.lang.String
-getName ()
+ boolean
+getLaidOut ()
- Return the name of the player
+ Has the player laid out yet?
+
+
+
+ int
+getLastTurnStoneCount ()
+
+
+ Gets the number of stones put on table in player's last turn
+
+
+
+ PlayerSettings
+getPlayerSettings ()
+
+
+ Returns the player settings
+
+
+
+ void
+setHand (IHand hand)
+
+
+ Set the current hand of the player
+
+
+
+ void
+setLaidOut (boolean laidOut)
+
+
+ Set if the player laid out
+
+
+
+ void
+setLastTurnInvalid (boolean value)
+
+
+ Sets last turn invalid
+
+
+
+ void
+setLastTurnStoneCount (int value)
+
+
+ Sets the number of stones out on the table in player's last turn
+
+
+
+ boolean
+wasLastTurnInvalid ()
+
+
+ Getter for last turn invalid
@@ -174,6 +280,75 @@ Class managing player data. No methods in release 1
+
+
+
+
+
+
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
+
+settings
+
+private PlayerSettings settings
+
+
+
+
+
+
+
+hand
+
+private IHand hand
+
+
+
+
+
+
+
+laidOut
+
+private boolean laidOut
+
+
+
+
+
+
+
+lastTurnInvalid
+
+private boolean lastTurnInvalid
+
+
+
+
+
+
+
+lastTurnStoneCount
+
+private int lastTurnStoneCount
+
+
+
+
+
@@ -184,16 +359,15 @@ Class managing player data. No methods in release 1
-
+
Player
-public Player (java.lang.String name,
- java.awt.Color color)
+public Player (PlayerSettings settings)
Create a new player with a given name and color
-Parameters: name
- player namecolor
- player's color
+ Parameters: settings
- the player settings
@@ -224,38 +398,142 @@ public
-getColor
+
+setHand
-public java.awt.Color getColor ()
+public void setHand (IHand hand)
-Description copied from interface: IPlayer
-Return the player's color
+Description copied from interface: IPlayer
+Set the current hand of the player
-Specified by: getColor
in interface IPlayer
+ Specified by: setHand
in interface IPlayer
-
-Returns: the player's color
+Parameters: hand
- the new hand
-
-getName
+
+getLaidOut
-public java.lang.String getName ()
+public boolean getLaidOut ()
-Description copied from interface: IPlayer
-Return the name of the player
+Description copied from interface: IPlayer
+Has the player laid out yet?
-Specified by: getName
in interface IPlayer
+ Specified by: getLaidOut
in interface IPlayer
-Returns: the player's name
+Returns: if the player has laid out
+
+
+
+
+
+setLaidOut
+
+public void setLaidOut (boolean laidOut)
+
+Description copied from interface: IPlayer
+Set if the player laid out
+
+
+Specified by: setLaidOut
in interface IPlayer
+
+
+Parameters: laidOut
- the player laid out
+
+
+
+
+
+getPlayerSettings
+
+public PlayerSettings getPlayerSettings ()
+
+Description copied from interface: IPlayer
+Returns the player settings
+
+
+Specified by: getPlayerSettings
in interface IPlayer
+
+
+
+Returns: the player settings
+
+
+
+
+
+wasLastTurnInvalid
+
+public boolean wasLastTurnInvalid ()
+
+Description copied from interface: IPlayer
+Getter for last turn invalid
+
+
+Specified by: wasLastTurnInvalid
in interface IPlayer
+
+
+
+Returns: last turn invalid
+
+
+
+
+
+setLastTurnInvalid
+
+public void setLastTurnInvalid (boolean value)
+
+Description copied from interface: IPlayer
+Sets last turn invalid
+
+
+Specified by: setLastTurnInvalid
in interface IPlayer
+
+
+Parameters: value
- last turn invalid
+
+
+
+
+
+getLastTurnStoneCount
+
+public int getLastTurnStoneCount ()
+
+Description copied from interface: IPlayer
+Gets the number of stones put on table in player's last turn
+
+
+Specified by: getLastTurnStoneCount
in interface IPlayer
+
+
+
+Returns: number of stones
+
+
+
+
+
+setLastTurnStoneCount
+
+public void setLastTurnStoneCount (int value)
+
+Description copied from interface: IPlayer
+Sets the number of stones out on the table in player's last turn
+
+
+Specified by: setLastTurnStoneCount
in interface IPlayer
+
+
+Parameters: value
- number of stones
@@ -290,7 +568,7 @@ public java.lang.String getName ()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -310,9 +588,9 @@ public java.lang.String getName ()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/model/Position.html b/doc/jrummikub/model/Position.html
index 80f96fd..5a369cb 100644
--- a/doc/jrummikub/model/Position.html
+++ b/doc/jrummikub/model/Position.html
@@ -2,12 +2,12 @@
-
+
Position
-
+
@@ -55,8 +55,8 @@ function windowTitle()
- PREV CLASS
- NEXT CLASS
+ PREV 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
@@ -95,9 +95,12 @@ Class Position
java.lang.Object
jrummikub.model.Position
+
+All Implemented Interfaces: java.io.Serializable
+
-public class Position extends java.lang.Object
+public class Position extends java.lang.Objectimplements java.io.Serializable
@@ -106,10 +109,45 @@ java.lang.Object
+
+See Also: Serialized Form
+
+
+
+
+
+Field Summary
+
+
+
+private static long
+serialVersionUID
+
+
+
+
+
+
+private double
+x
+
+
+
+
+
+
+private double
+y
+
+
+
+
+
+
@@ -119,8 +157,8 @@ java.lang.Object
Constructor Summary
-Position (float x,
- float y)
+Position (double x,
+ double y)
Create a new position by specifying the coordinates
@@ -145,7 +183,7 @@ java.lang.Object
- float
+ double
getX ()
@@ -153,7 +191,7 @@ java.lang.Object
- float
+ double
getY ()
@@ -188,6 +226,45 @@ java.lang.Object
+
+
+
+
+
+
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
+
+x
+
+private double x
+
+
+
+
+
+
+
+y
+
+private double y
+
+
+
+
+
@@ -198,11 +275,11 @@ java.lang.Object
-
+
Position
-public Position (float x,
- float y)
+public Position (double x,
+ double y)
Create a new position by specifying the coordinates
@@ -223,11 +300,14 @@ public Position (float x,
getX
-public float getX ()
+public double getX ()
Get the x coordinate of the position
+
+
+
Returns: x coordinate
@@ -237,11 +317,14 @@ public float getX ()
getY
-public float getY ()
+public double getY ()
Get the y coordinate of the position
+
+
+
Returns: y coordinate
@@ -319,8 +402,8 @@ public int hashCode ()
- PREV CLASS
- NEXT CLASS
+ PREV CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -340,9 +423,9 @@ public int hashCode ()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/model/Sizeable.html b/doc/jrummikub/model/Sizeable.html
index f6a2942..2ca5dcf 100644
--- a/doc/jrummikub/model/Sizeable.html
+++ b/doc/jrummikub/model/Sizeable.html
@@ -2,12 +2,12 @@
-
+
Sizeable
-
+
@@ -55,7 +55,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -205,7 +205,7 @@ float getHeight ()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
diff --git a/doc/jrummikub/model/Stone.html b/doc/jrummikub/model/Stone.html
index 97fafb2..6f694c5 100644
--- a/doc/jrummikub/model/Stone.html
+++ b/doc/jrummikub/model/Stone.html
@@ -2,12 +2,12 @@
-
+
Stone
-
+
@@ -76,9 +76,9 @@ function windowTitle()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
@@ -96,11 +96,11 @@ java.lang.Object
jrummikub.model.Stone
-All Implemented Interfaces: Sizeable
+All Implemented Interfaces: java.io.Serializable, Sizeable
-public class Stone extends java.lang.Objectimplements Sizeable
+public class Stone extends java.lang.Objectimplements Sizeable , java.io.Serializable
@@ -108,10 +108,53 @@ Basic Rummikub Stone
+
+See Also: Serialized Form
+
+
+
+
@@ -204,6 +247,55 @@ Basic Rummikub Stone
+
+
+
+
+
+
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
+
+value
+
+private int value
+
+
+
+
+
+
+
+color
+
+private StoneColor color
+
+
+
+
+
+
+
+joker
+
+private final boolean joker
+
+
+
+
+
@@ -219,8 +311,7 @@ Stone
public Stone (StoneColor color)
-Creates a joker of the given color. The color is only used for
- displaying.
+Creates a joker of the given color. The color is only used for displaying.
Parameters: color
- joker color
@@ -400,9 +491,9 @@ public java.lang.String toString ()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/model/StoneColor.html b/doc/jrummikub/model/StoneColor.html
index 800023b..6921c5c 100644
--- a/doc/jrummikub/model/StoneColor.html
+++ b/doc/jrummikub/model/StoneColor.html
@@ -2,12 +2,12 @@
-
+
StoneColor
-
+
@@ -121,6 +121,12 @@ Class specifying possible StoneColors
Enum Constant Summary
+AQUA
+
+
+
+
+
BLACK
@@ -129,6 +135,18 @@ Class specifying possible StoneColors
BLUE
+
+
+
+
+GRAY
+
+
+
+
+
+GREEN
+
@@ -141,6 +159,12 @@ Class specifying possible StoneColors
RED
+
+
+
+
+VIOLET
+
@@ -241,6 +265,46 @@ public static final
+GREEN
+
+public static final StoneColor GREEN
+
+
+
+
+
+
+
+VIOLET
+
+public static final StoneColor VIOLET
+
+
+
+
+
+
+
+AQUA
+
+public static final StoneColor AQUA
+
+
+
+
+
+
+
+GRAY
+
+public static final StoneColor GRAY
+
+
+
+
diff --git a/doc/jrummikub/model/StoneHeap.html b/doc/jrummikub/model/StoneHeap.html
index 35429a0..e0eb1ee 100644
--- a/doc/jrummikub/model/StoneHeap.html
+++ b/doc/jrummikub/model/StoneHeap.html
@@ -2,12 +2,12 @@
-
+
StoneHeap
-
+
@@ -95,9 +95,12 @@ Class StoneHeap
java.lang.Object
jrummikub.model.StoneHeap
+
+All Implemented Interfaces: java.io.Serializable
+
-public class StoneHeap extends java.lang.Object
+ public class StoneHeap extends java.lang.Objectimplements java.io.Serializable
@@ -106,6 +109,8 @@ StoneHeap creates all Serialized Form
@@ -119,9 +124,25 @@ StoneHeap creates all
-(package private) java.util.List<Stone >
+private java.util.Random
+generator
+
+
+
+
+
+
+(package private) java.util.ArrayList<Stone >
heap
+
+
+
+
+
+private static long
+serialVersionUID
+
@@ -136,7 +157,7 @@ StoneHeap creates all
- StoneHeap ()
+StoneHeap (GameSettings gameSettings)
Creates 106 Stones according to standard rules
@@ -206,10 +227,30 @@ StoneHeap creates all
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
heap
-java.util.List<Stone > heap
+java.util.ArrayList<Stone > heap
+
+
+
+
+
+
+
+generator
+
+private java.util.Random generator
@@ -225,13 +266,15 @@ java.util.List<
+
StoneHeap
-public StoneHeap ()
+public StoneHeap (GameSettings gameSettings)
Creates 106 Stones according to standard rules
+
+Parameters: gameSettings
- (for number of sets/jokers, colors etc.)
@@ -252,6 +295,9 @@ public Stone
from the heap and returns it
+
+
+
Returns: the drawn stone
@@ -266,6 +312,9 @@ public java.util.List<Stone
s from the heap and returns them
+
+
+
Parameters: number
- number of requested Stones
Returns: list of drawn stones
@@ -280,6 +329,9 @@ public int getSize ()
Get the number of stones left
+
+
+
Returns: number of stones on the heap
@@ -294,6 +346,9 @@ public void putBack (java.util.Collection<
+
diff --git a/doc/jrummikub/model/StoneSet.html b/doc/jrummikub/model/StoneSet.html
index c476ebe..0cf4073 100644
--- a/doc/jrummikub/model/StoneSet.html
+++ b/doc/jrummikub/model/StoneSet.html
@@ -2,12 +2,12 @@
-
+
StoneSet
-
+
@@ -96,11 +96,11 @@ java.lang.Object
jrummikub.model.StoneSet
-All Implemented Interfaces: java.lang.Iterable<Stone >, Sizeable
+All Implemented Interfaces: java.io.Serializable, java.lang.Iterable<Stone >, Sizeable
-public class StoneSet extends java.lang.Objectimplements java.lang.Iterable<Stone >, Sizeable
+public class StoneSet extends java.lang.Objectimplements java.lang.Iterable<Stone >, Sizeable , java.io.Serializable
@@ -108,6 +108,8 @@ Class managing Serialized Form
@@ -141,6 +143,22 @@ Class managing HORIZONTAL_BORDER
+
+
+
+
+
+private static long
+serialVersionUID
+
+
+
+
+
+
+private java.util.ArrayList<Stone >
+stones
+
@@ -186,12 +204,21 @@ Class managing
- StoneSet.Type
-classify ()
+ Pair <StoneSet.Type ,java.lang.Integer>
+classify (GameSettings settings)
- Test for rule conflict within the StoneSet and determine whether the set
- is a group or a run
+ Test for rule conflict within the StoneSet and determine whether the set is
+ a group or a run
+
+
+
+private Pair <StoneSet.Type ,java.lang.Integer>
+classifyJokersOnly (GameSettings settings)
+
+
+ Test for rule conflict within a StoneSet with jokers only and determine
+ whether the set is a group or a run
@@ -211,6 +238,14 @@ Class managing
+ int
+getSize ()
+
+
+ Returns the number of stones in the set.
+
+
+
float
getWidth ()
@@ -220,13 +255,31 @@ Class managing
boolean
-isValid ()
+isValid (GameSettings settings)
Test for rule conflict within the StoneSet
+private int
+isValidGroup (int value,
+ GameSettings settings)
+
+
+ Test for rule conflict within the StoneSet, assuming we have a group
+
+
+
+private int
+isValidRun (int referencePosition,
+ GameSettings settings)
+
+
+ Test for rule conflict within the StoneSet, assuming we have a run
+
+
+
java.util.Iterator<Stone >
iterator ()
@@ -243,14 +296,6 @@ Class managing
- int
-size ()
-
-
- Returns the number of stones in the set.
-
-
-
Pair <StoneSet ,StoneSet >
splitAt (int position)
@@ -289,6 +334,16 @@ Class managing
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
VERTICAL_BORDER
@@ -307,6 +362,16 @@ static final float HORIZONTAL_BORDER
See Also: Constant Field Values
+
+
+
+stones
+
+private java.util.ArrayList<Stone > stones
+
+
+
+
@@ -351,10 +416,10 @@ public StoneSet (java.util.List<
+
isValid
-public boolean isValid ()
+public boolean isValid (GameSettings settings)
Test for rule conflict within the StoneSet
@@ -362,26 +427,80 @@ public boolean isValid ()
-
+Parameters: settings
- GameSettings
Returns: true when the set is valid according to the rules
-
+
classify
-public StoneSet.Type classify ()
+public Pair <StoneSet.Type ,java.lang.Integer> classify (GameSettings settings)
-Test for rule conflict within the StoneSet and determine whether the set
- is a group or a run
+Test for rule conflict within the StoneSet and determine whether the set is
+ a group or a run
+Parameters: settings
- GameSettings
+Returns: GROUP or RUN for valid sets, INVALID otherwise and the points
+
+
+
-Returns: GROUP or RUN for valid sets, INVALID otherwise
+
+classifyJokersOnly
+
+private Pair <StoneSet.Type ,java.lang.Integer> classifyJokersOnly (GameSettings settings)
+
+Test for rule conflict within a StoneSet with jokers only and determine
+ whether the set is a group or a run
+
+
+
+
+
+Parameters: settings
- the game settings
+Returns: GROUP or RUN for valid sets, INVALID otherwise and the points
+
+
+
+
+
+isValidRun
+
+private int isValidRun (int referencePosition,
+ GameSettings settings)
+
+Test for rule conflict within the StoneSet, assuming we have a run
+
+
+
+
+
+Parameters: referencePosition
- position of stone used as reference (any non-joker stone)settings
- the game settings
+Returns: the set's points
+
+
+
+
+
+isValidGroup
+
+private int isValidGroup (int value,
+ GameSettings settings)
+
+Test for rule conflict within the StoneSet, assuming we have a group
+
+
+
+
+
+Parameters: value
- the value of the stones (all have the same in a group)settings
- the game settings
+Returns: the set's points
@@ -421,10 +540,10 @@ public
-size
+
+getSize
-public int size ()
+public int getSize ()
Returns the number of stones in the set.
diff --git a/doc/jrummikub/model/StoneTray.Direction.html b/doc/jrummikub/model/StoneTray.Direction.html
index c5fe015..6fc3fad 100644
--- a/doc/jrummikub/model/StoneTray.Direction.html
+++ b/doc/jrummikub/model/StoneTray.Direction.html
@@ -2,12 +2,12 @@
-
+
StoneTray.Direction
-
+
diff --git a/doc/jrummikub/model/StoneTray.html b/doc/jrummikub/model/StoneTray.html
index 60468cb..f5e457c 100644
--- a/doc/jrummikub/model/StoneTray.html
+++ b/doc/jrummikub/model/StoneTray.html
@@ -2,12 +2,12 @@
-
+
StoneTray
-
+
@@ -98,7 +98,7 @@ java.lang.Object
Type Parameters: E
- Type of positioned objects (must implement Sizeable)
-All Implemented Interfaces: java.lang.Cloneable, java.lang.Iterable<Pair <E,Position >>, IStoneTray <E>
+All Implemented Interfaces: java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Pair <E,Position >>, IStoneTray <E>
Direct Known Subclasses: Hand , Table
@@ -114,6 +114,8 @@ A StoneTray is a collection of positioned objects (for example Serialized Form
@@ -147,6 +149,14 @@ A StoneTray is a collection of positioned objects (for example E ,Pair <E ,Position >>
objects
+
+
+
+
+
+private static long
+serialVersionUID
+
@@ -186,6 +196,14 @@ A StoneTray is a collection of positioned objects (for example
+ boolean
+contains (E object)
+
+
+ Search for an object within the stone tray
+
+
+
void
drop (E object,
Position position)
@@ -195,6 +213,27 @@ A StoneTray is a collection of positioned objects (for example
+private void
+drop (E object,
+ Position position,
+ StoneTray.Direction direction)
+
+
+ Subroutine to "drop" to consider and determine the direction the objects
+ dropped one collides with position-wise evade in
+
+
+
+private void
+dropUnchecked (E object,
+ Position position,
+ StoneTray.Direction direction)
+
+
+ Subroutine to "drop" to execute the actual drop
+
+
+
protected Pair <Position ,StoneTray.Direction >
fixInvalidDrop (E object,
Position pos,
@@ -206,6 +245,38 @@ A StoneTray is a collection of positioned objects (for example
+private StoneTray.Direction
+getMoveDirection (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+
+ Returns the direction to move the object in
+
+
+
+private boolean
+getMoveOrientation (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+
+ Will the object be moved horizontally or vertically
+
+
+
+private Position
+getNewPosition (E object,
+ Position position,
+ StoneTray.Direction newDirection,
+ E currentObject,
+ Position currentPosition)
+
+
+
+
+
+
Position
getPosition (E object)
@@ -230,6 +301,27 @@ A StoneTray is a collection of positioned objects (for example
+private static boolean
+lessOrEqual (double d,
+ double e)
+
+
+ Static method for determining a less or equal relation considering a
+ small fuzziness
+
+
+
+private boolean
+objectsOverlap (E object1,
+ Position position1,
+ E object2,
+ Position position2)
+
+
+ Tests whether two objects overlap
+
+
+
boolean
pickUp (E object)
@@ -259,6 +351,16 @@ A StoneTray is a collection of positioned objects (for example
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
objects
@@ -313,6 +415,61 @@ public void drop (
+drop
+
+private void drop (E object,
+ Position position,
+ StoneTray.Direction direction)
+
+Subroutine to "drop" to consider and determine the direction the objects
+ dropped one collides with position-wise evade in
+
+
+
+
+
+Parameters: object
- the object to add to Handposition
- Position
to put the objectdirection
- the direction the other stones evade in
+
+
+
+
+
+dropUnchecked
+
+private void dropUnchecked (E object,
+ Position position,
+ StoneTray.Direction direction)
+
+Subroutine to "drop" to execute the actual drop
+
+
+
+
+
+Parameters: object
- the object to add to Handposition
- Position
to put the objectdirection
- the direction the other stones evade in
+
+
+
+
+
+getNewPosition
+
+private Position getNewPosition (E object,
+ Position position,
+ StoneTray.Direction newDirection,
+ E currentObject,
+ Position currentPosition)
+
+
+
+
+
+
+
+
+
+
fixInvalidDrop
@@ -333,6 +490,83 @@ protected
+lessOrEqual
+
+private static boolean lessOrEqual (double d,
+ double e)
+
+Static method for determining a less or equal relation considering a
+ small fuzziness
+
+
+
+
+
+Parameters: d
- the value to be less or equale
- than the other one
+Returns: if d is less or equal e
+
+
+
+
+
+objectsOverlap
+
+private boolean objectsOverlap (E object1,
+ Position position1,
+ E object2,
+ Position position2)
+
+Tests whether two objects overlap
+
+
+
+
+
+Parameters: object1
- first objectposition1
- first object's positionobject2
- second objectposition2
- second object's position
+Returns: whether they overlap
+
+
+
+
+
+getMoveDirection
+
+private StoneTray.Direction getMoveDirection (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+Returns the direction to move the object in
+
+
+
+
+
+Parameters: object
- the objectposition
- the object's positionblocking
- the object thats blocking
+Returns: the direction
+
+
+
+
+
+getMoveOrientation
+
+private boolean getMoveOrientation (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+Will the object be moved horizontally or vertically
+
+
+
+
+
+Parameters: object
- the objectposition
- the objects positionblocking
- the object thats blocking
+Returns: boolean vertical movement
+
+
+
+
getPosition
@@ -351,6 +585,24 @@ public
+contains
+
+public boolean contains (E object)
+
+Description copied from interface: IStoneTray
+Search for an object within the stone tray
+
+
+Specified by: contains
in interface IStoneTray <E extends Sizeable >
+
+
+Parameters: object
- object to search for
+Returns: object found in stone tray
+
+
+
+
iterator
diff --git a/doc/jrummikub/model/Table.html b/doc/jrummikub/model/Table.html
index 989a94d..009c7a4 100644
--- a/doc/jrummikub/model/Table.html
+++ b/doc/jrummikub/model/Table.html
@@ -2,12 +2,12 @@
-
+
Table
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV CLASS
- NEXT 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
@@ -97,7 +97,7 @@ java.lang.Object
jrummikub.model.Table
-All Implemented Interfaces: java.lang.Cloneable, java.lang.Iterable<Pair <StoneSet ,Position >>, IStoneTray <StoneSet >, ITable
+All Implemented Interfaces: java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Pair <StoneSet ,Position >>, IStoneTray <StoneSet >, ITable
@@ -109,6 +109,8 @@ Class administering the Serialized Form
@@ -120,6 +122,14 @@ Class administering the
Nested Class Summary
+
+
+private static class
+Table.StoneInfo
+
+
+
+
@@ -176,6 +202,14 @@ Class administering the
+private Table.StoneInfo
+findStoneInfo (Stone stone)
+
+
+ Finds Table.StoneInfo
+
+
+
StoneSet
findStoneSet (Stone stone)
@@ -198,6 +232,16 @@ Class administering the Stone
from the Table
+
+
+private void
+splitSet (StoneSet set,
+ Position setPosition,
+ int stonePosition)
+
+
+ Splits a stone set at a specified position
+
@@ -205,7 +249,7 @@ Class administering the Methods inherited from class jrummikub.model.StoneTray
-clone , drop , fixInvalidDrop , getPosition , getSize , iterator , pickUp
+clone , contains , drop , fixInvalidDrop , getPosition , getSize , iterator , pickUp
@@ -223,7 +267,7 @@ Class administering the Methods inherited from interface jrummikub.model.IStoneTray
-clone , drop , getPosition , getSize , pickUp
+clone , contains , drop , getPosition , getSize , pickUp
@@ -238,6 +282,35 @@ Class administering the
+
+
+
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
+
+gameSettings
+
+private GameSettings gameSettings
+
+
+
+
+
@@ -248,11 +321,15 @@ Class administering the
+
Table
-public Table ()
+public Table (GameSettings settings)
+Constructor for a table
+
+
+Parameters: settings
- GameSettings
@@ -281,6 +358,23 @@ public void pickUpStone (
+
+findStoneInfo
+
+private Table.StoneInfo findStoneInfo (Stone stone)
+
+Finds Table.StoneInfo
+
+
+
+
+
+Parameters: stone
- the stone
+Returns: the info
+
+
+
+
findStoneSet
@@ -299,6 +393,24 @@ public
+splitSet
+
+private void splitSet (StoneSet set,
+ Position setPosition,
+ int stonePosition)
+
+Splits a stone set at a specified position
+
+
+
+
+
+Parameters: set
- the stone set to splitsetPosition
- the set's position on the tablestonePosition
- the stone after which splitting should occur
+
+
+
+
isValid
@@ -346,7 +458,7 @@ public boolean isValid ()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -366,9 +478,9 @@ public boolean isValid ()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/model/class-use/GameState.html b/doc/jrummikub/model/class-use/GameState.html
index 166ec0a..d30de82 100644
--- a/doc/jrummikub/model/class-use/GameState.html
+++ b/doc/jrummikub/model/class-use/GameState.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.GameState
-
+
@@ -83,7 +83,176 @@ function windowTitle()
Uses of Class jrummikub.model.GameState
-No usage of jrummikub.model.GameState
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/model/class-use/Hand.html b/doc/jrummikub/model/class-use/Hand.html
index a0a5082..4a8afb4 100644
--- a/doc/jrummikub/model/class-use/Hand.html
+++ b/doc/jrummikub/model/class-use/Hand.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.Hand
-
+
diff --git a/doc/jrummikub/model/class-use/IHand.html b/doc/jrummikub/model/class-use/IHand.html
index 70e4ca9..66060e7 100644
--- a/doc/jrummikub/model/class-use/IHand.html
+++ b/doc/jrummikub/model/class-use/IHand.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.model.IHand
-
+
@@ -90,7 +90,7 @@ function windowTitle()
Packages that use IHand
-jrummikub.control
+jrummikub.control.turn
@@ -100,11 +100,11 @@ Packages that use
+
@@ -112,25 +112,47 @@ Uses of
-Constructors in jrummikub.control with parameters of type IHand
+Fields in jrummikub.control.turn declared as IHand
-TurnControl (IHand hand,
- ITable table,
- IView view)
+
+private IHand
+ITurnControl.TurnInfo. hand
- 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)
+
+private IHand
+ITurnControl.TurnInfo. oldHand
- Test only constructor
+
+
+
+
+
+
+
@@ -161,6 +183,22 @@ Uses of
+
+Fields in jrummikub.model declared as IHand
+
+
+
+private IHand
+Player. hand
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/model/class-use/IPlayer.html b/doc/jrummikub/model/class-use/IPlayer.html
index 9c4cd54..98672ce 100644
--- a/doc/jrummikub/model/class-use/IPlayer.html
+++ b/doc/jrummikub/model/class-use/IPlayer.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.model.IPlayer
-
+
@@ -93,6 +93,14 @@ Packages that use jrummikub.model
+
+jrummikub.view
+
+
+
+jrummikub.view.impl
+
+
@@ -122,6 +130,22 @@ Uses of
+
+Fields in jrummikub.model declared as IPlayer
+
+
+
+private IPlayer
+RoundState. lastPlayer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Method parameters in jrummikub.view with type arguments of type IPlayer
+
+
+
+ void
+ISidePanel. setPlayers (java.util.List<IPlayer > players)
+
+
+ Sets the player information in order of turns
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/model/class-use/IStoneTray.html b/doc/jrummikub/model/class-use/IStoneTray.html
index dc1e289..55c0d83 100644
--- a/doc/jrummikub/model/class-use/IStoneTray.html
+++ b/doc/jrummikub/model/class-use/IStoneTray.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.model.IStoneTray
-
+
diff --git a/doc/jrummikub/model/class-use/ITable.html b/doc/jrummikub/model/class-use/ITable.html
index f3a4745..fb3ec20 100644
--- a/doc/jrummikub/model/class-use/ITable.html
+++ b/doc/jrummikub/model/class-use/ITable.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.model.ITable
-
+
@@ -94,6 +94,14 @@ Packages that use
+ jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.model
@@ -112,13 +120,12 @@ Uses of
-Methods in jrummikub.control with parameters of type ITable
+Fields in jrummikub.control declared as ITable
-(package private) static java.util.Set<Stone >
-RoundControl. tableDifference (ITable oldTable,
- ITable newTable)
+private ITable
+RoundControl.InvalidTurnInfo. table
@@ -127,27 +134,229 @@ Uses of
+
+Methods in jrummikub.control that return ITable
+
+
+
+ ITable
+RoundControl.InvalidTurnInfo. getTable ()
+
+
+ Getter for table
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -178,6 +387,22 @@ Uses of
+
+Fields in jrummikub.model declared as ITable
+
+
+
+private ITable
+RoundState. table
+
+
+
+
+
+
+
+
@@ -209,18 +434,18 @@ Uses of
void
-GameState. setTable (ITable table)
+IRoundState. setTable (ITable table)
-
+ Sets the current Table
void
-IGameState. setTable (ITable table)
+RoundState. setTable (ITable table)
- Sets the current Table
+
diff --git a/doc/jrummikub/model/class-use/Player.html b/doc/jrummikub/model/class-use/Player.html
index 247668f..fdff2f3 100644
--- a/doc/jrummikub/model/class-use/Player.html
+++ b/doc/jrummikub/model/class-use/Player.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.Player
-
+
@@ -83,7 +83,43 @@ function windowTitle()
Uses of Class jrummikub.model.Player
-No usage of jrummikub.model.Player
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/model/class-use/Position.html b/doc/jrummikub/model/class-use/Position.html
index 23071cd..648df09 100644
--- a/doc/jrummikub/model/class-use/Position.html
+++ b/doc/jrummikub/model/class-use/Position.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.Position
-
+
@@ -90,7 +90,7 @@ function windowTitle()
Packages that use Position
-jrummikub.control
+jrummikub.control.turn
@@ -108,11 +108,11 @@ Packages that use
+
@@ -120,12 +120,36 @@ Uses of
-Method parameters in jrummikub.control with type arguments of type Position
+Methods in jrummikub.control.turn with parameters of type Position
+
+
+
+private void
+HumanTurnControl. handClick (Position pos)
+
+
+
+
+
+
+private void
+HumanTurnControl. tableClick (Position position)
+
+
+
+
+
+
+
+
+
+
+Method parameters in jrummikub.control.turn with type arguments of type Position
int
-TurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
+HumanTurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
Pair <Stone ,Position > pair2)
@@ -134,7 +158,7 @@ Uses of
int
-TurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
+HumanTurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
Pair <Stone ,Position > pair2)
@@ -153,6 +177,22 @@ Uses of
+
+Fields in jrummikub.model declared as Position
+
+
+
+(package private) Position
+Table.StoneInfo. setPosition
+
+
+
+
+
+
+
+
Fields in jrummikub.model with type parameters of type Position
@@ -175,6 +215,18 @@ Uses of
+private Position
+StoneTray. getNewPosition (E object,
+ Position position,
+ StoneTray.Direction newDirection,
+ E currentObject,
+ Position currentPosition)
+
+
+
+
+
+
Position
StoneTray. getPosition (E object)
@@ -254,6 +306,27 @@ Uses of
+private void
+StoneTray. drop (E object,
+ Position position,
+ StoneTray.Direction direction)
+
+
+ Subroutine to "drop" to consider and determine the direction the objects
+ dropped one collides with position-wise evade in
+
+
+
+private void
+StoneTray. dropUnchecked (E object,
+ Position position,
+ StoneTray.Direction direction)
+
+
+ Subroutine to "drop" to execute the actual drop
+
+
+
protected Pair <Position ,StoneTray.Direction >
StoneTray. fixInvalidDrop (E object,
Position pos,
@@ -270,6 +343,103 @@ Uses of Position pos,
StoneTray.Direction dir)
+
+
+
+
+
+private StoneTray.Direction
+StoneTray. getMoveDirection (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+
+ Returns the direction to move the object in
+
+
+
+private boolean
+StoneTray. getMoveOrientation (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+
+ Will the object be moved horizontally or vertically
+
+
+
+private Position
+StoneTray. getNewPosition (E object,
+ Position position,
+ StoneTray.Direction newDirection,
+ E currentObject,
+ Position currentPosition)
+
+
+
+
+
+
+private boolean
+StoneTray. objectsOverlap (E object1,
+ Position position1,
+ E object2,
+ Position position2)
+
+
+ Tests whether two objects overlap
+
+
+
+private void
+Table. splitSet (StoneSet set,
+ Position setPosition,
+ int stonePosition)
+
+
+ Splits a stone set at a specified position
+
+
+
+
+
+
+
+
+
+
+
+
+
Methods in jrummikub.view.impl that return Position
- Position
+(package private) Position
StonePainter. calculatePosition (int x,
int y)
@@ -358,6 +568,14 @@ Uses of
+private java.util.List<Pair <Stone ,Position >>
+View. createDecorationStones ()
+
+
+
+
+
+
Event1 <Position >
AbstractStonePanel. getClickEvent ()
@@ -382,11 +600,11 @@ Uses of
-protected boolean
-AbstractStonePanel. handleOtherClickEvent (Position pos)
+private Stone
+AbstractStonePanel. getStoneAt (Position pos)
- Overwrite this method to signal if special zone was clicked
+ Gets the stone at the specified position
@@ -406,11 +624,11 @@ Uses of
-protected void
-AbstractStonePanel. handleOtherMoveEvent (Position pos)
+protected boolean
+AbstractStonePanel. handleOtherClickEvent (Position pos)
- Overwrite this method to signal if special zone was hovered
+ Overwrite this method to signal if special zone was clicked
@@ -422,16 +640,36 @@ Uses of
- void
-StonePainter. paintStone (java.awt.Graphics2D g,
+protected void
+AbstractStonePanel. handleOtherMoveEvent (Position pos)
+
+
+ Overwrite this method to signal if special zone was hovered
+
+
+
+(package private) void
+StonePainter. paintStone (java.awt.Graphics2D g,
Stone stone,
Position p,
- boolean selected,
+ StonePainter.StoneState state,
boolean hovered)
Paints a stone
+
+
+private void
+TablePanel. paintStoneSet (java.awt.Graphics2D g,
+ StoneSet stoneSet,
+ Position pos,
+ java.awt.geom.Area connectorArea,
+ java.awt.geom.Area hoveredConnectorArea)
+
+
+
+
@@ -442,14 +680,6 @@ Uses of
-protected void
-AbstractStonePanel. setStones (java.lang.Iterable<Pair <Stone ,Position >> stones)
-
-
- Sets the list of stones that can be clicked on
-
-
-
void
HandPanel. setStones (java.lang.Iterable<Pair <Stone ,Position >> stones)
@@ -458,6 +688,14 @@ Uses of
+protected void
+AbstractStonePanel. setStones (java.lang.Iterable<Pair <Stone ,Position >> stones)
+
+
+ Sets the list of stones that can be clicked on
+
+
+
void
TablePanel. setStoneSets (java.lang.Iterable<Pair <StoneSet ,Position >> stoneSets)
diff --git a/doc/jrummikub/model/class-use/Sizeable.html b/doc/jrummikub/model/class-use/Sizeable.html
index f3092e7..742048b 100644
--- a/doc/jrummikub/model/class-use/Sizeable.html
+++ b/doc/jrummikub/model/class-use/Sizeable.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.model.Sizeable
-
+
diff --git a/doc/jrummikub/model/class-use/Stone.html b/doc/jrummikub/model/class-use/Stone.html
index 0e84e0a..100ed98 100644
--- a/doc/jrummikub/model/class-use/Stone.html
+++ b/doc/jrummikub/model/class-use/Stone.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.Stone
-
+
@@ -90,7 +90,11 @@ function windowTitle()
Packages that use Stone
-jrummikub.control
+jrummikub.ai
+
+
+
+jrummikub.control.turn
@@ -108,11 +112,11 @@ Packages that use
+
@@ -120,12 +124,93 @@ Uses of
-Methods in jrummikub.control that return types with arguments of type Stone
+Fields in jrummikub.ai with type parameters of type Stone
+
+
+
+private java.util.List<Stone >
+TurnLogic. inputStones
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Method parameters in jrummikub.control.turn with type arguments of type Stone
+
+
+
+private void
+AIControl. addHandStones (java.util.List<Stone > handStones)
+
+
+
+
+
+
+private void
+AIControl. addTableStones (java.util.List<Stone > tableStones)
+
+
+
+
+
+
+ int
+HumanTurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
Pair <Stone ,Position > pair2)
@@ -151,9 +359,17 @@ Uses of
int
-TurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
+HumanTurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
Pair <Stone ,Position > pair2)
+
+
+
+
+
+private void
+HumanTurnControl. sortStones (java.util.Comparator<Stone > comparator)
+
@@ -176,9 +392,17 @@ Uses of
-(package private) java.util.List<Stone >
+(package private) java.util.ArrayList<Stone >
StoneHeap. heap
+
+
+
+
+
+private java.util.ArrayList<Stone >
+StoneSet. stones
+
@@ -240,6 +464,14 @@ Uses of
+private Table.StoneInfo
+Table. findStoneInfo (Stone stone)
+
+
+ Finds Table.StoneInfo
+
+
+
StoneSet
Table. findStoneSet (Stone stone)
@@ -290,6 +522,14 @@ Uses of
+private static Pair <java.util.TreeMap<Pair <java.lang.Integer,StoneColor >,java.lang.Integer>,java.lang.Integer>
+Hand. countStones (java.util.List<Stone > stones)
+
+
+ Counts the numbers of stones
+
+
+
void
StoneHeap. putBack (java.util.Collection<Stone > stones)
@@ -348,7 +588,7 @@ Uses of
@@ -357,7 +597,7 @@ Uses of
@@ -404,6 +644,86 @@ Uses of
+
+Fields in jrummikub.view.impl declared as Stone
+
+
+
+private Stone
+AbstractStonePanel. hoveredStone
+
+
+
+
+
+
+
+
+
+
+
+
@@ -426,6 +754,14 @@ Uses of
+private java.util.List<Pair <Stone ,Position >>
+View. createDecorationStones ()
+
+
+
+
+
+
Event2 <Stone ,java.lang.Boolean>
AbstractStonePanel. getRangeClickEvent ()
@@ -466,16 +802,24 @@ Uses of
- void
-StonePainter. paintStone (java.awt.Graphics2D g,
+(package private) void
+StonePainter. paintStone (java.awt.Graphics2D g,
Stone stone,
Position p,
- boolean selected,
+ StonePainter.StoneState state,
boolean hovered)
Paints a stone
+
+
+private void
+AbstractStonePanel. setHoveredStone (Stone stone)
+
+
+ Sets the stone over which the cursor hovers
+
@@ -486,14 +830,6 @@ Uses of
- void
-View. setSelectedStones (java.util.Collection<Stone > stones)
-
-
-
-
-
-
(package private) void
StoneCollectionPanel. setSelectedStones (java.util.Collection<Stone > selectedStones)
@@ -518,11 +854,11 @@ Uses of
-protected void
-AbstractStonePanel. setStones (java.lang.Iterable<Pair <Stone ,Position >> stones)
+ void
+View. setSelectedStones (java.util.Collection<Stone > stones)
- Sets the list of stones that can be clicked on
+
@@ -532,6 +868,14 @@ Uses of
+
+protected void
+AbstractStonePanel. setStones (java.lang.Iterable<Pair <Stone ,Position >> stones)
+
+
+ Sets the list of stones that can be clicked on
+
diff --git a/doc/jrummikub/model/class-use/StoneColor.html b/doc/jrummikub/model/class-use/StoneColor.html
index 9333b62..315c5e8 100644
--- a/doc/jrummikub/model/class-use/StoneColor.html
+++ b/doc/jrummikub/model/class-use/StoneColor.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.StoneColor
-
+
@@ -90,9 +90,78 @@ function windowTitle()
Packages that use StoneColor
+jrummikub.ai
+
+
+
jrummikub.model
+
+jrummikub.view
+
+
+
+jrummikub.view.impl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -106,6 +175,46 @@ Uses of
+
+Fields in jrummikub.model declared as StoneColor
+
+
+
+private StoneColor
+Stone. color
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/model/class-use/StoneSet.Type.html b/doc/jrummikub/model/class-use/StoneSet.Type.html
index 1b74fef..729b68e 100644
--- a/doc/jrummikub/model/class-use/StoneSet.Type.html
+++ b/doc/jrummikub/model/class-use/StoneSet.Type.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.StoneSet.Type
-
+
@@ -112,15 +112,6 @@ Uses of
- StoneSet.Type
-StoneSet. classify ()
-
-
- Test for rule conflict within the StoneSet and determine whether the set
- is a group or a run
-
-
-
static StoneSet.Type
StoneSet.Type. valueOf (java.lang.String name)
@@ -139,6 +130,32 @@ the order they are declared.
+
+
+
+
diff --git a/doc/jrummikub/model/class-use/StoneSet.html b/doc/jrummikub/model/class-use/StoneSet.html
index ed2b6a5..82ccfa3 100644
--- a/doc/jrummikub/model/class-use/StoneSet.html
+++ b/doc/jrummikub/model/class-use/StoneSet.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.StoneSet
-
+
@@ -90,6 +90,18 @@ function windowTitle()
Packages that use StoneSet
+jrummikub.ai
+
+
+
+jrummikub.control
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.model
@@ -104,6 +116,163 @@ Packages that use
+
+
+
+
+
+
+Methods in jrummikub.ai that return types with arguments of type StoneSet
+
+
+
+ java.util.List<StoneSet >
+TurnLogic. getResult ()
+
+
+ Get the found stones and create output sets
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -230,6 +441,14 @@ Uses of
void
+IView. setInvalidStoneSets (java.util.Collection<StoneSet > sets)
+
+
+ Set invalid sets to enable showing
+
+
+
+ void
ITablePanel. setStoneSets (java.lang.Iterable<Pair <StoneSet ,Position >> stoneSets)
@@ -248,6 +467,78 @@ Uses of
+
+Fields in jrummikub.view.impl declared as StoneSet
+
+
+
+private StoneSet
+TablePanel. leftHoveredConnector
+
+
+
+
+
+
+private StoneSet
+TablePanel. rightHoveredConnector
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Method parameters in jrummikub.view.impl with type arguments of type StoneSet
+(package private) void
+TablePanel. setInvalidStoneSets (java.util.Collection<StoneSet > sets)
+
+
+
+
+
+
+ void
+View. setInvalidStoneSets (java.util.Collection<StoneSet > sets)
+
+
+
+
+
+
void
TablePanel. setStoneSets (java.lang.Iterable<Pair <StoneSet ,Position >> stoneSets)
diff --git a/doc/jrummikub/model/class-use/StoneTray.Direction.html b/doc/jrummikub/model/class-use/StoneTray.Direction.html
index a653204..d01447b 100644
--- a/doc/jrummikub/model/class-use/StoneTray.Direction.html
+++ b/doc/jrummikub/model/class-use/StoneTray.Direction.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.StoneTray.Direction
-
+
@@ -112,6 +112,16 @@ Uses of
+private StoneTray.Direction
+StoneTray. getMoveDirection (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+
+ Returns the direction to move the object in
+
+
+
static StoneTray.Direction
StoneTray.Direction. valueOf (java.lang.String name)
@@ -166,6 +176,27 @@ the order they are declared.
+private void
+StoneTray. drop (E object,
+ Position position,
+ StoneTray.Direction direction)
+
+
+ Subroutine to "drop" to consider and determine the direction the objects
+ dropped one collides with position-wise evade in
+
+
+
+private void
+StoneTray. dropUnchecked (E object,
+ Position position,
+ StoneTray.Direction direction)
+
+
+ Subroutine to "drop" to execute the actual drop
+
+
+
protected Pair <Position ,StoneTray.Direction >
StoneTray. fixInvalidDrop (E object,
Position pos,
@@ -182,6 +213,18 @@ the order they are declared.
Position pos,
StoneTray.Direction dir)
+
+
+
+
+
+private Position
+StoneTray. getNewPosition (E object,
+ Position position,
+ StoneTray.Direction newDirection,
+ E currentObject,
+ Position currentPosition)
+
diff --git a/doc/jrummikub/model/class-use/StoneTray.html b/doc/jrummikub/model/class-use/StoneTray.html
index a6a0e9b..802e8db 100644
--- a/doc/jrummikub/model/class-use/StoneTray.html
+++ b/doc/jrummikub/model/class-use/StoneTray.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.StoneTray
-
+
diff --git a/doc/jrummikub/model/class-use/Table.html b/doc/jrummikub/model/class-use/Table.html
index 05e997e..bc4dba3 100644
--- a/doc/jrummikub/model/class-use/Table.html
+++ b/doc/jrummikub/model/class-use/Table.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.model.Table
-
+
diff --git a/doc/jrummikub/model/package-frame.html b/doc/jrummikub/model/package-frame.html
index cf1f069..2d62dc5 100644
--- a/doc/jrummikub/model/package-frame.html
+++ b/doc/jrummikub/model/package-frame.html
@@ -2,12 +2,12 @@
-
+
jrummikub.model
-
+
@@ -23,12 +23,12 @@ jrummikub.model
Interfaces
-IGameState
-
IHand
IPlayer
+IRoundState
+
IStoneTray
ITable
@@ -44,14 +44,22 @@ Interfaces
Classes
+GameSettings
+
GameState
Hand
Player
+PlayerSettings
+
Position
+RoundState
+
+Score
+
Stone
StoneHeap
@@ -60,7 +68,9 @@ Classes
StoneTray
-Table
+Table
+
+Table.StoneInfo
@@ -71,6 +81,8 @@ Classes
Enums
+PlayerSettings.Type
+
StoneColor
StoneSet.Type
diff --git a/doc/jrummikub/model/package-summary.html b/doc/jrummikub/model/package-summary.html
index c5e4189..35ee656 100644
--- a/doc/jrummikub/model/package-summary.html
+++ b/doc/jrummikub/model/package-summary.html
@@ -2,12 +2,12 @@
-
+
jrummikub.model
-
+
@@ -55,8 +55,8 @@ function windowTitle()
- PREV PACKAGE
- NEXT PACKAGE
+ PREV PACKAGE
+ NEXT PACKAGE
FRAMES
NO FRAMES
@@ -89,10 +89,6 @@ Package jrummikub.model
Interface Summary
-IGameState
-Interface for GameState
model
-
-
IHand
Interface for the Hand
model
@@ -101,6 +97,10 @@ Package jrummikub.model
Interface for Player
model
+IRoundState
+Interface for RoundState
model
+
+
IStoneTray<E extends Sizeable>
Interface for the StoneTray
model
@@ -123,8 +123,12 @@ Package jrummikub.model
Class Summary
+GameSettings
+The overall game settings
+
+
GameState
-Class managing the overall and momentary GameState
+Class that stores information for a game of multiple rounds
Hand
@@ -135,11 +139,23 @@ Package jrummikub.model
Class managing player data.
+PlayerSettings
+The settings of a player
+
+
Position
Stone
Position class to determine positions on Table
or
Hand
+RoundState
+Class managing the overall and momentary RoundState
+
+
+Score
+Score of a single round
+
+
Stone
Basic Rummikub Stone
@@ -161,6 +177,10 @@ Package jrummikub.model
Table
Class administering the Stone
s on the game-Table
+
+Table.StoneInfo
+
+
@@ -172,6 +192,10 @@ Package jrummikub.model
Enum Summary
+PlayerSettings.Type
+Type of turn control.
+
+
StoneColor
Class specifying possible StoneColors
@@ -219,8 +243,8 @@ Package jrummikub.model
- PREV PACKAGE
- NEXT PACKAGE
+ PREV PACKAGE
+ NEXT PACKAGE
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/model/package-tree.html b/doc/jrummikub/model/package-tree.html
index 7401a62..3c88d80 100644
--- a/doc/jrummikub/model/package-tree.html
+++ b/doc/jrummikub/model/package-tree.html
@@ -2,12 +2,12 @@
-
+
jrummikub.model Class Hierarchy
-
+
@@ -55,8 +55,8 @@ function windowTitle()
- PREV
- NEXT
+ PREV
+ NEXT
FRAMES
NO FRAMES
@@ -92,28 +92,39 @@ Class Hierarchy
Interface Hierarchy
java.lang.Cloneable
-jrummikub.model.IStoneTray <E> (also extends java.lang.Iterable<T>)
+ jrummikub.model.IStoneTray <E> (also extends java.lang.Iterable<T>, java.io.Serializable)
- jrummikub.model.IGameState jrummikub.model.IPlayer java.lang.Iterable<T>
-jrummikub.model.IStoneTray <E> (also extends java.lang.Cloneable)
+ java.lang.Iterable<T>
+jrummikub.model.IStoneTray <E> (also extends java.lang.Cloneable, java.io.Serializable)
+
+
+ java.io.Serializable
@@ -125,7 +136,7 @@ Enum Hierarchy
java.lang.Object
@@ -158,8 +169,8 @@ Enum Hierarchy
- PREV
- NEXT
+ PREV
+ NEXT
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/model/package-use.html b/doc/jrummikub/model/package-use.html
index 162cfa6..79d4f71 100644
--- a/doc/jrummikub/model/package-use.html
+++ b/doc/jrummikub/model/package-use.html
@@ -2,12 +2,12 @@
-
+
Uses of Package jrummikub.model
-
+
@@ -90,14 +90,30 @@ function windowTitle()
Packages that use jrummikub.model
+jrummikub.ai
+
+
+
jrummikub.control
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.model
+jrummikub.util
+
+
+
jrummikub.view
@@ -108,6 +124,39 @@ Packages that use jrummikub
+
+
+
+
+
+
+
+
+
+
+
+
@@ -155,10 +312,16 @@ Classes in jrummikub.model<
Classes in jrummikub.model used by jrummikub.model
-IGameState
+GameSettings
- Interface for GameState
model
+ The overall game settings
+
+
+GameState
+
+
+ Class that stores information for a game of multiple rounds
IHand
@@ -173,6 +336,12 @@ Classes in jrummikub.model<
Interface for Player
model
+IRoundState
+
+
+ Interface for RoundState
model
+
+
IStoneTray
@@ -185,6 +354,24 @@ Classes in jrummikub.model<
Interface for the Table
model
+Player
+
+
+ Class managing player data.
+
+
+PlayerSettings
+
+
+ The settings of a player
+
+
+PlayerSettings.Type
+
+
+ Type of turn control.
+
+
Position
@@ -192,6 +379,12 @@ Classes in jrummikub.model<
Hand
+Score
+
+
+ Score of a single round
+
+
Sizeable
@@ -241,6 +434,27 @@ Classes in jrummikub.model<
Possible move directions in case of overlapping Stones/Sets
+
+Table.StoneInfo
+
+
+
+
+
+
+
+
+
@@ -251,6 +465,30 @@ Classes in jrummikub.model<
Classes in jrummikub.model used by jrummikub.view
+GameSettings
+
+
+ The overall game settings
+
+
+IPlayer
+
+
+ Interface for Player
model
+
+
+PlayerSettings
+
+
+ The settings of a player
+
+
+PlayerSettings.Type
+
+
+ Type of turn control.
+
+
Position
@@ -258,12 +496,24 @@ Classes in jrummikub.model<
Hand
+Score
+
+
+ Score of a single round
+
+
Stone
Basic Rummikub Stone
+StoneColor
+
+
+ Class specifying possible StoneColors
+
+
StoneSet
@@ -279,6 +529,30 @@ Classes in jrummikub.model<
Classes in jrummikub.model used by jrummikub.view.impl
+GameSettings
+
+
+ The overall game settings
+
+
+IPlayer
+
+
+ Interface for Player
model
+
+
+PlayerSettings
+
+
+ The settings of a player
+
+
+PlayerSettings.Type
+
+
+ Type of turn control.
+
+
Position
@@ -286,12 +560,24 @@ Classes in jrummikub.model<
Hand
+Score
+
+
+ Score of a single round
+
+
Stone
Basic Rummikub Stone
+StoneColor
+
+
+ Class specifying possible StoneColors
+
+
StoneSet
diff --git a/doc/jrummikub/package-frame.html b/doc/jrummikub/package-frame.html
index d3f8844..0ca39ae 100644
--- a/doc/jrummikub/package-frame.html
+++ b/doc/jrummikub/package-frame.html
@@ -2,12 +2,12 @@
-
+
jrummikub
-
+
diff --git a/doc/jrummikub/package-summary.html b/doc/jrummikub/package-summary.html
index 1a1cd4b..c71526e 100644
--- a/doc/jrummikub/package-summary.html
+++ b/doc/jrummikub/package-summary.html
@@ -2,12 +2,12 @@
-
+
jrummikub
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV PACKAGE
- NEXT PACKAGE
+ NEXT PACKAGE
FRAMES
NO FRAMES
@@ -129,7 +129,7 @@ Package jrummikub
PREV PACKAGE
- NEXT PACKAGE
+ NEXT PACKAGE
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/package-tree.html b/doc/jrummikub/package-tree.html
index b02ff9f..9e6e5fc 100644
--- a/doc/jrummikub/package-tree.html
+++ b/doc/jrummikub/package-tree.html
@@ -2,12 +2,12 @@
-
+
jrummikub Class Hierarchy
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV
- NEXT
+ NEXT
FRAMES
NO FRAMES
@@ -125,7 +125,7 @@ Class Hierarchy
PREV
- NEXT
+ NEXT
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/package-use.html b/doc/jrummikub/package-use.html
index 8d5f69d..037f267 100644
--- a/doc/jrummikub/package-use.html
+++ b/doc/jrummikub/package-use.html
@@ -2,12 +2,12 @@
-
+
Uses of Package jrummikub
-
+
diff --git a/doc/jrummikub/util/Connection.html b/doc/jrummikub/util/Connection.html
index 8d3cc37..b3d6803 100644
--- a/doc/jrummikub/util/Connection.html
+++ b/doc/jrummikub/util/Connection.html
@@ -2,12 +2,12 @@
-
+
Connection
-
+
diff --git a/doc/jrummikub/util/Event.html b/doc/jrummikub/util/Event.html
index d64b118..1cbd261 100644
--- a/doc/jrummikub/util/Event.html
+++ b/doc/jrummikub/util/Event.html
@@ -2,12 +2,12 @@
-
+
Event
-
+
@@ -76,9 +76,9 @@ function windowTitle()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
@@ -111,7 +111,24 @@ Simple parameterless event generator
+
+
+
+
@@ -173,6 +190,25 @@ Simple parameterless event generator
+
+
+
+
+
+
+listeners
+
+private java.util.HashSet<IListener > listeners
+
+
+
+
+
@@ -301,9 +337,9 @@ public void emit ()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/util/Event1.html b/doc/jrummikub/util/Event1.html
index 495b89b..94120e5 100644
--- a/doc/jrummikub/util/Event1.html
+++ b/doc/jrummikub/util/Event1.html
@@ -2,12 +2,12 @@
-
+
Event1
-
+
@@ -76,9 +76,9 @@ function windowTitle()
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
@@ -113,7 +113,24 @@ Simple single parameter event generator
+
+
+
+
@@ -175,6 +192,25 @@ Simple single parameter event generator
+
+
+
+
+
+
+listeners
+
+private java.util.HashSet<IListener1 <T >> listeners
+
+
+
+
+
@@ -303,9 +339,9 @@ public void emit (
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/util/Event2.html b/doc/jrummikub/util/Event2.html
index 1705cb3..e755f58 100644
--- a/doc/jrummikub/util/Event2.html
+++ b/doc/jrummikub/util/Event2.html
@@ -2,12 +2,12 @@
-
+
Event2
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV CLASS
- NEXT 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
@@ -113,7 +113,24 @@ Simple single parameter event generator
+
+
+
+
@@ -176,6 +193,25 @@ Simple single parameter event generator
+
+
+
+
+
+
+listeners
+
+private java.util.HashSet<IListener2 <T1 ,T2 >> listeners
+
+
+
+
+
@@ -285,7 +321,7 @@ public void emit (
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -305,9 +341,9 @@ public void emit (
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/util/IEvent.html b/doc/jrummikub/util/IEvent.html
index bb36907..5a28268 100644
--- a/doc/jrummikub/util/IEvent.html
+++ b/doc/jrummikub/util/IEvent.html
@@ -2,12 +2,12 @@
-
+
IEvent
-
+
@@ -55,7 +55,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -202,7 +202,7 @@ void remove (
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
diff --git a/doc/jrummikub/util/IEvent1.html b/doc/jrummikub/util/IEvent1.html
index 3d6aad9..b16e66f 100644
--- a/doc/jrummikub/util/IEvent1.html
+++ b/doc/jrummikub/util/IEvent1.html
@@ -2,12 +2,12 @@
-
+
IEvent1
-
+
diff --git a/doc/jrummikub/util/IEvent2.html b/doc/jrummikub/util/IEvent2.html
index 87189c2..389b0a4 100644
--- a/doc/jrummikub/util/IEvent2.html
+++ b/doc/jrummikub/util/IEvent2.html
@@ -2,12 +2,12 @@
-
+
IEvent2
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -205,7 +205,7 @@ void remove (
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/util/IListener.html b/doc/jrummikub/util/IListener.html
index 6ea0fa0..5e7c148 100644
--- a/doc/jrummikub/util/IListener.html
+++ b/doc/jrummikub/util/IListener.html
@@ -2,12 +2,12 @@
-
+
IListener
-
+
@@ -55,7 +55,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -177,7 +177,7 @@ void handle ()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
diff --git a/doc/jrummikub/util/IListener1.html b/doc/jrummikub/util/IListener1.html
index c310928..92e685b 100644
--- a/doc/jrummikub/util/IListener1.html
+++ b/doc/jrummikub/util/IListener1.html
@@ -2,12 +2,12 @@
-
+
IListener1
-
+
diff --git a/doc/jrummikub/util/IListener2.html b/doc/jrummikub/util/IListener2.html
index 8a150ad..b1adb7b 100644
--- a/doc/jrummikub/util/IListener2.html
+++ b/doc/jrummikub/util/IListener2.html
@@ -2,12 +2,12 @@
-
+
IListener2
-
+
@@ -56,7 +56,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -183,7 +183,7 @@ void handle (
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
diff --git a/doc/jrummikub/util/Pair.html b/doc/jrummikub/util/Pair.html
index ef913a5..c41c8e5 100644
--- a/doc/jrummikub/util/Pair.html
+++ b/doc/jrummikub/util/Pair.html
@@ -2,12 +2,12 @@
-
+
Pair
-
+
@@ -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
@@ -97,9 +97,12 @@ java.lang.Object
Type Parameters: T1
- Type of first componentT2
- Type of second component
+
+All Implemented Interfaces: java.io.Serializable
+
-public class Pair<T1,T2> extends java.lang.Object
+public class Pair<T1,T2> extends java.lang.Objectimplements java.io.Serializable
@@ -107,10 +110,45 @@ A pair of objects
+
+See Also: Serialized Form
+
+
+
+
@@ -138,6 +176,14 @@ A pair of objects
+ boolean
+equals (java.lang.Object obj)
+
+
+
+
+
+
T1
getFirst ()
@@ -152,6 +198,22 @@ A pair of objects
Extract the second component of a pair
+
+
+ int
+hashCode ()
+
+
+
+
+
+
+ java.lang.String
+toString ()
+
+
+
+
@@ -159,12 +221,51 @@ A pair of objects
Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+
+
+
+
+
+
+serialVersionUID
+
+private static final long serialVersionUID
+
+
+See Also: Constant Field Values
+
+
+
+
+first
+
+private final T1 first
+
+
+
+
+
+
+
+second
+
+private final T2 second
+
+
+
+
+
@@ -205,6 +306,9 @@ public T
Extract the first component of a pair
+
+
+
Returns: the first pair component
@@ -219,10 +323,55 @@ public T
Extract the second component of a pair
+
+
+
Returns: the second pair component
+
+
+
+toString
+
+public java.lang.String toString ()
+
+
+Overrides: toString
in class java.lang.Object
+
+
+
+
+
+
+
+
+hashCode
+
+public int hashCode ()
+
+
+Overrides: hashCode
in class java.lang.Object
+
+
+
+
+
+
+
+
+equals
+
+public boolean equals (java.lang.Object obj)
+
+
+Overrides: equals
in class java.lang.Object
+
+
+
+
+
@@ -254,7 +403,7 @@ public T
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -275,9 +424,9 @@ public T
- SUMMARY: NESTED | FIELD | CONSTR | METHOD
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
-DETAIL: FIELD | CONSTR | METHOD
+DETAIL: FIELD | CONSTR | METHOD
diff --git a/doc/jrummikub/util/class-use/Connection.html b/doc/jrummikub/util/class-use/Connection.html
index ebf6524..cc676f5 100644
--- a/doc/jrummikub/util/class-use/Connection.html
+++ b/doc/jrummikub/util/class-use/Connection.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.util.Connection
-
+
@@ -90,12 +90,147 @@ function windowTitle()
Packages that use Connection
+jrummikub.control
+
+
+
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.util
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -129,6 +264,14 @@ Uses of
Connection
+Event1. add (IListener1 <T > listener)
+
+
+
+
+
+
+ Connection
IEvent1. add (IListener1 <T > listener)
@@ -137,7 +280,7 @@ Uses of
Connection
-Event1. add (IListener1 <T > listener)
+Event2. add (IListener2 <T1 ,T2 > listener)
@@ -153,7 +296,15 @@ Uses of
Connection
-Event2. add (IListener2 <T1 ,T2 > listener)
+IEvent3. add (IListener3 <T1 ,T2 ,T3 > listener)
+
+
+ Start to publish all events to a given listener
+
+
+
+ Connection
+Event3. add (IListener3 <T1 ,T2 ,T3 > listener)
diff --git a/doc/jrummikub/util/class-use/Event.html b/doc/jrummikub/util/class-use/Event.html
index 427d8cd..a659587 100644
--- a/doc/jrummikub/util/class-use/Event.html
+++ b/doc/jrummikub/util/class-use/Event.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.util.Event
-
+
@@ -83,7 +83,567 @@ function windowTitle()
Uses of Class jrummikub.util.Event
-No usage of jrummikub.util.Event
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Methods in jrummikub.view.impl with parameters of type Event
+
+
+
+private javax.swing.JButton
+QuitWarningPanel. createButton (java.lang.String title,
+ Event event)
+
+
+
+
+
+
+private javax.swing.JButton
+SettingsPanel. createButton (java.lang.String title,
+ Event event)
+
+
+
+
+
+
+private javax.swing.JMenuItem
+View. createMenuItem (java.lang.String text,
+ Event event)
+
+
+
+
+
+
diff --git a/doc/jrummikub/util/class-use/Event1.html b/doc/jrummikub/util/class-use/Event1.html
index b1a6dd7..ac468ce 100644
--- a/doc/jrummikub/util/class-use/Event1.html
+++ b/doc/jrummikub/util/class-use/Event1.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.util.Event1
-
+
@@ -90,6 +90,18 @@ function windowTitle()
Packages that use Event1
+jrummikub.control
+
+
+
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.view
@@ -100,6 +112,234 @@ Packages that use
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Methods in jrummikub.view.impl with parameters of type Event1
+
+
+
+private javax.swing.JCheckBox
+SettingsPanel. createOptionCheckbox (Event1 <java.lang.Boolean> targetEvent)
+
+
+
+
+
+
+private javax.swing.JSpinner
+SettingsPanel. createOptionSpinner (int min,
+ int max,
+ int step,
+ Event1 <java.lang.Integer> targetEvent)
+
diff --git a/doc/jrummikub/util/class-use/Event2.html b/doc/jrummikub/util/class-use/Event2.html
index 6621f3d..630693b 100644
--- a/doc/jrummikub/util/class-use/Event2.html
+++ b/doc/jrummikub/util/class-use/Event2.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.util.Event2
-
+
@@ -90,12 +90,78 @@ function windowTitle()
Packages that use Event2
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.view.impl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Methods in jrummikub.view.impl that return Event2
diff --git a/doc/jrummikub/util/class-use/IEvent.html b/doc/jrummikub/util/class-use/IEvent.html
index 5f813a8..3dfbd98 100644
--- a/doc/jrummikub/util/class-use/IEvent.html
+++ b/doc/jrummikub/util/class-use/IEvent.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.util.IEvent
-
+
@@ -94,6 +94,14 @@ Packages that use
+ jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.util
@@ -125,18 +133,18 @@ Uses of
IEvent
-TurnControl. getEndOfTurnEvent ()
+LoginControl. getCancelEvent ()
- Get the event that is emitted when the turn is over
+ Getter for cancelEvent
IEvent
-RoundControl. getEndRoundEvent ()
+GameControl. getEndOfGameEvent ()
- End the round
+ Is emitted when the user ends the game and start a new one
@@ -157,6 +165,202 @@ Uses of
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -199,6 +403,91 @@ Uses of
IEvent
+IView. getAcknowledgeConnectionLostEvent ()
+
+
+ The acknoledge connection lost event is emitted when the user has
+ acknowledged that the network connection was lost
+
+
+
+ IEvent
+IView. getAcknowledgeInvalidEvent ()
+
+
+ The start turn event is emitted when the player knows what invalid stones
+ he played
+
+
+
+ IEvent
+ISettingsPanel. getAddPlayerEvent ()
+
+
+ The add player event is emitted when the user wants to add a player to the
+ player list
+
+
+
+ IEvent
+ISettingsPanel. getBackEvent ()
+
+
+ Emitted when the user wants to go back to the panel before
+
+
+
+ IEvent
+IConnectPanel. getCancelEvent ()
+
+
+ Is emitted when the user wants to abort connecting or has acknowledged
+ the error
+
+
+
+ IEvent
+ILoginPanel. getCancelEvent ()
+
+
+ Emitted when the user cancels the login process
+
+
+
+ IEvent
+IQuitWarningPanel. getCancelEvent ()
+
+
+ Is emitted if the user selected quit by mistake
+
+
+
+ IEvent
+IGameListPanel. getCancelEvent ()
+
+
+ Emitted when the network game is canceled
+
+
+
+ IEvent
+IView. getEndPauseEvent ()
+
+
+ The end pause event is emitted when the user wants to sresume the game
+ after a pause
+
+
+
+ IEvent
+IView. getEndProgramEvent ()
+
+
+ The quit event is emitted when the player wants to quit the game
+
+
+
+ IEvent
IPlayerPanel. getEndTurnEvent ()
@@ -207,10 +496,77 @@ Uses of
IEvent
+IView. getLoadEvent ()
+
+
+ The load event is emitted when the user wants to load a previously saved
+ game state
+
+
+
+ IEvent
+IView. getMenuNewGameEvent ()
+
+
+ The menu new game event is emitted when the user selects the new game menu
+ entry
+
+
+
+ IEvent
+IView. getNetworkGameEvent ()
+
+
+ The network game event is emitted when the user chooses a network game
+
+
+
+ IEvent
IView. 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
+IView. getNewRoundEvent ()
+
+
+ The new round event is emitted when the player wants to start a new round
+
+
+
+ IEvent
+ISettingsPanel. getOfferGameEvent ()
+
+
+ The offer new game event is emitted when a new game is started and looking
+ for players
+
+
+
+ IEvent
+IGameListPanel. getOpenNewGameEvent ()
+
+
+ Emitted when a new game is offered
+
+
+
+ IEvent
+IView. getPauseEvent ()
+
+
+ The pause event is emitted when the user wants to pause the current turn
+
+
+
+ IEvent
+IQuitWarningPanel. getQuitEvent ()
+
+
+ Is emitted if the user is positive about quitting
@@ -218,7 +574,31 @@ Uses of 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
+
+
+
+ IEvent
+IPlayerPanel. getRedealEvent ()
+
+
+ The redeal event is emitted when the player wants to get new stones
+
+
+
+ IEvent
+ISettingsPanel. getSetVariantChildrenEvent ()
+
+
+ Emitted when the children variant is chosen
+
+
+
+ IEvent
+ISettingsPanel. getSetVariantDefaultEvent ()
+
+
+ Emitted when the variables are reset to the default values
@@ -235,8 +615,16 @@ Uses of 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
+
+
+
+ IEvent
+ISettingsPanel. getStartGameEvent ()
+
+
+ the start game event is emitted when the user wants to start the game
@@ -265,9 +653,169 @@ Uses of
+(package private) IEvent
+StartTurnPanel. getAcknowledgeConnectionLostEvent ()
+
+
+
+
+
+
+ IEvent
+View. getAcknowledgeConnectionLostEvent ()
+
+
+
+
+
+
+(package private) IEvent
+StartTurnPanel. getAcknowledgeInvalidEvent ()
+
+
+
+
+
+
+ IEvent
+View. getAcknowledgeInvalidEvent ()
+
+
+
+
+
+
+ IEvent
+SettingsPanel. getAddPlayerEvent ()
+
+
+
+
+
+
+ IEvent
+SettingsPanel. getBackEvent ()
+
+
+
+
+
+
+ IEvent
+QuitWarningPanel. getCancelEvent ()
+
+
+
+
+
+
+ IEvent
+ConnectPanel. getCancelEvent ()
+
+
+
+
+
+
+ IEvent
+LoginPanel. getCancelEvent ()
+
+
+
+
+
+
+ IEvent
+GameListPanel. getCancelEvent ()
+
+
+
+
+
+
+(package private) IEvent
+PausePanel. getEndPauseEvent ()
+
+
+
+
+
+
+ IEvent
+View. getEndPauseEvent ()
+
+
+
+
+
+
+(package private) IEvent
+RoundEndPanel. getEndProgramEvent ()
+
+
+ The end program is emitted when the player wants to quit the program
+
+
+
+ IEvent
+View. getEndProgramEvent ()
+
+
+
+
+
+
IEvent
PlayerPanel. getEndTurnEvent ()
+
+
+
+
+
+ IEvent
+View. getLoadEvent ()
+
+
+
+
+
+
+(package private) IEvent
+SettingsPanel. getLoadGameEvent ()
+
+
+
+
+
+
+ IEvent
+View. getMenuNewGameEvent ()
+
+
+
+
+
+
+(package private) IEvent
+SettingsPanel. getNetworkGameEvent ()
+
+
+
+
+
+
+ IEvent
+View. getNetworkGameEvent ()
+
+
+
+
+
+
+(package private) IEvent
+RoundEndPanel. getNewGameEvent ()
+
@@ -282,10 +830,58 @@ Uses of
(package private) IEvent
-WinPanel. getNewGameEvent ()
+RoundEndPanel. getNewRoundEvent ()
- The new game event is emitted when the player wants to start a new game
+ The new round event is emitted when the player wants to start a new round
+
+
+
+ IEvent
+View. getNewRoundEvent ()
+
+
+
+
+
+
+ IEvent
+SettingsPanel. getOfferGameEvent ()
+
+
+
+
+
+
+ IEvent
+GameListPanel. getOpenNewGameEvent ()
+
+
+
+
+
+
+(package private) IEvent
+PlayerPanel. getPauseEvent ()
+
+
+
+
+
+
+ IEvent
+View. getPauseEvent ()
+
+
+
+
+
+
+ IEvent
+QuitWarningPanel. getQuitEvent ()
+
+
+
@@ -297,11 +893,27 @@ Uses of
-(package private) IEvent
-WinPanel. getQuitEvent ()
+ IEvent
+PlayerPanel. getRedealEvent ()
- The quit event is emitted when the player wants to quit the program
+
+
+
+
+ IEvent
+SettingsPanel. getSetVariantChildrenEvent ()
+
+
+
+
+
+
+ IEvent
+SettingsPanel. getSetVariantDefaultEvent ()
+
+
+
@@ -322,7 +934,7 @@ Uses of
IEvent
-View. getStartTurnEvent ()
+SettingsPanel. getStartGameEvent ()
@@ -333,8 +945,15 @@ Uses of getStartTurnEvent ()
- The start turn event is emitted when the current player has clicked the
- start turn button
+
+
+
+
+ IEvent
+View. getStartTurnEvent ()
+
+
+
diff --git a/doc/jrummikub/util/class-use/IEvent1.html b/doc/jrummikub/util/class-use/IEvent1.html
index 79d2d62..61bfb39 100644
--- a/doc/jrummikub/util/class-use/IEvent1.html
+++ b/doc/jrummikub/util/class-use/IEvent1.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.util.IEvent1
-
+
@@ -90,6 +90,18 @@ function windowTitle()
Packages that use IEvent1
+jrummikub.control
+
+
+
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.util
@@ -104,6 +116,266 @@ Packages that use
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -145,12 +417,141 @@ Uses of
+ IEvent1 <java.lang.Integer>
+ISettingsPanel. getChangeHighestValueEvent ()
+
+
+ The change highest value event is emitted when the user wants to set the
+ highest Stone value
+
+
+
+ IEvent1 <java.lang.Integer>
+ISettingsPanel. getChangeInitialMeldThresholdEvent ()
+
+
+ The change initial meld threshold event is emitted when the user wants
+ change the initial meld threshold
+
+
+
+ IEvent1 <java.lang.Integer>
+ISettingsPanel. getChangeJokerNumberEvent ()
+
+
+ Emitted when the joker number is changed
+
+
+
+ IEvent1 <java.lang.Boolean>
+ISettingsPanel. getChangeNoLimitsEvent ()
+
+
+ Emitted when no limits is chosen
+
+
+
+ IEvent1 <java.lang.Integer>
+ISettingsPanel. getChangeNumberOfStonesDealtEvent ()
+
+
+ The change number of Stones dealt event is emitted when the user wants to
+ be dealt more or less than 14 Stones at the game start
+
+
+
+ IEvent1 <java.lang.Boolean>
+ISettingsPanel. getChangeSeeHandSizeEvent ()
+
+
+ The change see hand size event is emitted when the player chooses to see
+ the other players hand sizes
+
+
+
+ IEvent1 <java.util.Set<StoneColor >>
+ISettingsPanel. getChangeStoneColorsEvent ()
+
+
+ The change Stone colors event is emitted when the user chooses the stone
+ colors to play with.
+
+
+
+ IEvent1 <java.lang.Integer>
+ISettingsPanel. getChangeStoneSetNumberEvent ()
+
+
+ The change StoneSet number event is emitted when the user wants to use more
+ or less than 2 StoneSets per color
+
+
+
+ IEvent1 <java.lang.Integer>
+ISettingsPanel. getChangeTimeEvent ()
+
+
+ Emitted when totalTime for a turn is changed
+
+
+
IEvent1 <Position >
IClickable. getClickEvent ()
the click event is emitted when the player clicks on the table/hand/etc.
+
+
+ IEvent1 <GameData >
+IGameListPanel. getJoinEvent ()
+
+
+ Emitted when the user chose to join an existing, open game
+
+
+
+ IEvent1 <java.io.File>
+IView. getLoadFileEvent ()
+
+
+ The load file event is emitted when the user chose to discard the current
+ game to save another
+
+
+
+ IEvent1 <LoginData >
+ILoginPanel. getLoginEvent ()
+
+
+ Player has offered all information and wants to connect
+
+
+
+ IEvent1 <java.lang.Integer>
+ISettingsPanel. getRemovePlayerEvent ()
+
+
+ The remove player event is emitted when the user wants to remove a player
+ remove the player list
+
+
+
+ IEvent1 <java.io.File>
+IView. getSaveEvent ()
+
+
+ The save event is emitted when the user wants to save the current game
+ state
+
+
+
+ IEvent1 <java.lang.String>
+ILoginPanel. getUseDedicatedServerEvent ()
+
+
+ Emitted when the user presses the use dedicated server button
+
@@ -170,6 +571,102 @@ Uses of
+ IEvent1 <java.lang.Integer>
+SettingsPanel. getChangeHighestValueEvent ()
+
+
+
+
+
+
+ IEvent1 <java.lang.Integer>
+SettingsPanel. getChangeInitialMeldThresholdEvent ()
+
+
+
+
+
+
+ IEvent1 <java.lang.Integer>
+SettingsPanel. getChangeJokerNumberEvent ()
+
+
+
+
+
+
+ IEvent1 <java.lang.Boolean>
+SettingsPanel. getChangeNoLimitsEvent ()
+
+
+
+
+
+
+ IEvent1 <java.lang.Integer>
+SettingsPanel. getChangeNumberOfStonesDealtEvent ()
+
+
+
+
+
+
+ IEvent1 <java.lang.Boolean>
+SettingsPanel. getChangeSeeHandSizeEvent ()
+
+
+
+
+
+
+ IEvent1 <java.util.Set<StoneColor >>
+SettingsPanel. getChangeStoneColorsEvent ()
+
+
+
+
+
+
+ IEvent1 <java.lang.Integer>
+SettingsPanel. getChangeStoneSetNumberEvent ()
+
+
+
+
+
+
+ IEvent1 <java.lang.Integer>
+SettingsPanel. getChangeTimeEvent ()
+
+
+
+
+
+
+ IEvent1 <GameData >
+GameListPanel. getJoinEvent ()
+
+
+
+
+
+
+ IEvent1 <java.io.File>
+View. getLoadFileEvent ()
+
+
+
+
+
+
+ IEvent1 <LoginData >
+LoginPanel. getLoginEvent ()
+
+
+
+
+
+
(package private) IEvent1 <java.awt.Point>
StoneCollectionPanel. getOtherClickEvent ()
@@ -177,6 +674,30 @@ Uses of
+
+ IEvent1 <java.lang.Integer>
+SettingsPanel. getRemovePlayerEvent ()
+
+
+
+
+
+
+ IEvent1 <java.io.File>
+View. getSaveEvent ()
+
+
+
+
+
+
+ IEvent1 <java.lang.String>
+LoginPanel. getUseDedicatedServerEvent ()
+
+
+
+
diff --git a/doc/jrummikub/util/class-use/IEvent2.html b/doc/jrummikub/util/class-use/IEvent2.html
index 45fc983..e663aac 100644
--- a/doc/jrummikub/util/class-use/IEvent2.html
+++ b/doc/jrummikub/util/class-use/IEvent2.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.util.IEvent2
-
+
@@ -90,6 +90,14 @@ function windowTitle()
Packages that use IEvent2
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.util
@@ -97,6 +105,92 @@ Packages that use jrummikub.view
+
+jrummikub.view.impl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -141,12 +235,39 @@ Uses of
+ IEvent2 <java.lang.Integer,java.awt.Color>
+ISettingsPanel. getChangePlayerColorEvent ()
+
+
+ The change player color event is emitted when the user wants change a
+ player's color
+
+
+
+ IEvent2 <java.lang.Integer,java.lang.String>
+ISettingsPanel. getChangePlayerNameEvent ()
+
+
+ The change player color event is emitted when the user wants change a
+ player's name
+
+
+
+ IEvent2 <java.lang.Integer,PlayerSettings.Type >
+ISettingsPanel. getChangePlayerTypeEvent ()
+
+
+ The change player color event is emitted when the user wants change a
+ player's type
+
+
+
IEvent2 <Stone ,java.lang.Boolean>
IStonePanel. getRangeClickEvent ()
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
@@ -155,7 +276,7 @@ Uses of
@@ -168,6 +289,47 @@ Uses of
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/util/class-use/IListener.html b/doc/jrummikub/util/class-use/IListener.html
index 03317c3..c2b280e 100644
--- a/doc/jrummikub/util/class-use/IListener.html
+++ b/doc/jrummikub/util/class-use/IListener.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.util.IListener
-
+
@@ -106,6 +106,22 @@ Uses of
+
+Fields in jrummikub.util with type parameters of type IListener
+
+
+
+private java.util.HashSet<IListener >
+Event. listeners
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/util/class-use/IListener2.html b/doc/jrummikub/util/class-use/IListener2.html
index 5e0d7ec..142038f 100644
--- a/doc/jrummikub/util/class-use/IListener2.html
+++ b/doc/jrummikub/util/class-use/IListener2.html
@@ -2,12 +2,12 @@
-
+
Uses of Interface jrummikub.util.IListener2
-
+
@@ -108,15 +108,23 @@ Uses of
-Methods in jrummikub.util with parameters of type IListener2
+Fields in jrummikub.util with type parameters of type IListener2
- Connection
-IEvent2. add (IListener2 <T1 ,T2 > listener)
+private java.util.HashSet<IListener2 <T1 ,T2 >>
+Event2. listeners
- Start to publish all events to a given listener
+
+
+
+
+
+
+
diff --git a/doc/jrummikub/util/class-use/Pair.html b/doc/jrummikub/util/class-use/Pair.html
index 3e02241..b672399 100644
--- a/doc/jrummikub/util/class-use/Pair.html
+++ b/doc/jrummikub/util/class-use/Pair.html
@@ -2,12 +2,12 @@
-
+
Uses of Class jrummikub.util.Pair
-
+
@@ -94,6 +94,10 @@ Packages that use
+ jrummikub.control.turn
+
+
+
jrummikub.model
@@ -118,14 +122,61 @@ Uses of
+
+Methods in jrummikub.control that return Pair
+
+
+
+private static Pair <java.lang.Integer,java.lang.Integer>
+RoundControl. updateBestScore (Pair <java.lang.Integer,java.lang.Integer> bestScore,
+ int stonePoints,
+ int size)
+
+
+ Update the best score to find the winner in case of special game end
+ (everybody still has stones on hand)
+
+
+
+
+
Methods in jrummikub.control with parameters of type Pair
+private static Pair <java.lang.Integer,java.lang.Integer>
+RoundControl. updateBestScore (Pair <java.lang.Integer,java.lang.Integer> bestScore,
+ int stonePoints,
+ int size)
+
+
+ Update the best score to find the winner in case of special game end
+ (everybody still has stones on hand)
+
+
+
+
+
+
+
+
+
+
+
+Methods in jrummikub.control.turn with parameters of type Pair
+
+
+
int
-TurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
+HumanTurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
Pair <Stone ,Position > pair2)
@@ -134,7 +185,7 @@ Uses of
int
-TurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
+HumanTurnControl.HandStonePositionComparator. compare (Pair <Stone ,Position > pair1,
Pair <Stone ,Position > pair2)
@@ -159,6 +210,14 @@ Uses of
+private static java.util.Comparator<Pair <java.lang.Integer,StoneColor >>
+Hand. comparator
+
+
+ The measure to compare the stones by
+
+
+
protected java.util.HashMap<E ,Pair <E ,Position >>
StoneTray. objects
@@ -175,6 +234,32 @@ Uses of
+ Pair <StoneSet.Type ,java.lang.Integer>
+StoneSet. classify (GameSettings settings)
+
+
+ Test for rule conflict within the StoneSet and determine whether the set is
+ a group or a run
+
+
+
+private Pair <StoneSet.Type ,java.lang.Integer>
+StoneSet. classifyJokersOnly (GameSettings settings)
+
+
+ Test for rule conflict within a StoneSet with jokers only and determine
+ whether the set is a group or a run
+
+
+
+private static Pair <java.util.TreeMap<Pair <java.lang.Integer,StoneColor >,java.lang.Integer>,java.lang.Integer>
+Hand. countStones (java.util.List<Stone > stones)
+
+
+ Counts the numbers of stones
+
+
+
protected Pair <Position ,StoneTray.Direction >
StoneTray. fixInvalidDrop (E object,
Position pos,
@@ -213,6 +298,14 @@ Uses of
+private static Pair <java.util.TreeMap<Pair <java.lang.Integer,StoneColor >,java.lang.Integer>,java.lang.Integer>
+Hand. countStones (java.util.List<Stone > stones)
+
+
+ Counts the numbers of stones
+
+
+
java.util.Iterator<Pair <E ,Position >>
StoneTray. iterator ()
@@ -222,6 +315,60 @@ Uses of
+
+Methods in jrummikub.model with parameters of type Pair
+
+
+
+private StoneTray.Direction
+StoneTray. getMoveDirection (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+
+ Returns the direction to move the object in
+
+
+
+private boolean
+StoneTray. getMoveOrientation (E object,
+ Position position,
+ Pair <E ,Position > blocking)
+
+
+ Will the object be moved horizontally or vertically
+
+
+
+private static void
+Hand. incrementStoneCount (java.util.TreeMap<Pair <java.lang.Integer,StoneColor >,java.lang.Integer> stones,
+ Pair <java.lang.Integer,StoneColor > stone)
+
+
+ Increments the count of a stone in the list of all stones
+
+
+
+
+
+
+
+
+
+
+
Methods in jrummikub.view.impl that return Pair
-protected Pair <java.lang.Integer,java.lang.Integer>
-AbstractStonePanel. getTranslation ()
+private static Pair <java.lang.Integer,java.lang.Integer>
+GameListPanel. getPlayerSlotCount (GameData gameData)
- Returns the translation in pixels the stones in this panel are painted with
+ Counts the empty slots for network players in a game
protected Pair <java.lang.Integer,java.lang.Integer>
StoneCollectionPanel. getTranslation ()
+
+
+
+
+
+ Pair <java.lang.Integer,java.lang.Integer>
+HandPanel. getTranslation ()
+
@@ -293,6 +480,15 @@ Uses of
+
+protected Pair <java.lang.Integer,java.lang.Integer>
+AbstractStonePanel. getTranslation ()
+
+
+ Returns the translation in pixels the stones in this panel are painted
+ with
+
@@ -303,6 +499,14 @@ Uses of
+private java.util.List<Pair <Stone ,Position >>
+View. createDecorationStones ()
+
+
+
+
+
+
protected java.lang.Iterable<Pair <Stone ,Position >>
AbstractStonePanel. getStones ()
@@ -319,14 +523,6 @@ Uses of
-protected void
-AbstractStonePanel. setStones (java.lang.Iterable<Pair <Stone ,Position >> stones)
-
-
- Sets the list of stones that can be clicked on
-
-
-
void
HandPanel. setStones (java.lang.Iterable<Pair <Stone ,Position >> stones)
@@ -335,6 +531,14 @@ Uses of
+protected void
+AbstractStonePanel. setStones (java.lang.Iterable<Pair <Stone ,Position >> stones)
+
+
+ Sets the list of stones that can be clicked on
+
+
+
void
TablePanel. setStoneSets (java.lang.Iterable<Pair <StoneSet ,Position >> stoneSets)
diff --git a/doc/jrummikub/util/package-frame.html b/doc/jrummikub/util/package-frame.html
index 957b944..c50821c 100644
--- a/doc/jrummikub/util/package-frame.html
+++ b/doc/jrummikub/util/package-frame.html
@@ -2,12 +2,12 @@
-
+
jrummikub.util
-
+
@@ -31,11 +31,15 @@ Interfaces
IEvent2
+IEvent3
+
IListener
IListener1
-IListener2
+IListener2
+
+IListener3
@@ -52,6 +56,12 @@ Classes
Event2
+Event3
+
+GameData
+
+LoginData
+
Pair
diff --git a/doc/jrummikub/util/package-summary.html b/doc/jrummikub/util/package-summary.html
index 89b094a..6ef1280 100644
--- a/doc/jrummikub/util/package-summary.html
+++ b/doc/jrummikub/util/package-summary.html
@@ -2,12 +2,12 @@
-
+
jrummikub.util
-
+
@@ -55,7 +55,7 @@ function windowTitle()
- PREV PACKAGE
+ PREV PACKAGE
NEXT PACKAGE
FRAMES
@@ -105,6 +105,10 @@ Package jrummikub.util
Interface for classes that can generate events having a two parameters
+IEvent3<T1,T2,T3>
+Interface for classes that can generate events having a two parameters
+
+
IListener
Interface for classes that can receive parameterless events
@@ -118,6 +122,11 @@ Package jrummikub.util
Interface for classes that can receive parameterless events having a two
parameters
+
+IListener3<T1,T2,T3>
+Interface for classes that can receive parameterless events having a two
+ parameters
+
@@ -141,6 +150,19 @@ Package jrummikub.util
Simple single parameter event generator
+Event3<T1,T2,T3>
+Simple single parameter event generator
+
+
+GameData
+Class summarizing the game data important for unique and sensible network
+ representation and use
+
+
+LoginData
+Data needed for the login in one data type (name, server, password, channel)
+
+
Pair<T1,T2>
A pair of objects
@@ -180,7 +202,7 @@ Package jrummikub.util
- PREV PACKAGE
+ PREV PACKAGE
NEXT PACKAGE
FRAMES
diff --git a/doc/jrummikub/util/package-tree.html b/doc/jrummikub/util/package-tree.html
index 2fc30d0..db97353 100644
--- a/doc/jrummikub/util/package-tree.html
+++ b/doc/jrummikub/util/package-tree.html
@@ -2,12 +2,12 @@
-
+
jrummikub.util Class Hierarchy
-
+
@@ -55,7 +55,7 @@ function windowTitle()
- PREV
+ PREV
NEXT
FRAMES
@@ -95,13 +95,15 @@ Class Hierarchy
jrummikub.util.Event (implements jrummikub.util.IEvent )
jrummikub.util.Event1 <T> (implements jrummikub.util.IEvent1 <T>)
jrummikub.util.Event2 <T1,T2> (implements jrummikub.util.IEvent2 <T1,T2>)
- jrummikub.util.Pair <T1,T2>
+ jrummikub.util.Event3 <T1,T2,T3> (implements jrummikub.util.IEvent3 <T1,T2,T3>)
+ jrummikub.util.GameData jrummikub.util.LoginData jrummikub.util.Pair <T1,T2> (implements java.io.Serializable)
+
Interface Hierarchy
+ jrummikub.util.Connection jrummikub.util.IEvent jrummikub.util.IEvent1 <T> jrummikub.util.IEvent2 <T1,T2> jrummikub.util.IEvent3 <T1,T2,T3> jrummikub.util.IListener jrummikub.util.IListener1 <T> jrummikub.util.IListener2 <T1,T2> jrummikub.util.IListener3 <T1,T2,T3>
@@ -132,7 +134,7 @@ Interface Hierarchy
- PREV
+ PREV
NEXT
FRAMES
diff --git a/doc/jrummikub/util/package-use.html b/doc/jrummikub/util/package-use.html
index a7e7814..c2e6bbc 100644
--- a/doc/jrummikub/util/package-use.html
+++ b/doc/jrummikub/util/package-use.html
@@ -2,12 +2,12 @@
-
+
Uses of Package jrummikub.util
-
+
@@ -94,6 +94,14 @@ Packages that use jrummikub.
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.model
@@ -119,14 +127,177 @@ Packages that use jrummikub.
Classes in jrummikub.util used by jrummikub.control
+Connection
+
+
+ A Connection object can be used to remove a listener from a event
+
+
+Event
+
+
+ Simple parameterless event generator
+
+
+Event1
+
+
+ Simple single parameter event generator
+
+
+Event3
+
+
+ Simple single parameter event generator
+
+
IEvent
Interface for classes that can generate parameterless events
+IEvent1
+
+
+ Interface for classes that can generate events having a single parameter
+
+
+IEvent3
+
+
+ Interface for classes that can generate events having a two parameters
+
+
+LoginData
+
+
+ Data needed for the login in one data type (name, server, password, channel)
+
+
Pair
+
+ A pair of objects
+
+
+
+
+
+
+
+
+Classes in jrummikub.util used by jrummikub.control.network
+
+
+Connection
+
+
+ A Connection object can be used to remove a listener from a event
+
+
+Event
+
+
+ Simple parameterless event generator
+
+
+Event1
+
+
+ Simple single parameter event generator
+
+
+Event2
+
+
+ Simple single parameter event generator
+
+
+GameData
+
+
+ Class summarizing the game data important for unique and sensible network
+ representation and use
+
+
+IEvent
+
+
+ Interface for classes that can generate parameterless events
+
+
+IEvent1
+
+
+ Interface for classes that can generate events having a single parameter
+
+
+IEvent2
+
+
+ Interface for classes that can generate events having a two parameters
+
+
+LoginData
+
+
+ Data needed for the login in one data type (name, server, password, channel)
+
+
+
+
+
+
+
+
+Classes in jrummikub.util used by jrummikub.control.turn
+
+
+Connection
+
+
+ A Connection object can be used to remove a listener from a event
+
+
+Event
+
+
+ Simple parameterless event generator
+
+
+Event1
+
+
+ Simple single parameter event generator
+
+
+Event2
+
+
+ Simple single parameter event generator
+
+
+IEvent
+
+
+ Interface for classes that can generate parameterless events
+
+
+IEvent1
+
+
+ Interface for classes that can generate events having a single parameter
+
+
+IEvent2
+
+
+ Interface for classes that can generate events having a two parameters
+
+
+Pair
+
A pair of objects
@@ -175,6 +346,12 @@ Classes in jrummikub.util
IEvent2
+
+ Interface for classes that can generate events having a two parameters
+
+
+IEvent3
+
Interface for classes that can generate events having a two parameters
@@ -194,6 +371,13 @@ Classes in jrummikub.util
IListener2
+
+ Interface for classes that can receive parameterless events having a two
+ parameters
+
+
+IListener3
+
Interface for classes that can receive parameterless events having a two
parameters
@@ -214,6 +398,13 @@ Classes in jrummikub.util
+GameData
+
+
+ Class summarizing the game data important for unique and sensible network
+ representation and use
+
+
IEvent
@@ -232,6 +423,12 @@ Classes in jrummikub.util
+LoginData
+
+
+ Data needed for the login in one data type (name, server, password, channel)
+
+
Pair
@@ -247,6 +444,12 @@ Classes in jrummikub.util jrummikub.util used by jrummikub.view.impl
+Event
+
+
+ Simple parameterless event generator
+
+
Event1
@@ -259,6 +462,13 @@ Classes in jrummikub.util
+GameData
+
+
+ Class summarizing the game data important for unique and sensible network
+ representation and use
+
+
IEvent
@@ -271,6 +481,18 @@ Classes in jrummikub.util
+IEvent2
+
+
+ Interface for classes that can generate events having a two parameters
+
+
+LoginData
+
+
+ Data needed for the login in one data type (name, server, password, channel)
+
+
Pair
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 CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -187,7 +187,7 @@ getClickEvent
PREV CLASS
- NEXT CLASS
+ NEXT 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 CLASS
+ PREV 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,34 +183,18 @@ 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 CLASS
+ PREV 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 CLASS
+ PREV 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 lefttotalTime
- 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 CLASS
+ PREV 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
+
+
+
+
+
+
+
+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 CLASS
+ NEXT 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 class
+IView.BottomPanelType
+
+
+ Different types of bottom panels
+
+
+
@@ -119,18 +136,129 @@ The top-level view interface
void
-enableStartTurnPanel (boolean enable)
+clearView ()
- Enables or disables the player's StartTurnPanel
+ Hides all view elements and panels except for the cleared table and an
+ empty hand panel
void
-enableWinPanel (boolean enable)
+enablePauseMode (boolean enable)
- Enables or disables the panel shown when a player has won
+ Enable/disable pause mode
+
+
+
+ void
+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 ()
+
+
+ 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,6 +558,34 @@ The top-level view interface
+
+getSettingsPanel
+
+ISettingsPanel getSettingsPanel ()
+
+Returns the settings panel
+
+
+
+Returns: the settings panel
+
+
+
+
+
+getScorePanel
+
+IScorePanel getScorePanel ()
+
+Returns the score panel
+
+
+
+Returns: the score panel
+
+
+
+
getTablePanel
@@ -216,6 +600,32 @@ getTablePanel
+
+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
@@ -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,19 +692,6 @@ void setSelectedStones (java.util.Collection<
-enableStartTurnPanel
-
-void enableStartTurnPanel (boolean enable)
-
-Enables or disables the player's StartTurnPanel
-
-
-Parameters: enable
- enable/disable
-
-
-
-
getStartTurnEvent
@@ -283,23 +706,40 @@ getStartTurnEvent
-
-enableWinPanel
+
+getAcknowledgeInvalidEvent
-void enableWinPanel (boolean enable)
+IEvent getAcknowledgeInvalidEvent ()
-Enables or disables the panel shown when a player has won
+The start turn event is emitted when the player knows what invalid stones
+ he played
-Parameters: enable
- enable/disable
+
+ Returns: the event
-
-getQuitEvent
+
+getAcknowledgeConnectionLostEvent
-IEvent getQuitEvent ()
+IEvent getAcknowledgeConnectionLostEvent ()
+
+The acknoledge connection lost event is emitted when the user has
+ acknowledged that the network connection was lost
+
+
+
+Returns: the event
+
+
+
+
+
+getEndProgramEvent
+
+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 CLASS
+ NEXT 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
+
+
+
+
+
+
+
+
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
+ Create a new RoundControl using the given roundState and view
-TurnControl (IHand hand,
- ITable table,
- IView view)
+RoundControl (IRoundState roundState,
+ IView view,
+ boolean mayPause)
- Create a new TurnControl using a given hand (of the active player), a given
- table and a given view for user interaction.
+ Create a new RoundControl using the given roundState and view
-TurnControl (IHand hand,
- ITable table,
- IView view,
- ITurnTimer testTimer)
+SaveControl (IView view)
- Test only constructor
+ Creates a new SaveControl
-TurnTimer (IView view)
+SettingsControl (IView view,
+ GameSettings settings)
+
+
+ Create a new settings control
+
+
+TurnTimer (IView view,
+ int totalTime)
Create a new timer using a given view to display the current time left
@@ -154,6 +244,178 @@ Uses of
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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()
PREV CLASS
- NEXT 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
@@ -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
@@ -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.
+ etc. and wants to select a whole set instead of a single stone
+
+
+
+private Stone
+getStoneAt (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
+ 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 void
+setHoveredStone (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
+
+
+
+
+
+
+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
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -693,9 +879,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/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 CLASS
+ PREV 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, WIDTH
+ABORT, 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
+
+
+
+
+
+
+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 CLASS
+ PREV 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 CLASS
+ PREV 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
+
+
+
+
@@ -227,6 +483,48 @@ Implementation of the player panel
+private javax.swing.JButton
+createButton (javax.swing.JPanel panel,
+ java.lang.String caption,
+ java.awt.event.ActionListener listener)
+
+
+
+
+
+
+private void
+createLeftPanel ()
+
+
+
+
+
+
+private void
+createRightPanel ()
+
+
+
+
+
+
+private void
+createRightPanelButtons ()
+
+
+
+
+
+
+(package private) void
+enableButtons (boolean enable)
+
+
+
+
+
+
IEvent
getEndTurnEvent ()
@@ -235,7 +533,7 @@ Implementation of the player panel
- HandPanel
+(package private) HandPanel
getHandPanel ()
@@ -243,6 +541,30 @@ Implementation of the player panel
+(package private) int
+getLeftPanelWidth ()
+
+
+
+
+
+
+(package private) IEvent
+getPauseEvent ()
+
+
+
+
+
+
+ IEvent
+getRedealEvent ()
+
+
+ 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
+ The sort by runs event is emitted when the player wants to sort his
+ stones by runs
+
+
+
+(package private) void
+rescale ()
+
+
+
+
+
+
+(package private) void
+setCurrentPlayerColor (java.awt.Color color)
+
+
+
@@ -270,11 +608,52 @@ Implementation of the player panel
void
-setTimeLeft (int time)
+setEndTurnMode (TurnMode turnMode)
+
+
+ Sets the buttons available to end the turn
+
+
+
+(package private) void
+setHasLaidOut (boolean hasLaidOut)
+
+
+
+
+
+
+(package private) void
+setMayPause (boolean mayPause)
+
+
+
+
+
+
+ void
+setTime (int time,
+ int totalTime)
Sets the time the player has left for his turn
+
+
+(package private) void
+showButtons (boolean show)
+
+
+
+
+
+
+(package private) void
+updateButtons ()
+
+
+
+
@@ -324,6 +703,315 @@ Implementation of the player panel
+
+
+
+
+
+
+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
-public void setTimeLeft (int time)
+void setCurrentPlayerColor (java.awt.Color color)
-Description copied from interface: IPlayerPanel
+
+
+
+
+
+
+
+
+
+
+setHasLaidOut
+
+void setHasLaidOut (boolean hasLaidOut)
+
+
+
+
+
+
+
+
+
+
+
+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 lefttotalTime
- 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 CLASS
+ PREV 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
+
+
+
+
@@ -291,6 +506,185 @@ A panel that is displayed before a player's turn
+
+
+
+
+
+
+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)
-Sets the current player name
-
-Parameters: playerName
- the player name
+
+
+
+
+
+
+setInitialMeldFirstError
+
+void setInitialMeldFirstError ()
+
+
+
@@ -338,12 +741,107 @@ getStartTurnEvent
IEvent getStartTurnEvent ()
-The start turn event is emitted when the current player has clicked the
- start turn button
-
+
+
+
+
-Returns: the event
+
+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)
+
+
+
+
+
+
+
+
+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)
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
@@ -261,6 +310,22 @@ Implementation of the stone collection (selection)
+private void
+rescale ()
+
+
+
+
+
+
+ void
+setHidden (boolean enable)
+
+
+ Hide stone collection
+
+
+
(package private) void
setSelectedStones (java.util.Collection<Stone > selectedStones)
@@ -334,6 +399,75 @@ Implementation of the stone collection (selection)
+
+
+
+
+
+
+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 CLASS
+ NEXT 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
-
+
+
+
+
+
@@ -119,7 +136,71 @@ The StonePainter paints stones and converts between pixel and grid
-static float
+private static double
+ASPECT_RATIO
+
+
+
+
+
+
+private static java.awt.Color
+BACKGROUND_COLOR
+
+
+
+
+
+
+private static double
+BRIGHTER_SCALE
+
+
+
+
+
+
+private static double
+CIRCLE_POS
+
+
+
+
+
+
+private static double
+CIRCLE_WIDTH
+
+
+
+
+
+
+private static double
+DEFAULT_WIDTH
+
+
+
+
+
+
+private java.util.Map<StonePainter.StoneState ,java.util.Map<StoneColor ,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>>
+defaultStones
+
+
+
+
+
+
+private static double
+FACE_WIDTH
+
+
+
+
+
+
+(package private) static double
HEIGHT_SCALE
@@ -127,7 +208,47 @@ The StonePainter paints stones and converts between pixel and grid
-static float
+private static double
+HOVER_RATIO
+
+
+
+
+
+
+private java.util.Map<StonePainter.StoneState ,java.util.Map<StoneColor ,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>>
+hoveredStones
+
+
+
+
+
+
+private static double
+REDDEN_RATIO
+
+
+
+
+
+
+private double
+scale
+
+
+
+
+
+
+private static double
+TEXT_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)
@@ -161,7 +282,15 @@ The StonePainter paints stones and converts between pixel and grid
- Position
+private static java.awt.Color
+brighter (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
- int
+private static int
+even (double f)
+
+
+
+
+
+
+(package private) static java.awt.Color
+getColor (StoneColor color)
+
+
+
+
+
+
+(package private) int
getStoneHeight ()
@@ -178,7 +323,18 @@ The StonePainter paints stones and converts between pixel and grid
- int
+private java.awt.image.BufferedImage
+getStoneImage (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
- void
-paintStone (java.awt.Graphics2D g,
+private static java.awt.Color
+hover (java.awt.Color color)
+
+
+
+
+
+
+private void
+paintCircle (java.awt.Graphics2D g,
+ java.awt.Rectangle r,
+ java.awt.Color background)
+
+
+
+
+
+
+private void
+paintJoker (java.awt.Graphics2D g,
+ java.awt.Rectangle r,
+ java.awt.Color color)
+
+
+
+
+
+
+private void
+paintJokerFace (java.awt.Graphics2D g,
+ java.awt.Rectangle r)
+
+
+
+
+
+
+(package private) void
+paintStone (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
- void
-setScale (float scale)
+private void
+paintStoneBackground (java.awt.Graphics2D g,
+ java.awt.Rectangle r,
+ java.awt.Color background)
+
+
+
+
+
+
+private void
+paintStoneValue (java.awt.Graphics2D g,
+ java.awt.Rectangle r,
+ java.awt.Color color,
+ int v)
+
+
+
+
+
+
+private java.awt.image.BufferedImage
+prepaintStone (java.awt.Color fg,
+ java.awt.Color bg,
+ int value)
+
+
+
+
+
+
+private static java.awt.Color
+redden (java.awt.Color color)
+
+
+
+
+
+
+private void
+resetPrepaint ()
+
+
+
+
+
+
+(package private) void
+setScale (double scale)
Sets the new grid scale
@@ -227,10 +467,130 @@ The StonePainter paints stones and converts between pixel and grid
+
+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 coordinatesy
- 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 onstone
- the stone to paintp
- the position of the stoneselected
- if selected is true the stone will be painted darkerhovered
- if hovered is true the stone will be painted brighter
+ Parameters: g
- the graphics context to paint the stone onstone
- the stone to paintp
- the position of the stonestate
- if the stone is selected the stone will be painted darker, if
+ it is invalid it will be painted in redhovered
- if hovered is true the stone will be painted brighter
@@ -376,7 +905,7 @@ public void paintStone (java.awt.Graphics2D g,
PREV CLASS
- NEXT CLASS
+ NEXT 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
+private java.awt.geom.Rectangle2D
+calculateTableExtent ()
+
+
+
+
+
+
+(package private) void
+createPauseStoneSets ()
+
+
+
+
+
+
+(package private) void
+enablePauseMode (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
+ Returns the translation in pixels the stones in this panel are painted
+ with
@@ -287,19 +472,39 @@ The implementation of the table
- void
-setLeftPlayerName (java.lang.String playerName)
+private void
+paintStoneSet (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
+
- void
-setRightPlayerName (java.lang.String playerName)
+private void
+rescale ()
- Sets the player name on the right label
+
+
+
+
+(package private) void
+setInvalidStoneSets (java.util.Collection<StoneSet > sets)
+
+
+
+
+
+
+private void
+setScale ()
+
+
+
@@ -317,14 +522,6 @@ The implementation of the table
Sets the stone sets lying on the table
-
-
- void
-setTopPlayerName (java.lang.String playerName)
-
-
- Sets the player name on the top label
-
@@ -401,6 +598,215 @@ The implementation of the table
+
+
+
+
+
+
+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()
@@ -100,11 +101,11 @@ java.lang.Object
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.JFrameimplements jrummikub.view.IView
+public class View extends javax.swing.JFrameimplements 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.BaselineResizeBehavior
+java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
-Nested classes/interfaces inherited from interface jrummikub.view.IView
+Nested classes/interfaces inherited from interface jrummikub.view.IView
-jrummikub.view.IView.BottomPanelType
+IView.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_CLOSE
+accessibleContext, 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,6 +797,26 @@ Implementation of the top-level view interface
+private void
+rescale ()
+
+
+
+
+
+
+private void
+rescaleSubpanel (javax.swing.JPanel sub,
+ double widthFactor,
+ double heightFactor,
+ int minWidth,
+ int minHeight)
+
+
+
+
+
+
void
resetLoginPanel ()
@@ -467,8 +825,16 @@ Implementation of the top-level view interface
+private void
+save ()
+
+
+
+
+
+
void
-setBottomPanel (jrummikub.view.IView.BottomPanelType type)
+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
@@ -643,7 +1009,7 @@ Implementation of the top-level view interface
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
+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
@@ -661,7 +1027,7 @@ Implementation of the top-level view interface
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
+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
@@ -670,7 +1036,7 @@ Implementation of the top-level view interface
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
+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
@@ -679,7 +1045,7 @@ Implementation of the top-level view interface
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
+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
@@ -688,7 +1054,7 @@ Implementation of the top-level view interface
Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
@@ -703,6 +1069,295 @@ Implementation of the top-level view interface
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+loadFileEvent
+
+private Event1 <java.io.File> loadFileEvent
+
+
+
+
+
+
+
+saveEvent
+
+private Event1 <java.io.File> saveEvent
+
+
+
+
+
+
+
+quitEvent
+
+private Event quitEvent
+
+
+
+
+
+
+
+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)
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
+
+
+
+
+
+
+
+
Methods in jrummikub.view.impl that return HandPanel
- HandPanel
+(package private) 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
+
+
+
+
+
+
+
+
+
+
+
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
+
+
+
+
+
+
+
+
+
+
+
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 StonePainter
+AbstractStonePanel. stonePainter
+
+
+
+
+
+
+
+
Methods in jrummikub.view.impl that return 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
+
+
+
+
+
+
+
+
+
+
+
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()
- Package
+ Overview
+ Package
Class
Use
- Tree
+ Tree
Deprecated
Index
Help
@@ -96,10 +97,11 @@ No usage of jrummikub.view.impl.View
+
+
+
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()
+
+
+
+
+
@@ -109,7 +201,8 @@ Package jrummikub.view.impl
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -126,7 +219,7 @@ Package jrummikub.view.impl
- PREV PACKAGE
+ PREV PACKAGE
NEXT PACKAGE
FRAMES
diff --git a/doc/jrummikub/view/impl/package-tree.html b/doc/jrummikub/view/impl/package-tree.html
index aa6b9da..f3ee862 100644
--- a/doc/jrummikub/view/impl/package-tree.html
+++ b/doc/jrummikub/view/impl/package-tree.html
@@ -2,12 +2,12 @@
-
+
jrummikub.view.impl Class Hierarchy
-
+
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -54,7 +55,7 @@ function windowTitle()
- PREV
+ PREV
NEXT
FRAMES
@@ -83,6 +84,9 @@ function windowTitle()
Hierarchy For Package jrummikub.view.impl
+
+Package Hierarchies: All Packages
+
Class Hierarchy
@@ -91,18 +95,56 @@ Class Hierarchy
java.awt.Component (implements java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable)
java.awt.Container
+javax.swing.JComponent (implements java.io.Serializable)
+
+javax.swing.JLabel (implements javax.accessibility.Accessible, javax.swing.SwingConstants)
+
+ javax.swing.JPanel (implements javax.accessibility.Accessible)
+
+
java.awt.Window (implements javax.accessibility.Accessible)
java.awt.Frame (implements java.awt.MenuContainer)
javax.swing.JFrame (implements javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants)
-jrummikub.view.impl.View (implements jrummikub.view.IView)
+ jrummikub.view.impl.View (implements jrummikub.view.IView )
+ java.awt.event.ComponentAdapter (implements java.awt.event.ComponentListener)
+
+ jrummikub.view.impl.ImageUtil jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel.NameChangeListener (implements javax.swing.event.DocumentListener)
+ jrummikub.view.impl.StonePainter
+
+
+Enum Hierarchy
+
+
+java.lang.Object
+java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
+
@@ -117,7 +159,8 @@ Class Hierarchy
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -134,7 +177,7 @@ Class Hierarchy
- PREV
+ PREV
NEXT
FRAMES
diff --git a/doc/jrummikub/view/impl/package-use.html b/doc/jrummikub/view/impl/package-use.html
index 310aa12..a835bea 100644
--- a/doc/jrummikub/view/impl/package-use.html
+++ b/doc/jrummikub/view/impl/package-use.html
@@ -2,12 +2,12 @@
-
+
Uses of Package jrummikub.view.impl
-
+
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -82,7 +83,154 @@ function windowTitle()
Uses of Package jrummikub.view.impl
-No usage of jrummikub.view.impl
+
+
+
+
+
+
+
@@ -96,7 +244,8 @@ No usage of jrummikub.view.impl
+
+
+
diff --git a/doc/jrummikub/view/package-summary.html b/doc/jrummikub/view/package-summary.html
index 6bea81c..d96b6a2 100644
--- a/doc/jrummikub/view/package-summary.html
+++ b/doc/jrummikub/view/package-summary.html
@@ -2,12 +2,12 @@
-
+
jrummikub.view
-
+
@@ -93,14 +93,43 @@ Package jrummikub.view
An interface for view elements that can emit click events
+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
+
+
+IScorePanel
+The panel the scores are displayed in
+
+
+ISettingsPanel
+The panel for the game setup
+
+
+ISidePanel
+Side panel to show all players and relevant player information in round
+ order, game settings and stone heap size
+
+
IStoneCollectionPanel
The view of the collection that shows the stones a player has selected
@@ -120,6 +149,36 @@ Package jrummikub.view
+
+
+
+
+
diff --git a/doc/jrummikub/view/package-tree.html b/doc/jrummikub/view/package-tree.html
index ca0f236..a910899 100644
--- a/doc/jrummikub/view/package-tree.html
+++ b/doc/jrummikub/view/package-tree.html
@@ -2,12 +2,12 @@
-
+
jrummikub.view Class Hierarchy
-
+
@@ -95,11 +95,21 @@ Interface Hierarchy
jrummikub.view.IHandPanel (also extends jrummikub.view.IStonePanel )
jrummikub.view.ITablePanel (also extends jrummikub.view.IStonePanel )
- jrummikub.view.IPlayerPanel jrummikub.view.IStonePanel
+
+Enum Hierarchy
+
+
+java.lang.Object
+java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
+
+
+
diff --git a/doc/jrummikub/view/package-use.html b/doc/jrummikub/view/package-use.html
index 5bd1943..138d20a 100644
--- a/doc/jrummikub/view/package-use.html
+++ b/doc/jrummikub/view/package-use.html
@@ -2,12 +2,12 @@
-
+
Uses of Package jrummikub.view
-
+
@@ -94,6 +94,14 @@ Packages that use jrummikub.
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.view
@@ -113,6 +121,54 @@ Classes in jrummikub.view
IView
+
+ The top-level view interface
+
+
+IView.BottomPanelType
+
+
+ Different types of bottom panels
+
+
+
+
+
+
+
+
+
+
@@ -178,18 +307,79 @@ Classes in jrummikub.view
+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
+
diff --git a/doc/overview-frame.html b/doc/overview-frame.html
index adc7615..39c1029 100644
--- a/doc/overview-frame.html
+++ b/doc/overview-frame.html
@@ -2,12 +2,12 @@
-
+
Overview List
-
+
@@ -32,10 +32,18 @@ Packages
jrummikub
+jrummikub.ai
+
jrummikub.control
+jrummikub.control.network
+
+jrummikub.control.turn
+
jrummikub.model
+jrummikub.server
+
jrummikub.util
jrummikub.view
diff --git a/doc/overview-summary.html b/doc/overview-summary.html
index 3032ac2..bb02fcd 100644
--- a/doc/overview-summary.html
+++ b/doc/overview-summary.html
@@ -2,12 +2,12 @@
-
+
Overview
-
+
@@ -90,14 +90,30 @@ function windowTitle()
+jrummikub.ai
+
+
+
jrummikub.control
+jrummikub.control.network
+
+
+
+jrummikub.control.turn
+
+
+
jrummikub.model
+jrummikub.server
+
+
+
jrummikub.util
diff --git a/doc/overview-tree.html b/doc/overview-tree.html
index 0cd28d3..bc77f05 100644
--- a/doc/overview-tree.html
+++ b/doc/overview-tree.html
@@ -2,12 +2,12 @@
-
+
Class Hierarchy
-
+
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -83,28 +84,140 @@ function windowTitle()
Hierarchy For All Packages
-Package Hierarchies: jrummikub.view.impl
+Package Hierarchies: jrummikub , jrummikub.ai , jrummikub.control , jrummikub.control.network , jrummikub.control.turn , jrummikub.model , jrummikub.server , jrummikub.util , jrummikub.view , jrummikub.view.impl
Class Hierarchy
java.lang.Object
-java.awt.Component (implements java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable)
+ jrummikub.control.network.AbstractGameBeginControl
+ jrummikub.control.AbstractSettingsControl
+ jrummikub.control.turn.AbstractTurnControl (implements jrummikub.control.turn.ITurnControl )
+
+ jrummikub.control.ApplicationControl java.awt.Component (implements java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable)
java.awt.Container
+javax.swing.JComponent (implements java.io.Serializable)
+
+javax.swing.JLabel (implements javax.accessibility.Accessible, javax.swing.SwingConstants)
+
+ javax.swing.JPanel (implements javax.accessibility.Accessible)
+
+
java.awt.Window (implements javax.accessibility.Accessible)
java.awt.Frame (implements java.awt.MenuContainer)
javax.swing.JFrame (implements javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants)
-jrummikub.view.impl.View (implements jrummikub.view.IView)
+ jrummikub.view.impl.View (implements jrummikub.view.IView )
+ java.awt.event.ComponentAdapter (implements java.awt.event.ComponentListener)
+
+ jrummikub.control.network.ConnectionControl (implements jrummikub.control.network.IConnectionControl )
+ jrummikub.control.network.ConnectionControl.ConnectRunner (implements java.lang.Runnable)
+ jrummikub.control.network.ConnectionControl.ConnectRunner.DisconnectListener (implements org.jivesoftware.smack.ConnectionListener)
+ jrummikub.control.network.ConnectionControl.ConnectRunner.LeaveListener (implements org.jivesoftware.smackx.muc.ParticipantStatusListener)
+ jrummikub.control.network.ConnectionControl.SendRunner (implements java.lang.Runnable)
+ jrummikub.control.network.ConnectionControl.TurnEndData (implements java.io.Serializable)
+ jrummikub.server.DedicatedServer jrummikub.server.DedicatedServer.ServerPasswordAuthorization (implements org.apache.vysper.xmpp.authorization.UserAuthorization)
+ jrummikub.util.Event (implements jrummikub.util.IEvent )
+ jrummikub.util.Event1 <T> (implements jrummikub.util.IEvent1 <T>)
+ jrummikub.util.Event2 <T1,T2> (implements jrummikub.util.IEvent2 <T1,T2>)
+ jrummikub.util.Event3 <T1,T2,T3> (implements jrummikub.util.IEvent3 <T1,T2,T3>)
+ jrummikub.control.GameControl
+ jrummikub.util.GameData jrummikub.model.GameSettings (implements java.io.Serializable)
+ jrummikub.model.GameState (implements java.io.Serializable)
+ jrummikub.control.turn.HumanTurnControl.GroupComparator (implements java.util.Comparator<T>)
+ jrummikub.control.turn.HumanTurnControl.HandStonePositionComparator (implements java.util.Comparator<T>)
+ jrummikub.control.turn.HumanTurnControl.RunComparator (implements java.util.Comparator<T>)
+ jrummikub.view.impl.ImageUtil jrummikub.control.turn.ITurnControl.TurnInfo jrummikub.JRummikub jrummikub.control.LoginControl jrummikub.util.LoginData jrummikub.control.network.NetworkControl jrummikub.util.Pair <T1,T2> (implements java.io.Serializable)
+ jrummikub.model.Player (implements jrummikub.model.IPlayer )
+ jrummikub.model.PlayerSettings (implements java.io.Serializable)
+ jrummikub.model.Position (implements java.io.Serializable)
+ jrummikub.control.RoundControl
+ jrummikub.control.RoundControl.InvalidTurnInfo (implements java.io.Serializable)
+ jrummikub.model.RoundState (implements jrummikub.model.IRoundState )
+ jrummikub.control.SaveControl jrummikub.model.Score (implements java.io.Serializable)
+ jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel.NameChangeListener (implements javax.swing.event.DocumentListener)
+ jrummikub.model.Stone (implements java.io.Serializable, jrummikub.model.Sizeable )
+ jrummikub.model.StoneHeap (implements java.io.Serializable)
+ jrummikub.view.impl.StonePainter jrummikub.model.StoneSet (implements java.lang.Iterable<T>, java.io.Serializable, jrummikub.model.Sizeable )
+ jrummikub.model.StoneTray <E> (implements jrummikub.model.IStoneTray <E>)
+
+jrummikub.model.Hand (implements jrummikub.model.IHand )
+ jrummikub.model.Table (implements jrummikub.model.ITable )
+
+ jrummikub.model.Table.StoneInfo java.lang.Throwable (implements java.io.Serializable)
+
+ jrummikub.control.turn.TurnControlFactory jrummikub.ai.TurnLogic jrummikub.ai.TurnLogic.State jrummikub.ai.TurnLogic.StoneState jrummikub.control.TurnTimer (implements java.awt.event.ActionListener, jrummikub.control.ITurnTimer )
+
+
+
+Interface Hierarchy
+
+
+
+Enum Hierarchy
+
+
+java.lang.Object
+java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
+
@@ -119,7 +232,8 @@ Class Hierarchy
- Package
+ Overview
+ Package
Class
Use
Tree
diff --git a/doc/package-list b/doc/package-list
index ebe66f6..766c00d 100644
--- a/doc/package-list
+++ b/doc/package-list
@@ -1 +1,10 @@
+jrummikub
+jrummikub.ai
+jrummikub.control
+jrummikub.control.network
+jrummikub.control.turn
+jrummikub.model
+jrummikub.server
+jrummikub.util
+jrummikub.view
jrummikub.view.impl
diff --git a/doc/serialized-form.html b/doc/serialized-form.html
index 5c2c95d..8a4fdb0 100644
--- a/doc/serialized-form.html
+++ b/doc/serialized-form.html
@@ -2,12 +2,12 @@
-
+
Serialized Form
-
+
@@ -37,7 +37,8 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
Use
Tree
@@ -84,6 +85,1022 @@ Serialized Form
+
+
+
+Package jrummikub.control
+
+
+
+
+
+
+
+
+serialVersionUID: -3591000741414366776L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+table
+
+ITable table
+
+
+
+
+
+
+type
+
+RoundControl.InvalidTurnType type
+
+
+
+
+
+
+invalidSets
+
+java.util.ArrayList<E> invalidSets
+
+
+
+
+
+
+
+
+
+Package jrummikub.model
+
+
+
+
+
+
+
+
+serialVersionUID: -7221346125938175643L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+players
+
+java.util.ArrayList<E> players
+
+
+
+
+
+
+initialMeldThreshold
+
+int initialMeldThreshold
+
+
+
+
+
+
+jokerPoints
+
+int jokerPoints
+
+
+
+
+
+
+jokerNumber
+
+int jokerNumber
+
+
+
+
+
+
+highestValue
+
+int highestValue
+
+
+
+
+
+
+stoneSetNumber
+
+int stoneSetNumber
+
+
+
+
+
+
+numberOfStonesDealt
+
+int numberOfStonesDealt
+
+
+
+
+
+
+totalTime
+
+int totalTime
+
+
+
+
+
+
+noLimits
+
+boolean noLimits
+
+
+
+
+
+
+stoneColors
+
+java.util.HashSet<E> stoneColors
+
+
+
+
+
+
+seeHandSize
+
+boolean seeHandSize
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: -5787975403310108391L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+firstRoundFirstPlayer
+
+int firstRoundFirstPlayer
+
+
+
+
+
+
+scores
+
+java.util.ArrayList<E> scores
+
+
+
+
+
+
+lastPlayerRedealed
+
+PlayerSettings lastPlayerRedealed
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: 192210056255744909L
+
+
+
+
+
+
+
+
+Class jrummikub.model.MockHand extends java.lang.Object implements Serializable
+
+
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+stones
+
+java.util.List<E> stones
+
+
+
+
+
+
+pickups
+
+java.util.Set<E> pickups
+
+
+
+
+
+
+iterable
+
+java.lang.Iterable<T> iterable
+
+
+
+
+
+
+
+
+
+
+Class jrummikub.model.MockPlayer extends java.lang.Object implements Serializable
+
+
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+hand
+
+IHand hand
+
+
+
+
+
+
+playerSettings
+
+PlayerSettings playerSettings
+
+
+
+
+
+
+laidOut
+
+boolean laidOut
+
+
+
+
+
+
+lastTurnInvalid
+
+boolean lastTurnInvalid
+
+
+
+
+
+
+lastTurnStoneCount
+
+int lastTurnStoneCount
+
+
+
+
+
+
+
+
+
+
+Class jrummikub.model.MockRoundState extends java.lang.Object implements Serializable
+
+
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+table
+
+jrummikub.model.MockTable table
+
+
+
+
+
+
+setTable
+
+ITable setTable
+
+
+
+
+
+
+players
+
+java.util.List<E> players
+
+
+
+
+
+
+activePlayer
+
+int activePlayer
+
+
+
+
+
+
+gameHeap
+
+StoneHeap gameHeap
+
+
+
+
+
+
+gameSettings
+
+GameSettings gameSettings
+
+
+
+
+
+
+lastPlayer
+
+IPlayer lastPlayer
+
+
+
+
+
+
+turnNumber
+
+int turnNumber
+
+
+
+
+
+
+gameState
+
+GameState gameState
+
+
+
+
+
+
+
+
+
+
+Class jrummikub.model.MockTable extends java.lang.Object implements Serializable
+
+
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+findStoneSet
+
+java.util.Map<K,V> findStoneSet
+
+
+
+
+
+
+valid
+
+boolean valid
+
+
+
+
+
+
+clonedTable
+
+ITable clonedTable
+
+
+
+
+
+
+sets
+
+java.util.List<E> sets
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: 2588861964190952815L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+settings
+
+PlayerSettings settings
+
+
+
+
+
+
+hand
+
+IHand hand
+
+
+
+
+
+
+laidOut
+
+boolean laidOut
+
+
+
+
+
+
+lastTurnInvalid
+
+boolean lastTurnInvalid
+
+
+
+
+
+
+lastTurnStoneCount
+
+int lastTurnStoneCount
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: 1963640115089275992L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+name
+
+java.lang.String name
+
+
+
+
+
+
+color
+
+java.awt.Color color
+
+
+
+
+
+
+turnControlType
+
+PlayerSettings.Type turnControlType
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: -582497930480638380L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+x
+
+double x
+
+
+
+
+
+
+y
+
+double y
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: 8678490099871939059L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+gameSettings
+
+GameSettings gameSettings
+
+
+
+
+
+
+gameState
+
+GameState gameState
+
+
+
+
+
+
+table
+
+ITable table
+
+
+
+
+
+
+players
+
+java.util.ArrayList<E> players
+
+
+
+
+
+
+activePlayer
+
+int activePlayer
+
+
+
+
+
+
+stoneHeap
+
+StoneHeap stoneHeap
+
+
+
+
+
+
+lastPlayer
+
+IPlayer lastPlayer
+
+
+
+
+
+
+turnNumber
+
+int turnNumber
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: 2200041688506962025L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+winners
+
+java.util.ArrayList<E> winners
+
+
+
+
+
+
+points
+
+java.util.ArrayList<E> points
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: 7032593080727812277L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+value
+
+int value
+
+
+
+
+
+
+color
+
+StoneColor color
+
+
+
+
+
+
+joker
+
+boolean joker
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: -5247740086907775125L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+heap
+
+java.util.ArrayList<E> heap
+
+
+
+
+
+
+generator
+
+java.util.Random generator
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: -3852631195648599398L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+stones
+
+java.util.ArrayList<E> stones
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: -6329309928640027222L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+objects
+
+java.util.HashMap<K,V> objects
+
+
+
+
+
+
+
+
+
+
+serialVersionUID: 2433091681355019937L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+gameSettings
+
+GameSettings gameSettings
+
+
+
+
+
+
+
+
+
+Package jrummikub.util
+
+
+
+
+
+
+
+
+serialVersionUID: 9197464436906172698L
+
+
+
+
+
+
+Serialized Fields
+
+
+
+
+first
+
+java.lang.Object first
+
+
+
+
+
+
+second
+
+java.lang.Object second
+
+
+
+
+
+
@@ -96,7 +1113,7 @@ Serialized Form
-Class jrummikub.view.impl.ConnectPanel extends javax.swing.JPanel implements Serializable
+Class jrummikub.view.impl.ConnectPanel extends javax.swing.JPanel implements Serializable
@@ -142,7 +1159,7 @@ javax.swing.JButton cancelButton
cancelEvent
-jrummikub.util.Event cancelEvent
+Event cancelEvent
@@ -205,7 +1222,7 @@ javax.swing.JMenuItem saveItem
table
-jrummikub.view.impl.TablePanel table
+TablePanel table
@@ -214,7 +1231,7 @@ jrummikub.view.impl.TablePanel table
playerPanel
-jrummikub.view.impl.PlayerPanel playerPanel
+PlayerPanel playerPanel
@@ -223,7 +1240,7 @@ jrummikub.view.impl.PlayerPanel playerPanel
startTurnPanel
-jrummikub.view.impl.StartTurnPanel startTurnPanel
+StartTurnPanel startTurnPanel
@@ -232,7 +1249,7 @@ jrummikub.view.impl.StartTurnPanel startTurnPanel
pausePanel
-jrummikub.view.impl.PausePanel pausePanel
+PausePanel pausePanel
@@ -241,7 +1258,7 @@ jrummikub.view.impl.PausePanel pausePanel
roundEndPanel
-jrummikub.view.impl.RoundEndPanel roundEndPanel
+RoundEndPanel roundEndPanel
@@ -250,7 +1267,7 @@ jrummikub.view.impl.RoundEndPanel roundEndPanel
settingsPanel
-jrummikub.view.impl.SettingsPanel settingsPanel
+SettingsPanel settingsPanel
@@ -259,7 +1276,7 @@ jrummikub.view.impl.SettingsPanel settingsPanel
loginPanel
-jrummikub.view.impl.LoginPanel loginPanel
+LoginPanel loginPanel
@@ -268,7 +1285,7 @@ jrummikub.view.impl.LoginPanel loginPanel
scorePanel
-jrummikub.view.impl.ScorePanel scorePanel
+ScorePanel scorePanel
@@ -277,7 +1294,7 @@ jrummikub.view.impl.ScorePanel scorePanel
gameListPanel
-jrummikub.view.impl.GameListPanel gameListPanel
+GameListPanel gameListPanel
@@ -286,7 +1303,7 @@ jrummikub.view.impl.GameListPanel gameListPanel
sidePanel
-jrummikub.view.impl.SidePanel sidePanel
+SidePanel sidePanel
@@ -295,7 +1312,7 @@ jrummikub.view.impl.SidePanel sidePanel
quitWarningPanel
-jrummikub.view.impl.QuitWarningPanel quitWarningPanel
+QuitWarningPanel quitWarningPanel
@@ -304,7 +1321,7 @@ jrummikub.view.impl.QuitWarningPanel quitWarningPanel
connectPanel
-jrummikub.view.impl.ConnectPanel connectPanel
+ConnectPanel connectPanel
@@ -313,7 +1330,7 @@ jrummikub.view.impl.ConnectPanel connectPanel
bottomPanelType
-jrummikub.view.IView.BottomPanelType bottomPanelType
+IView.BottomPanelType bottomPanelType
@@ -331,7 +1348,7 @@ javax.swing.JFileChooser chooser
menuNewGameEvent
-jrummikub.util.Event menuNewGameEvent
+Event menuNewGameEvent
@@ -340,7 +1357,7 @@ jrummikub.util.Event menuNewGameEvent
networkGameEvent
-jrummikub.util.Event networkGameEvent
+Event networkGameEvent
@@ -349,7 +1366,7 @@ jrummikub.util.Event networkGameEvent
loadEvent
-jrummikub.util.Event loadEvent
+Event loadEvent
@@ -358,7 +1375,7 @@ jrummikub.util.Event loadEvent
loadFileEvent
-jrummikub.util.Event1<T> loadFileEvent
+Event1 <T > loadFileEvent
@@ -367,7 +1384,7 @@ jrummikub.util.Event1<T> loadFileEvent
saveEvent
-jrummikub.util.Event1<T> saveEvent
+Event1 <T > saveEvent
@@ -376,7 +1393,7 @@ jrummikub.util.Event1<T> saveEvent
quitEvent
-jrummikub.util.Event quitEvent
+Event quitEvent
@@ -404,7 +1421,8 @@ javax.swing.JFrame quitWarningFrame
- Package
+ Overview
+ Package
Class
Use
Tree
diff --git a/test/jrummikub/control/GameControlTest.java b/test/jrummikub/control/GameControlTest.java
index 68dda26..99463cd 100644
--- a/test/jrummikub/control/GameControlTest.java
+++ b/test/jrummikub/control/GameControlTest.java
@@ -84,6 +84,7 @@ public class GameControlTest {
assertSame(BottomPanelType.START_TURN_PANEL, view.bottomPanelType);
}
+ /** */
@Test
public void testNewGame() {
gameControl.getEndOfGameEvent().add(new IListener() {
@@ -131,6 +132,7 @@ public class GameControlTest {
assertTrue(gameEnded);
}
+ /** */
@Test
public void testAborting() {
gameControl.startGame();
diff --git a/test/jrummikub/control/network/NetworkGameControlTest.java b/test/jrummikub/control/network/NetworkGameControlTest.java
index b1769e2..cd7cbf4 100644
--- a/test/jrummikub/control/network/NetworkGameControlTest.java
+++ b/test/jrummikub/control/network/NetworkGameControlTest.java
@@ -14,7 +14,6 @@ import jrummikub.control.SaveControl;
import jrummikub.model.GameSettings;
import jrummikub.model.GameState;
import jrummikub.model.IHand;
-import jrummikub.model.MockRoundState;
import jrummikub.model.PlayerSettings;
import jrummikub.model.Position;
import jrummikub.model.RoundState;
@@ -22,7 +21,6 @@ import jrummikub.model.Stone;
import jrummikub.model.StoneSet;
import jrummikub.model.Table;
import jrummikub.util.IListener;
-import jrummikub.util.Pair;
import jrummikub.view.IView.BottomPanelType;
import jrummikub.view.MockView;
@@ -33,12 +31,19 @@ import org.junit.Test;
* Tests for the network game control
*/
public class NetworkGameControlTest {
-
- public NetworkGameControl hostControl, clientControl;
+ /** */
+ public NetworkGameControl hostControl;
+ /** */
+ public NetworkGameControl clientControl;
+ /** */
public GameSettings settings;
+ /** */
public MockView view;
+ /** */
public MockConnectionControl connection;
+ /** */
public boolean fired;
+ /** */
public RoundState roundState;
/** */
diff --git a/test/jrummikub/control/network/NetworkRoundControlTest.java b/test/jrummikub/control/network/NetworkRoundControlTest.java
index 56647ac..3b54073 100644
--- a/test/jrummikub/control/network/NetworkRoundControlTest.java
+++ b/test/jrummikub/control/network/NetworkRoundControlTest.java
@@ -22,6 +22,7 @@ import jrummikub.view.MockView;
import org.junit.Before;
import org.junit.Test;
+/** */
public class NetworkRoundControlTest {
private MockConnectionControl connectionControl;
private MockView view;
@@ -30,6 +31,7 @@ public class NetworkRoundControlTest {
private GameSettings gameSettings;
+ /** */
@Before
public void setup() {
AIControl.useBackgroundThread = false;
@@ -46,6 +48,7 @@ public class NetworkRoundControlTest {
connectionControl = new MockConnectionControl();
}
+ /** */
@Test
public void testHostRound() {
gameSettings.getPlayerList().get(1).setType(Type.COMPUTER);
@@ -140,6 +143,7 @@ public class NetworkRoundControlTest {
assertFalse(connectionControl.turnEnded);
}
+ /** */
@Test
public void testClientRound() {
gameSettings.getPlayerList().get(0).setType(Type.NETWORK);
diff --git a/test/jrummikub/control/network/NetworkTurnControlTest.java b/test/jrummikub/control/network/NetworkTurnControlTest.java
index 9ed4bdd..8920848 100644
--- a/test/jrummikub/control/network/NetworkTurnControlTest.java
+++ b/test/jrummikub/control/network/NetworkTurnControlTest.java
@@ -23,6 +23,7 @@ import jrummikub.view.MockView;
import org.junit.Before;
import org.junit.Test;
+/** */
public class NetworkTurnControlTest {
private MockConnectionControl connectionControl;
private MockView view;
@@ -34,6 +35,7 @@ public class NetworkTurnControlTest {
private boolean fired;
+ /** */
@Before
public void setup() {
gameSettings = new GameSettings();
@@ -51,6 +53,7 @@ public class NetworkTurnControlTest {
turnControl = new NetworkTurnControl(connectionControl);
}
+ /** */
@Test
public void testTableUpdate() {
turnControl.setup(new TurnInfo(roundState, TurnMode.NORMAL_TURN, true),
@@ -71,6 +74,7 @@ public class NetworkTurnControlTest {
assertEquals(1, n);
}
+ /** */
@Test
public void testRedeal() {
turnControl.getRedealEvent().add(new IListener() {
diff --git a/test/jrummikub/control/turn/AIControlTest.java b/test/jrummikub/control/turn/AIControlTest.java
index f2c567e..2787e76 100644
--- a/test/jrummikub/control/turn/AIControlTest.java
+++ b/test/jrummikub/control/turn/AIControlTest.java
@@ -121,6 +121,7 @@ public class AIControlTest {
assertEquals(0, roundState.getActivePlayer().getHand().getSize());
}
+ /** */
@Test
public void testWithStonesOnTable() {
roundState.getActivePlayer().setLaidOut(true);