From 51b7fbe822bd9a3804c061f0b844884769d7ddba Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Wed, 6 Jul 2011 16:36:06 +0200 Subject: Javadoc git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@609 72836036-5685-4462-b002-a69064685172 --- doc/allclasses-frame.html | 238 +++- doc/allclasses-noframe.html | 238 +++- doc/constant-values.html | 842 +++++++++++- doc/deprecated-list.html | 10 +- doc/help-doc.html | 16 +- doc/index-files/index-1.html | 303 ++++- doc/index-files/index-10.html | 72 +- doc/index-files/index-11.html | 26 +- doc/index-files/index-12.html | 153 ++- doc/index-files/index-13.html | 155 ++- doc/index-files/index-14.html | 164 ++- doc/index-files/index-15.html | 197 +-- doc/index-files/index-16.html | 277 +++- doc/index-files/index-17.html | 62 +- doc/index-files/index-18.html | 317 ++++- doc/index-files/index-2.html | 103 +- doc/index-files/index-3.html | 569 +++++++- doc/index-files/index-4.html | 128 +- doc/index-files/index-5.html | 186 ++- doc/index-files/index-6.html | 60 +- doc/index-files/index-7.html | 1163 ++++++++++++++++- doc/index-files/index-8.html | 179 ++- doc/index-files/index-9.html | 151 ++- doc/index.html | 9 +- doc/jrummikub/JRummikub.html | 4 +- doc/jrummikub/class-use/JRummikub.html | 4 +- doc/jrummikub/control/ApplicationControl.html | 377 +++++- doc/jrummikub/control/GameControl.html | 474 ++++++- doc/jrummikub/control/ITurnTimer.html | 8 +- doc/jrummikub/control/RoundControl.html | 670 +++++++++- doc/jrummikub/control/TurnTimer.html | 134 +- .../control/class-use/ApplicationControl.html | 63 +- doc/jrummikub/control/class-use/GameControl.html | 87 +- doc/jrummikub/control/class-use/ITurnTimer.html | 40 +- doc/jrummikub/control/class-use/RoundControl.html | 103 +- doc/jrummikub/control/class-use/TurnTimer.html | 4 +- doc/jrummikub/control/package-frame.html | 27 +- doc/jrummikub/control/package-summary.html | 54 +- doc/jrummikub/control/package-tree.html | 28 +- doc/jrummikub/control/package-use.html | 133 +- doc/jrummikub/model/GameState.html | 255 ++-- doc/jrummikub/model/Hand.html | 233 +++- doc/jrummikub/model/IHand.html | 156 ++- doc/jrummikub/model/IPlayer.html | 206 ++- doc/jrummikub/model/IStoneTray.html | 37 +- doc/jrummikub/model/ITable.html | 8 +- doc/jrummikub/model/Player.html | 354 ++++- doc/jrummikub/model/Position.html | 123 +- doc/jrummikub/model/Sizeable.html | 8 +- doc/jrummikub/model/Stone.html | 111 +- doc/jrummikub/model/StoneColor.html | 68 +- doc/jrummikub/model/StoneHeap.html | 71 +- doc/jrummikub/model/StoneSet.Type.html | 4 +- doc/jrummikub/model/StoneSet.html | 175 ++- doc/jrummikub/model/StoneTray.Direction.html | 4 +- doc/jrummikub/model/StoneTray.html | 258 +++- doc/jrummikub/model/Table.html | 142 +- doc/jrummikub/model/class-use/GameState.html | 175 ++- doc/jrummikub/model/class-use/Hand.html | 4 +- doc/jrummikub/model/class-use/IHand.html | 100 +- doc/jrummikub/model/class-use/IPlayer.html | 192 ++- doc/jrummikub/model/class-use/IStoneTray.html | 4 +- doc/jrummikub/model/class-use/ITable.html | 273 +++- doc/jrummikub/model/class-use/Player.html | 42 +- doc/jrummikub/model/class-use/Position.html | 286 +++- doc/jrummikub/model/class-use/Sizeable.html | 4 +- doc/jrummikub/model/class-use/Stone.html | 398 +++++- doc/jrummikub/model/class-use/StoneColor.html | 297 ++++- doc/jrummikub/model/class-use/StoneHeap.html | 28 +- doc/jrummikub/model/class-use/StoneSet.Type.html | 39 +- doc/jrummikub/model/class-use/StoneSet.html | 331 ++++- .../model/class-use/StoneTray.Direction.html | 47 +- doc/jrummikub/model/class-use/StoneTray.html | 4 +- doc/jrummikub/model/class-use/Table.html | 4 +- doc/jrummikub/model/package-frame.html | 22 +- doc/jrummikub/model/package-summary.html | 46 +- doc/jrummikub/model/package-tree.html | 39 +- doc/jrummikub/model/package-use.html | 306 ++++- doc/jrummikub/package-frame.html | 4 +- doc/jrummikub/package-summary.html | 8 +- doc/jrummikub/package-tree.html | 8 +- doc/jrummikub/package-use.html | 4 +- doc/jrummikub/util/Connection.html | 4 +- doc/jrummikub/util/Event.html | 48 +- doc/jrummikub/util/Event1.html | 48 +- doc/jrummikub/util/Event2.html | 52 +- doc/jrummikub/util/IEvent.html | 8 +- doc/jrummikub/util/IEvent1.html | 4 +- doc/jrummikub/util/IEvent2.html | 8 +- doc/jrummikub/util/IListener.html | 8 +- doc/jrummikub/util/IListener1.html | 4 +- doc/jrummikub/util/IListener2.html | 8 +- doc/jrummikub/util/Pair.html | 169 ++- doc/jrummikub/util/class-use/Connection.html | 159 ++- doc/jrummikub/util/class-use/Event.html | 566 +++++++- doc/jrummikub/util/class-use/Event1.html | 431 +++++- doc/jrummikub/util/class-use/Event2.html | 126 +- doc/jrummikub/util/class-use/IEvent.html | 655 +++++++++- doc/jrummikub/util/class-use/IEvent1.html | 525 +++++++- doc/jrummikub/util/class-use/IEvent2.html | 170 ++- doc/jrummikub/util/class-use/IListener.html | 20 +- doc/jrummikub/util/class-use/IListener1.html | 34 +- doc/jrummikub/util/class-use/IListener2.html | 34 +- doc/jrummikub/util/class-use/Pair.html | 230 +++- doc/jrummikub/util/package-frame.html | 16 +- doc/jrummikub/util/package-summary.html | 30 +- doc/jrummikub/util/package-tree.html | 14 +- doc/jrummikub/util/package-use.html | 226 +++- doc/jrummikub/view/IClickable.html | 8 +- doc/jrummikub/view/IHandPanel.html | 48 +- doc/jrummikub/view/IPlayerPanel.html | 85 +- doc/jrummikub/view/IStoneCollectionPanel.html | 49 +- doc/jrummikub/view/IStonePanel.html | 8 +- doc/jrummikub/view/ITablePanel.html | 76 +- doc/jrummikub/view/IView.html | 991 +++++++++++++- doc/jrummikub/view/class-use/IClickable.html | 4 +- doc/jrummikub/view/class-use/IHandPanel.html | 22 +- doc/jrummikub/view/class-use/IPlayerPanel.html | 4 +- .../view/class-use/IStoneCollectionPanel.html | 4 +- doc/jrummikub/view/class-use/IStonePanel.html | 4 +- doc/jrummikub/view/class-use/ITablePanel.html | 4 +- doc/jrummikub/view/class-use/IView.html | 294 ++++- doc/jrummikub/view/impl/AbstractStonePanel.html | 210 ++- doc/jrummikub/view/impl/HandPanel.html | 427 +++++- doc/jrummikub/view/impl/PlayerPanel.html | 961 +++++++++++++- doc/jrummikub/view/impl/StartTurnPanel.html | 540 +++++++- doc/jrummikub/view/impl/StoneCollectionPanel.html | 182 ++- doc/jrummikub/view/impl/StonePainter.html | 599 ++++++++- doc/jrummikub/view/impl/TablePanel.html | 606 +++++++-- doc/jrummikub/view/impl/View.html | 1373 ++++++++++++++++---- .../view/impl/class-use/AbstractStonePanel.html | 4 +- doc/jrummikub/view/impl/class-use/HandPanel.html | 22 +- doc/jrummikub/view/impl/class-use/PlayerPanel.html | 64 +- .../view/impl/class-use/StartTurnPanel.html | 42 +- .../view/impl/class-use/StoneCollectionPanel.html | 42 +- .../view/impl/class-use/StonePainter.html | 20 +- doc/jrummikub/view/impl/class-use/TablePanel.html | 42 +- doc/jrummikub/view/impl/class-use/View.html | 14 +- doc/jrummikub/view/impl/package-frame.html | 53 +- doc/jrummikub/view/impl/package-summary.html | 105 +- doc/jrummikub/view/impl/package-tree.html | 57 +- doc/jrummikub/view/impl/package-use.html | 159 ++- doc/jrummikub/view/package-frame.html | 37 +- doc/jrummikub/view/package-summary.html | 63 +- doc/jrummikub/view/package-tree.html | 16 +- doc/jrummikub/view/package-use.html | 206 ++- doc/overview-frame.html | 12 +- doc/overview-summary.html | 20 +- doc/overview-tree.html | 128 +- doc/package-list | 9 + doc/serialized-form.html | 1068 ++++++++++++++- 151 files changed, 22910 insertions(+), 2075 deletions(-) (limited to 'doc') 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 - 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()
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
- + + @@ -84,8 +85,840 @@ Constant Field Values
Contents + +
+ + + +
+jrummikub.control.*
+ +

+ + + + + + + + + + + + +
jrummikub.control.RoundControl.InvalidTurnInfo
+private static final longserialVersionUID-3591000741414366776L
+ +

+ +

+ + + + + + + + + + + + + + + + + +
jrummikub.control.network.ConnectionControl
+private static final java.lang.StringELEMENT_NAME"rummikub"
+private static final java.lang.StringNAMESPACE"http://home.universe-factory.net/rummikub/"
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.control.network.jrummikub.control.network.ConnectionControl.TurnEndData
+private static final longserialVersionUID-3800572117130220737L
+ +

+ +

+ + + + + +
+jrummikub.model.*
+ +

+ + + + + + + + + + + + +
jrummikub.model.GameSettings
+private static final longserialVersionUID-7221346125938175643L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.GameState
+private static final longserialVersionUID-5787975403310108391L
+ +

+ +

+ + + + + + + + + + + + + + + + + +
jrummikub.model.Hand
+private static final longserialVersionUID192210056255744909L
+public static final intWIDTH14
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.Player
+private static final longserialVersionUID2588861964190952815L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.PlayerSettings
+private static final longserialVersionUID1963640115089275992L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.Position
+private static final longserialVersionUID-582497930480638380L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.RoundState
+private static final longserialVersionUID8678490099871939059L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.Score
+private static final longserialVersionUID2200041688506962025L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.Stone
+private static final longserialVersionUID7032593080727812277L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.StoneHeap
+private static final longserialVersionUID-5247740086907775125L
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + +
jrummikub.model.StoneSet
+static final floatHORIZONTAL_BORDER0.125f
+private static final longserialVersionUID-3852631195648599398L
+static final floatVERTICAL_BORDER0.5f
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.StoneTray<E extends Sizeable>
+private static final longserialVersionUID-6329309928640027222L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.model.Table
+private static final longserialVersionUID2433091681355019937L
+ +

+ +

+ + + + + +
+jrummikub.util.*
+ +

+ + + + + + + + + + + + +
jrummikub.util.Pair<T1,T2>
+private static final longserialVersionUID9197464436906172698L
+ +

+ +

+ + + + + +
+jrummikub.view.*
+ +

+ + + + + + + + + + + + +
jrummikub.view.impl.ConnectPanel
+private static final longserialVersionUID1L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.GameListPanel
+private static final longserialVersionUID1L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.GameListPanel.GameDataCellRenderer
+private static final longserialVersionUID-892701906163443927L
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.HandPanel
+private static final intHEIGHT2
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.LoginPanel
+private static final java.lang.StringDEFAULT_PASSWORD"jrummikub"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.PausePanel
+private static final floatMAX_BUTTON_FONT_SIZE12.0f
+private static final floatPANEL_FIRST_LINE_HEIGHT0.375f
+private static final intPANEL_INSET15
+private static final intPANEL_MAX_WIDTH180
+private static final intPANEL_SEPARATOR10
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.PlayerPanel
+private static final floatHAND_ROW_BUTTON_RATIO0.029999999329447746f
+private static final floatMAX_BUTTON_FONT_SIZE12.0f
+private static final floatSIDE_PANEL_FIRST_LINE_HEIGHT0.375f
+private static final intSIDE_PANEL_INSET10
+private static final intSIDE_PANEL_MAX_WIDTH180
+private static final intSIDE_PANEL_SEPARATOR5
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.QuitWarningPanel
+private static final longserialVersionUID1L
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.RoundEndPanel
+private static final floatMAX_BUTTON_FONT_SIZE12.0f
+private static final floatPANEL_FIRST_LINE_HEIGHT0.375f
+private static final intPANEL_INSET15
+private static final intPANEL_MAX_WIDTH180
+private static final intPANEL_SEPARATOR10
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.StartTurnPanel
+private static final floatMAX_BUTTON_FONT_SIZE12.0f
+private static final floatPANEL_FIRST_LINE_HEIGHT0.20000000298023224f
+private static final intPANEL_INSET15
+private static final intPANEL_MAX_WIDTH180
+private static final intPANEL_SEPARATOR10
+ +

+ +

+ + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.StoneCollectionPanel
+private static final floatINSET_RATIO0.10000000149011612f
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.StonePainter
+private static final doubleASPECT_RATIO0.75
+private static final doubleBRIGHTER_SCALE1.149999976158142
+private static final doubleCIRCLE_POS0.7250000238418579
+private static final doubleCIRCLE_WIDTH0.44999998807907104
+private static final doubleDEFAULT_WIDTH40.0
+private static final doubleFACE_WIDTH0.4749999940395355
+static final doubleHEIGHT_SCALE0.01875
+private static final doubleHOVER_RATIO0.699999988079071
+private static final doubleREDDEN_RATIO0.30000001192092896
+private static final doubleTEXT_POS0.2750000059604645
+static final doubleWIDTH_SCALE0.025
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
jrummikub.view.impl.jrummikub.view.impl.TablePanel
+private final intCOLLECTION_GAP5
+private final doubleCOLLECTION_RATIO0.11999999731779099
+private static final doubleCONNECTOR_WIDTH0.25
+private static final doubleHORIZONTAL_MARGIN1.0
+private static final doubleMIN_VISIBLE_HEIGHT5.0
+private static final doubleMIN_VISIBLE_WIDTH10.0
+private static final doubleVERTICAL_MARGIN0.699999988079071
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + +
jrummikub.view.impl.View
+private static final intPLAYER_PANEL_MAX_HEIGHT180
+private static final floatPLAYER_PANEL_RATIO0.14000000059604645f
+private static final intTABLE_BORDER_WIDTH1
+ +

+ +


@@ -98,7 +931,8 @@ Constant Field Values - + + 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()
- + + @@ -98,7 +99,8 @@ function windowTitle()
- + + 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()
- + + @@ -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.
- + + 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()
- + + @@ -77,13 +78,290 @@ function windowTitle() -CEGJLRSV
-

-C

+ABCDEFGHIJKLMNOPQRSTUVWXY
+

+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.
- + + @@ -137,7 +416,7 @@ Method in class jrummikub.view.impl. -CEGJLRSV
+ABCDEFGHIJKLMNOPQRSTUVWXY
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() -ACDEFGHIJMNOPRSTVW
-

-M

+ABCDEFGHIJKLMNOPQRSTUVWXY
+

+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 -
  -
paintComponent(Graphics) - -Method in class jrummikub.view.impl.StoneCollectionPanel -
  -
paintComponent(Graphics) - -Method in class jrummikub.view.impl.TablePanel -
  -
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 -
  -
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 +
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 +
  +
makeAllOptionLabels(int) - +Method in class jrummikub.view.impl.SettingsPanel +
  +
makeFiller() - +Method in class jrummikub.view.impl.SettingsPanel +
  +
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 +
 

@@ -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 -
  -
remove(IListener1<T>) - -Method in class jrummikub.util.Event1 -
  -
remove(IListener2<T1, T2>) - -Method in class jrummikub.util.Event2 -
  -
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 +
name - +Variable in class jrummikub.model.PlayerSettings +
  +
nameField - +Variable in class jrummikub.view.impl.SettingsPanel.PlayerSettingsPanel +
  +
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 +
 

@@ -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 Stones 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 Stones 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 Stones - or StoneSets.
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 Stones on the game-Table
Table() - -Constructor for class jrummikub.model.Table -
  -
tableDifference(ITable, ITable) - -Static method in class jrummikub.control.RoundControl -
  -
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 -
  -
toString() - -Method in class jrummikub.model.Stone -
  -
toString() - -Method in class jrummikub.model.StoneSet -
  -
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 -
  -
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 +
paintCircle(Graphics2D, Rectangle, Color) - +Method in class jrummikub.view.impl.StonePainter +
  +
paintComponent(Graphics) - +Method in class jrummikub.view.impl.HandPanel +
  +
paintComponent(Graphics) - +Method in class jrummikub.view.impl.StoneCollectionPanel +
  +
paintComponent(Graphics) - +Method in class jrummikub.view.impl.TablePanel +
  +
paintJoker(Graphics2D, Rectangle, Color) - +Method in class jrummikub.view.impl.StonePainter +
  +
paintJokerFace(Graphics2D, Rectangle) - +Method in class jrummikub.view.impl.StonePainter +
  +
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()
NEXT LETTERNEXT LETTER + SUMMARY: NESTED | FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD
@@ -95,6 +95,9 @@ Class GameControl java.lang.Object extended by 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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  java.util.List<Connection>connections + +
+           
+protected  EventendOfGameEvent + +
+           
+protected  GameSettingsgameSettings +
+           
+protected  GameStategameState + +
+           
+protected  RoundControlroundControl + +
+           
+protected  SaveControlsaveControl + +
+           
+protected  IViewview + +
+           
@@ -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  

+ + + +

+ + + +
+Field Detail
+ +

+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 settings
saveControl - the save control
view - 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 CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -224,7 +224,7 @@ getTimeRunOutEvent  PREV CLASS  - NEXT CLASSNEXT 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 CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -95,6 +95,9 @@ Class RoundControl java.lang.Object extended by 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 classRoundControl.InvalidTurnInfo + +
+          Table, stone sets and type of an invalid turn to allow a user to track his + own errors
+static classRoundControl.InvalidTurnType + +
+          Enum summarizing the different types of invalid turns to set the correct + panel message
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  java.util.List<Connection>connections + +
+           
+private  Event1<Score>endOfRoundEvent + +
+           
+private  booleanmayPause + +
+           
+private  Event1<PlayerSettings>restartRoundEvent + +
+           
+protected  IRoundStateroundState +
+           
+private  Event1<IRoundState>roundStateUpdateEvent + +
+           
+private  ITurnControlturnControl + +
+           
+private  IViewview + +
+           
@@ -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  

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

+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:
roundState - initial round state
view - 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:
gameState - initial game state
view - view used for user interaction
+
Parameters:
roundState - initial round state
view - view used for user interaction
mayPause - true when players are allowed to pause
@@ -220,16 +579,30 @@ public RoundControl( -

-getEndRoundEvent

+

+getRoundStateUpdateEvent

+
+public IEvent1<IRoundState> getRoundStateUpdateEvent()
+
+
Is emitted in network when a new turn starts +

+

+ +
Returns:
the event
+
+
+
+ +

+getEndOfRoundEvent

-public IEvent getEndRoundEvent()
+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 +

+

+
+
+
+
+ +

+endOfRound

+
+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 rounds
stonePoints - sum of points still left on hands
size - 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

-

-dealStone

+

+redeal

-void dealStone()
+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 CLASSPREV 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

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  inttimeLeft + +
+           
+private  javax.swing.Timertimer + +
+           
+private  EventtimeRunOutEvent + +
+           
+private  inttotalTime + +
+           
+private  IViewview + +
+           
@@ -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  

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

+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 -

+

TurnTimer

-public TurnTimer(IView view)
+public TurnTimer(IView view, + int totalTime)
Create a new timer using a given view to display the current time left

-
Parameters:
view - view to display
+
Parameters:
view - view to display
totalTime - total time for turn
@@ -307,7 +417,7 @@ public PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -328,9 +438,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/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() - + + @@ -82,7 +83,58 @@ function windowTitle()

Uses of Class
jrummikub.control.ApplicationControl

-No usage of jrummikub.control.ApplicationControl + +
+ + + + + + + +
+Packages that use ApplicationControl
jrummikub.control  
+  +

+ + + + + +
+Uses of ApplicationControl in jrummikub.control
+  +

+ + + + + + + + + +
Fields in jrummikub.control declared as ApplicationControl
+private  ApplicationControlLoginControl.appControl + +
+           
+  +

+ + + + + + + + +
Constructors in jrummikub.control with parameters of type ApplicationControl
LoginControl(IView view, + ApplicationControl applicationControl) + +
+          Constructor for login Control


@@ -96,7 +148,8 @@ No usage of jrummikub.control.ApplicationControl - + + 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 + +
+ + + + + + + + + + + +
+Packages that use GameControl
jrummikub.control  
jrummikub.control.network  
+  +

+ + + + + +
+Uses of GameControl in jrummikub.control
+  +

+ + + + + + + + + +
Fields in jrummikub.control declared as GameControl
+private  GameControlApplicationControl.gameControl + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control with parameters of type GameControl
+private  voidApplicationControl.addGameControlListeners(GameControl gameControl) + +
+          Adds events listeners to game control events
+  +

+ + + + + +
+Uses of GameControl in jrummikub.control.network
+  +

+ + + + + + + + + +
Subclasses of GameControl in jrummikub.control.network
+ classNetworkGameControl + +
+          Class controlling network games


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 + + + + +
+Uses of ITurnTimer in jrummikub.control.turn
+  +

+ + + + + + + + + +
Fields in jrummikub.control.turn declared as ITurnTimer
+protected  ITurnTimerAbstractTurnControl.timer + +
+           
+  +

- + - 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 + +
Constructors in jrummikub.control with parameters of type ITurnTimerConstructors in jrummikub.control.turn with parameters of type ITurnTimer
TurnControl(IHand hand, - ITable table, - IView view, - ITurnTimer testTimer) +HumanTurnControl(ITurnTimer testTimer)
          Test only constructor
+ + + + + + + + + + + +
+Packages that use RoundControl
jrummikub.control  
jrummikub.control.network  
+  +

+ + + + + +
+Uses of RoundControl in jrummikub.control
+  +

+ + + + + + + + + +
Fields in jrummikub.control declared as RoundControl
+protected  RoundControlGameControl.roundControl + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control that return RoundControl
+protected  RoundControlGameControl.createRoundControl(IRoundState roundState) + +
+          Creates a new round control with the specified round state
+  +

+ + + + + +
+Uses of RoundControl in jrummikub.control.network
+  +

+ + + + + + + + + +
Subclasses of RoundControl in jrummikub.control.network
+ classNetworkRoundControl + +
+          Round control for network games
+  +

+ + + + + + + + + +
Methods in jrummikub.control.network that return RoundControl
+protected  RoundControlNetworkGameControl.createRoundControl(IRoundState roundState) + +
+           


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 +
+SaveControl
-TurnControl.HandStonePositionComparator +SettingsControl
TurnTimer
+ + + + +
+Enums  + +
+RoundControl.InvalidTurnType
+ + 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 PACKAGEPREV 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 + + +SaveControl +The save control is responsible for loading and saving game and round states -TurnControl.HandStonePositionComparator -  +SettingsControl +The settings control controls the settings panel TurnTimer @@ -125,6 +144,21 @@ Package jrummikub.control   +

+ + + + + + + + + +
+Enum Summary
RoundControl.InvalidTurnTypeEnum summarizing the different types of invalid turns to set the correct + panel message
+  +

@@ -158,8 +192,8 @@ Package jrummikub.control PREV PACKAGE  - NEXT PACKAGEPREV 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  - NEXTPREV  + NEXT FRAMES    NO FRAMES   @@ -92,8 +92,10 @@ Class Hierarchy

@@ -101,6 +103,16 @@ Interface Hierarchy

+

+Enum Hierarchy +

+
    +
  • java.lang.Object +

@@ -131,8 +143,8 @@ Interface Hierarchy PREV  - NEXTPREV  + 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 + + +  +

+ + + + + + + + + + + + + + + + + + + + +
+Classes in jrummikub.control used by jrummikub.control.network
AbstractSettingsControl + +
+          Abstract control class managing joined methods and attributes of all + different (network, default...) settings controls
GameControl + +
+          Controls a Game, at some point including all Rounds, starts new Rounds
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
SaveControl + +
+          The save control is responsible for loading and saving game and round states
+  +

+ + + + + + + + + + +
+Classes in jrummikub.control used by jrummikub.control.turn
ITurnTimer + +
+          Interface for the TurnTimer
RoundControl.InvalidTurnInfo + +
+          Table, stone sets and type of an invalid turn to allow a user to track his + own errors
 

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 extended by jrummikub.model.GameState

-
All Implemented Interfaces:
IGameState
+
All Implemented Interfaces:
java.io.Serializable

-
public class GameState
extends java.lang.Object
implements IGameState
+
public class GameState
extends java.lang.Object
implements java.io.Serializable

-Class managing the overall and momentary GameState +Class that stores information for a game of multiple rounds

+

+
See Also:
Serialized Form

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  intfirstRoundFirstPlayer + +
+           
+private  PlayerSettingslastPlayerRedealed + +
+           
+private  java.util.ArrayList<Score>scores + +
+           
+private static longserialVersionUID +
+           
@@ -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 +          Calculated the accumulated score over the played rounds - StoneHeap -getGameHeap() + int +getFirstRoundFirstPlayer()
-          Returns the heap of stones to draw from +          Gets the number of the first player of the first round - IPlayer -getNthNextPlayer(int i) + PlayerSettings +getLastPlayerRedealed()
-          Returns the player that would be the active player after i turns +          Returns the player that has redealed last - int -getPlayerCount() + java.util.List<Score> +getScores()
-          Returns the number of players +          Returns the list of players' scores in the rounds played before - ITable -getTable() +private  java.lang.Boolean[] +getWinners(java.lang.Integer[] points, + int[] wins)
-          Get the current Table +          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  

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

+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 points
wins - 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 CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -97,7 +97,7 @@ java.lang.Object extended by 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 measure to compare the stones by + + + +private static long +serialVersionUID
-          The height of the hand +            @@ -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, pickUpclone, 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 numbers
stone - 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 CLASSNEXT 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, pickUpclone, contains, drop, getPosition, getSize, pickUp
  @@ -140,6 +181,101 @@ Interface for the + + + + +
+Method Detail
+ +

+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 CLASSNEXT 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,27 +121,75 @@ Interface for - java.awt.Color -getColor() + IHand +getHand()
-          Return the player's color +          Get the current hand of the player - IHand -getHand() + boolean +getLaidOut()
-          Get the current hand 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 - java.lang.String -getName() + void +setLastTurnStoneCount(int value)
-          Return the name of the player +          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

+
+
+
+
Parameters:
hand - the new hand
+
+
+
+ +

+getLaidOut

+
+boolean getLaidOut()
+
+
Has the player laid out yet? +

+

+
+
+
-
Returns:
the player's color
+
Returns:
if the player has laid out

-

-getName

+

+getPlayerSettings

-java.lang.String getName()
+PlayerSettings getPlayerSettings()
-
Return the name of the player +
Returns the player settings

+
+
+
-
Returns:
the player's name
+
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 CLASSNEXT 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 CLASSNEXT 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 extended by 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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  IHandhand + +
+           
+private  booleanlaidOut + +
+           
+private  booleanlastTurnInvalid + +
+           
+private  intlastTurnStoneCount +
+           
+private static longserialVersionUID + +
+           
+private  PlayerSettingssettings + +
+           
@@ -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,27 +197,75 @@ Class managing player data. No methods in release 1 - java.awt.Color -getColor() + IHand +getHand()
-          Return the player's color +          Get the current hand of the player - IHand -getHand() + boolean +getLaidOut()
-          Get the current hand of the player +          Has the player laid out yet? - java.lang.String -getName() + int +getLastTurnStoneCount()
-          Return the name of the player +          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  

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

+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 name
color - 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
+
Parameters:
hand - the new hand
+
+
+
-
Returns:
the player's color +

+getLaidOut

+
+public boolean getLaidOut()
+
+
Description copied from interface: IPlayer
+
Has the player laid out yet? +

+

+
Specified by:
getLaidOut in interface IPlayer
+
+
+ +
Returns:
if the player has laid out

-

-getName

+

+setLaidOut

-public java.lang.String getName()
+public void setLaidOut(boolean laidOut)
-
Description copied from interface: IPlayer
-
Return the name of the player +
Description copied from interface: IPlayer
+
Set if the player laid out

-
Specified by:
getName in interface IPlayer
+
Specified by:
setLaidOut in interface IPlayer
+
Parameters:
laidOut - the player laid out
+
+ +
-
Returns:
the player's name +

+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 CLASSNEXT 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 CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -95,9 +95,12 @@ Class Position java.lang.Object extended by jrummikub.model.Position +
+
All Implemented Interfaces:
java.io.Serializable
+

-
public class Position
extends java.lang.Object
+
public class Position
extends java.lang.Object
implements java.io.Serializable

@@ -106,10 +109,45 @@ java.lang.Object

+

+
See Also:
Serialized Form

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+private static longserialVersionUID + +
+           
+private  doublex + +
+           
+private  doubley +
+           
@@ -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  

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

+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 CLASSPREV 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 extended by jrummikub.model.Stone
-
All Implemented Interfaces:
Sizeable
+
All Implemented Interfaces:
java.io.Serializable, Sizeable

-
public class Stone
extends java.lang.Object
implements Sizeable
+
public class Stone
extends java.lang.Object
implements Sizeable, java.io.Serializable

@@ -108,10 +108,53 @@ Basic Rummikub Stone

+

+
See Also:
Serialized Form

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  StoneColorcolor + +
+           
+private  booleanjoker + +
+           
+private static longserialVersionUID + +
+           
+private  intvalue +
+           
@@ -204,6 +247,55 @@ Basic Rummikub Stone  

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

+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 extended by jrummikub.model.StoneHeap +
+
All Implemented Interfaces:
java.io.Serializable
+

-
public class StoneHeap
extends java.lang.Object
+
public class StoneHeap
extends java.lang.Object
implements 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<Stones 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 extended by 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.Object
implements java.lang.Iterable<Stone>, Sizeable
+
public class StoneSet
extends java.lang.Object
implements 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 +

+

+
+
+
+
Parameters:
settings - GameSettings +
Returns:
GROUP or RUN for valid sets, INVALID otherwise and the points
+
+
+
+ +

+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 and determine whether the set - is a group or a run +
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
+
+
+
-
Returns:
GROUP or RUN for valid sets, INVALID otherwise +

+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 Hand
position - Position to put the object
direction - 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 Hand
position - Position to put the object
direction - 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 equal
e - 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 object
position1 - first object's position
object2 - second object
position2 - 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 object
position - the object's position
blocking - 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 object
position - the objects position
blocking - 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 CLASSNEXT 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
       extended by 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 + +
+            +   @@ -139,6 +149,22 @@ Class administering the Field Summary + + + + + + + +
+private  GameSettingsgameSettings + +
+           
+private static longserialVersionUID + +
+           
  @@ -159,10 +185,10 @@ Class administering the - +          Constructor for a table
Table() +Table(GameSettings settings)
-           
  @@ -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, pickUpclone, 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 + + + + +
+Field Detail
+ +

+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 split
setPosition - the set's position on the table
stonePosition - the stone after which splitting should occur
+
+
+
+

isValid

@@ -346,7 +458,7 @@ public boolean isValid()
 PREV CLASS  - NEXT CLASSNEXT 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 + + + + + + + + + + + + + +
+Packages that use GameState
jrummikub.control  
jrummikub.model  
+  +

+ + + + + +
+Uses of GameState in jrummikub.control
+  +

+ + + + + + + + + + + + + +
Fields in jrummikub.control declared as GameState
+protected  GameStateGameControl.gameState + +
+           
+private  GameStateSaveControl.gameState + +
+           
+  +

+ + + + + + + + + +
Fields in jrummikub.control with type parameters of type GameState
+private  Event3<GameSettings,GameState,IRoundState>SaveControl.loadEvent + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control that return types with arguments of type GameState
+ IEvent3<GameSettings,GameState,IRoundState>SaveControl.getLoadEvent() + +
+          Getter for loadEvent
+  +

+ + + + + + + + + + + + + +
Methods in jrummikub.control with parameters of type GameState
+ voidGameControl.continueGame(GameState gameState, + IRoundState roundState) + +
+          Continues game after loading
+ voidSaveControl.setGameState(GameState gameState) + +
+          Sets the current game state
+  +

+ + + + + +
+Uses of GameState in jrummikub.model
+  +

+ + + + + + + + + +
Fields in jrummikub.model declared as GameState
+private  GameStateRoundState.gameState + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in jrummikub.model that return GameState
+ GameStateIRoundState.getGameState() + +
+          Returns the game state
+ GameStateRoundState.getGameState() + +
+           
+  +

+ + + + + + + + +
Constructors in jrummikub.model with parameters of type GameState
RoundState(GameSettings gameSettings, + GameState gameState) + +
+          Create a new RoundState with an empty table


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 + +Uses of IHand in jrummikub.control.turn
-Uses of IHand in jrummikub.control
  @@ -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 + +
+            + + + +private  IHand +ITurnControl.TurnInfo.oldHand + +
+            + + +  +

+ + + + + + + + +          Gets the current player's hand - + +          Gets the current player's hand at the beginning of the turn
Methods in jrummikub.control.turn that return IHand
+ IHandITurnControl.TurnInfo.getHand()
-          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) + + IHandITurnControl.TurnInfo.getOldHand()
-          Test only constructor
  @@ -163,16 +185,24 @@ Uses of -Methods in jrummikub.model that return IHand +Fields in jrummikub.model declared as IHand - IHand -Player.getHand() +private  IHand +Player.hand
            + +  +

+ + + + + @@ -181,6 +211,38 @@ Uses of + + + +
Methods in jrummikub.model that return IHand
 IHand + IHandPlayer.getHand() + +
+           
+  +

+ + + + + + + + + + + + +
Methods in jrummikub.model with parameters of type IHand
+ voidIPlayer.setHand(IHand hand) + +
+          Set the current hand of the player
+ voidPlayer.setHand(IHand 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 + +
+            + + +  +

+ @@ -129,7 +153,15 @@ Uses of - + + + + @@ -137,15 +169,16 @@ Uses of - +          Sets the player that will make the last turn before the round ends when the + heap is empty - @@ -153,11 +186,156 @@ Uses of - + + + + + + + + + + + + +
Methods in jrummikub.model that return IPlayer  IPlayerGameState.getActivePlayer() +IRoundState.getActivePlayer() + +
+          Returns the currently active player
+ IPlayerRoundState.getActivePlayer()
           
 IPlayerIGameState.getActivePlayer() +IRoundState.getLastPlayer()
-          Returns the currently active player
 IPlayerGameState.getNthNextPlayer(int i) +RoundState.getLastPlayer()
           
 IPlayerIGameState.getNthNextPlayer(int i) +IRoundState.getNthNextPlayer(int i)
          Returns the player that would be the active player after i turns
+ IPlayerRoundState.getNthNextPlayer(int i) + +
+           
+ IPlayerIRoundState.getNthPlayer(int i) + +
+          Returns the nth player
+ IPlayerRoundState.getNthPlayer(int i) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in jrummikub.model with parameters of type IPlayer
+ voidIRoundState.setLastPlayer(IPlayer lastPlayer) + +
+          Gets the player that will make the last turn before the round ends when the + heap is empty
+ voidRoundState.setLastPlayer(IPlayer lastPlayer) + +
+           
+  +

+ + + + + +
+Uses of IPlayer in jrummikub.view
+  +

+ + + + + + + + + +
Method parameters in jrummikub.view with type arguments of type IPlayer
+ voidISidePanel.setPlayers(java.util.List<IPlayer> players) + +
+          Sets the player information in order of turns
+  +

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

+ + + + + + + + + + + + + +
Methods in jrummikub.view.impl with parameters of type IPlayer
+private  voidSidePanel.PlayerListItem.addHandSizeInfo(IPlayer player) + +
+           
+private  voidSidePanel.PlayerListItem.addLastTurnInfo(IPlayer player) + +
+           
+  +

+ + + + + + + + + + + + + +
Method parameters in jrummikub.view.impl with type arguments of type IPlayer
+ voidSidePanel.setPlayers(java.util.List<IPlayer> players) + +
+           
+(package private)  voidSidePanel.PlayerListPanel.setPlayers(java.util.List<IPlayer> players) + +
+           
+  +

+ + + + + + + +
Constructors in jrummikub.view.impl with parameters of type IPlayer
SidePanel.PlayerListItem(IPlayer player) + +
+           
 

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 + + +  +

+ - + +
Constructors in jrummikub.control with parameters of type ITable
TurnControl(IHand hand, - ITable table, - IView view) +RoundControl.InvalidTurnInfo(ITable table, + RoundControl.InvalidTurnType type, + java.util.Collection<StoneSet> invalidSets) + +
+          Creates new InvalidTurnInfo
+  +

+ + + + + +
+Uses of ITable in jrummikub.control.network
+  +

+ + + + + + + + + +
Fields in jrummikub.control.network with type parameters of type ITable
+private  Event1<ITable>ConnectionControl.tableUpdateEvent + +
+           
+  +

+ + + + + + + + +            - + +            + +
Methods in jrummikub.control.network that return types with arguments of type ITable
+ IEvent1<ITable>ConnectionControl.getTableUpdateEvent()
-          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) + + IEvent1<ITable>IConnectionControl.getTableUpdateEvent()
-          Test only constructor
+  +

+ + + + + + + + + + + + + +
Methods in jrummikub.control.network with parameters of type ITable
+ voidConnectionControl.updateTable(ITable table) + +
+           
+ voidIConnectionControl.updateTable(ITable table) + +
+           
+  +

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

+ + + + + + + + + + + + + +
Fields in jrummikub.control.turn declared as ITable
+private  ITableITurnControl.TurnInfo.oldTable + +
+           
+private  ITableITurnControl.TurnInfo.table + +
+           
+  +

+ + + + + + + + + +
Fields in jrummikub.control.turn with type parameters of type ITable
+protected  Event1<ITable>AbstractTurnControl.tableUpdateEvent + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in jrummikub.control.turn that return ITable
+ ITableITurnControl.TurnInfo.getOldTable() + +
+          Gets the table at the beginning of the turn
+ ITableITurnControl.TurnInfo.getTable() + +
+          Gets the current table
+  +

+ + + + + + + + + + + + + +
Methods in jrummikub.control.turn that return types with arguments of type ITable
+ IEvent1<ITable>AbstractTurnControl.getTableUpdateEvent() + +
+           
+ IEvent1<ITable>ITurnControl.getTableUpdateEvent() + +
+          Emitted in network when the table changes during player turn
+  +

+ + + + + + + + + + + +
Methods in jrummikub.control.turn with parameters of type ITable
+(package private) static java.util.Set<Stone>AbstractTurnControl.tableDifference(ITable oldTable, + ITable newTable) + +
+           
+(package private) static java.util.List<StoneSet>AbstractTurnControl.tableSetDifference(ITable oldTable, + ITable newTable) + +
+           
  @@ -180,24 +389,40 @@ Uses of -Methods in jrummikub.model that return ITable +Fields in jrummikub.model declared as ITable - ITable -GameState.getTable() +private  ITable +RoundState.table
            + +  +

+ + + + + - + + + +
Methods in jrummikub.model that return ITable
 ITableIGameState.getTable() +IRoundState.getTable()
          Get the current Table
+ ITableRoundState.getTable() + +
+           
 

@@ -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 + + + + + + + + + +
+Packages that use Player
jrummikub.model  
+  +

+ + + + + +
+Uses of Player in jrummikub.model
+  +

+ + + + + + + + + +
Fields in jrummikub.model with type parameters of type Player
+private  java.util.ArrayList<Player>RoundState.players + +
+           


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 + +Uses of Position in jrummikub.control.turn
-Uses of Position in jrummikub.control
  @@ -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
 intTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, +HumanTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, Pair<Stone,Position> pair2)
@@ -134,7 +158,7 @@ Uses of
 intTurnControl.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)  PositionTable.StoneInfo.setPosition + +
+           
+  +

+ @@ -175,6 +215,18 @@ Uses of + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.model with type parameters of type Position +private  PositionStoneTray.getNewPosition(E object, + Position position, + StoneTray.Direction newDirection, + E currentObject, + Position currentPosition) + +
+           
 Position StoneTray.getPosition(E object) @@ -254,6 +306,27 @@ Uses of +private  voidStoneTray.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  voidStoneTray.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.DirectionStoneTray.getMoveDirection(E object, + Position position, + Pair<E,Position> blocking) + +
+          Returns the direction to move the object in
+private  booleanStoneTray.getMoveOrientation(E object, + Position position, + Pair<E,Position> blocking) + +
+          Will the object be moved horizontally or vertically
+private  PositionStoneTray.getNewPosition(E object, + Position position, + StoneTray.Direction newDirection, + E currentObject, + Position currentPosition) + +
+           
+private  booleanStoneTray.objectsOverlap(E object1, + Position position1, + E object2, + Position position2) + +
+          Tests whether two objects overlap
+private  voidTable.splitSet(StoneSet set, + Position setPosition, + int stonePosition) + +
+          Splits a stone set at a specified position
+  +

+ + + + + + + + + + + + + +
Method parameters in jrummikub.model with type arguments of type Position
+private  StoneTray.DirectionStoneTray.getMoveDirection(E object, + Position position, + Pair<E,Position> blocking) + +
+          Returns the direction to move the object in
+private  booleanStoneTray.getMoveOrientation(E object, + Position position, + Pair<E,Position> blocking) + +
+          Will the object be moved horizontally or vertically
+  +

+ + + + + + + @@ -335,13 +505,53 @@ Uses of + + + + + + + + + + + + + + + + + + + +
Constructors in jrummikub.model with parameters of type Position
Table.StoneInfo(StoneSet set, + Position setPosition, + int stonePosition) +
           
Fields in jrummikub.view.impl with type parameters of type Position
+private  Event1<Position>AbstractStonePanel.clickEvent + +
+           
+private  java.util.List<Pair<StoneSet,Position>>TablePanel.pauseStoneSets + +
+           
+private  java.lang.Iterable<Pair<Stone,Position>>AbstractStonePanel.stones + +
+           
+private  java.lang.Iterable<Pair<StoneSet,Position>>TablePanel.stoneSets + +
+           
+  +

+ +(package private)  Position + + + + - + +          Gets the stone at the specified position - + +          Overwrite this method to signal if special zone was clicked - + + + + + + + + +
Methods in jrummikub.view.impl that return Position
- 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  booleanAbstractStonePanel.handleOtherClickEvent(Position pos) +private  StoneAbstractStonePanel.getStoneAt(Position pos)
-          Overwrite this method to signal if special zone was clicked
@@ -406,11 +624,11 @@ Uses of -protected  voidAbstractStonePanel.handleOtherMoveEvent(Position pos) +protected  booleanAbstractStonePanel.handleOtherClickEvent(Position pos)
-          Overwrite this method to signal if special zone was hovered
@@ -422,16 +640,36 @@ Uses of - voidStonePainter.paintStone(java.awt.Graphics2D g, +protected  voidAbstractStonePanel.handleOtherMoveEvent(Position pos) + +
+          Overwrite this method to signal if special zone was hovered
+(package private)  voidStonePainter.paintStone(java.awt.Graphics2D g, Stone stone, Position p, - boolean selected, + StonePainter.StoneState state, boolean hovered)
          Paints a stone
+private  voidTablePanel.paintStoneSet(java.awt.Graphics2D g, + StoneSet stoneSet, + Position pos, + java.awt.geom.Area connectorArea, + java.awt.geom.Area hoveredConnectorArea) + +
+           
 

@@ -442,19 +680,19 @@ Uses of -protected  void -AbstractStonePanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones) + void +HandPanel.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) +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/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 + +Uses of Stone in jrummikub.ai
-Uses of Stone in jrummikub.control
  @@ -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 + +
+            + + +  +

+ + + + + + + + +
Constructors in jrummikub.ai with parameters of type Stone
TurnLogic.StoneState(int id, + Stone stone, + boolean table) + +
+          Creates a new
+  +

+ + + + + + + + + + + +
Constructor parameters in jrummikub.ai with type arguments of type Stone
TurnLogic(GameSettings settings, + java.util.Collection<Stone> tableStones, + java.util.Collection<Stone> handStones) + +
+          Creates new turn logic
TurnLogic(GameSettings settings, + java.util.Collection<Stone> tableStones, + java.util.Collection<Stone> handStones) + +
+          Creates new turn logic
+  +

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

+ + + + + + + + + +
Fields in jrummikub.control.turn with type parameters of type Stone
+private  java.util.List<Stone>HumanTurnControl.selectedStones + +
+           
+  +

+ + + + - - + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in jrummikub.control.turn that return types with arguments of type Stone
(package private) static java.util.Set<Stone>RoundControl.tableDifference(ITable oldTable, +AbstractTurnControl.tableDifference(ITable oldTable, ITable newTable)
@@ -137,12 +222,135 @@ Uses of
Method parameters in jrummikub.control with type arguments of type StoneMethods in jrummikub.control.turn with parameters of type Stone
+private  voidHumanTurnControl.collectionSetClick(Stone stone, + boolean collect) + +
+           
+private  voidHumanTurnControl.collectionStoneClick(Stone stone, + boolean collect) + +
+           
 intTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, +HumanTurnControl.RunComparator.compare(Stone s1, + Stone s2) + +
+           
+ intHumanTurnControl.GroupComparator.compare(Stone s1, + Stone s2) + +
+           
+private static intHumanTurnControl.compareColors(Stone s1, + Stone s2) + +
+           
+private static intHumanTurnControl.compareJokers(Stone s1, + Stone s2) + +
+           
+private static intHumanTurnControl.compareValues(Stone s1, + Stone s2) + +
+           
+private  voidHumanTurnControl.handRangeClick(Stone stone, + boolean collect) + +
+           
+private  voidHumanTurnControl.stoneClick(Stone stone, + boolean collect) + +
+           
+private  voidHumanTurnControl.tableRangeClick(Stone stone, + boolean collect) + +
+           
+private  voidHumanTurnControl.tableSetClick(Stone stone, + boolean collect) + +
+           
+  +

+ + + + + + + + + + + + + + + + - + + + + @@ -176,9 +392,17 @@ Uses of +(package private)  java.util.ArrayList<Stone> + + + + @@ -240,6 +464,14 @@ Uses of + + + + + + + + + + + + + + +
Method parameters in jrummikub.control.turn with type arguments of type Stone
+private  voidAIControl.addHandStones(java.util.List<Stone> handStones) + +
+           
+private  voidAIControl.addTableStones(java.util.List<Stone> tableStones) + +
+           
+ intHumanTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, Pair<Stone,Position> pair2)
@@ -151,9 +359,17 @@ Uses of
 intTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, +HumanTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, Pair<Stone,Position> pair2) +
+           
+private  voidHumanTurnControl.sortStones(java.util.Comparator<Stone> comparator) +
           
-(package private)  java.util.List<Stone> StoneHeap.heap +
+           
+private  java.util.ArrayList<Stone>StoneSet.stones +
           
+private  Table.StoneInfoTable.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  StoneAbstractStonePanel.hoveredStone + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.view.impl with type parameters of type Stone
+private  Event2<Stone,java.lang.Boolean>AbstractStonePanel.rangeClickEvent + +
+           
+private  java.util.Collection<Stone>StoneCollectionPanel.selectedStones + +
+           
+private  java.util.Collection<Stone>HandPanel.selectedStones + +
+           
+private  java.util.Collection<Stone>TablePanel.selectedStones + +
+           
+private  Event2<Stone,java.lang.Boolean>AbstractStonePanel.setClickEvent + +
+           
+private  Event2<Stone,java.lang.Boolean>AbstractStonePanel.stoneClickEvent + +
+           
+private  java.lang.Iterable<Pair<Stone,Position>>AbstractStonePanel.stones + +
+           
+  +

+ @@ -416,6 +736,14 @@ Uses of + + +
Methods in jrummikub.view.impl that return Stone +private  StoneAbstractStonePanel.getStoneAt(Position pos) + +
+          Gets the stone at the specified position
 

@@ -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 +   + + +  +

+ + + + + +
+Uses of StoneColor in jrummikub.ai
+  +

+ + + + + + + + + + + + + + + + + +
Fields in jrummikub.ai declared as StoneColor
+(package private)  StoneColorTurnLogic.StoneState.color + +
+           
+private  StoneColorTurnLogic.maxColor + +
+           
+private  StoneColorTurnLogic.minColor + +
+           
+  +

+ + + + + + + + +
Fields in jrummikub.ai with type parameters of type StoneColor
+private  java.util.ArrayList<StoneColor>TurnLogic.stoneColors + +
+           
 

@@ -106,6 +175,46 @@ Uses of + +Fields in jrummikub.model declared as StoneColor + + + +private  StoneColor +Stone.color + +
+            + + +  +

+ + + + + + + + + + + + + +
Fields in jrummikub.model with type parameters of type StoneColor
+private static java.util.Comparator<Pair<java.lang.Integer,StoneColor>>Hand.comparator + +
+          The measure to compare the stones by
+private  java.util.HashSet<StoneColor>GameSettings.stoneColors + +
+           
+  +

+ @@ -139,6 +248,64 @@ the order they are declared.  

+

Methods in jrummikub.model that return StoneColor
+ + + + + + + + + + + +
Methods in jrummikub.model that return types with arguments of type StoneColor
+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.Set<StoneColor>GameSettings.getStoneColors() + +
+          Get stone colors used
+  +

+ + + + + + + + + + + + + + + + + +
Method parameters in jrummikub.model with type arguments of type StoneColor
+private static voidHand.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
+private static voidHand.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
+ voidGameSettings.setStoneColors(java.util.Set<StoneColor> stoneColors) + +
+          Set stone colors used
+  +

+ @@ -159,6 +326,132 @@ the order they are declared.
Constructors in jrummikub.model with parameters of type StoneColor
 

+ + + + + +
+Uses of StoneColor in jrummikub.view
+  +

+ + + + + + + + + +
Methods in jrummikub.view that return types with arguments of type StoneColor
+ IEvent1<java.util.Set<StoneColor>>ISettingsPanel.getChangeStoneColorsEvent() + +
+          The change Stone colors event is emitted when the user chooses the stone + colors to play with.
+  +

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

+ + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.view.impl with type parameters of type StoneColor
+private  Event1<java.util.Set<StoneColor>>SettingsPanel.changeStoneColorsEvent + +
+           
+private  java.util.Map<StoneColor,javax.swing.JToggleButton>SettingsPanel.colorButtons + +
+           
+private  java.util.Map<StonePainter.StoneState,java.util.Map<StoneColor,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>>StonePainter.defaultStones + +
+           
+private  java.util.Map<StonePainter.StoneState,java.util.Map<StoneColor,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>>StonePainter.hoveredStones + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.view.impl that return types with arguments of type StoneColor
+ IEvent1<java.util.Set<StoneColor>>SettingsPanel.getChangeStoneColorsEvent() + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in jrummikub.view.impl with parameters of type StoneColor
+private  voidSettingsPanel.createColorButton(StoneColor color) + +
+           
+(package private) static java.awt.ColorStonePainter.getColor(StoneColor color) + +
+           
+private  java.awt.image.BufferedImageStonePainter.getStoneImage(StoneColor color, + int value, + StonePainter.StoneState state, + boolean hovered) + +
+           
+  +


diff --git a/doc/jrummikub/model/class-use/StoneHeap.html b/doc/jrummikub/model/class-use/StoneHeap.html index d1751c1..55975f5 100644 --- a/doc/jrummikub/model/class-use/StoneHeap.html +++ b/doc/jrummikub/model/class-use/StoneHeap.html @@ -2,12 +2,12 @@ - + Uses of Class jrummikub.model.StoneHeap - + @@ -108,24 +108,40 @@ Uses of -Methods in jrummikub.model that return StoneHeap +Fields in jrummikub.model declared as StoneHeap - StoneHeap -GameState.getGameHeap() +private  StoneHeap +RoundState.stoneHeap
            + +  +

+ + + + + - + + + +
Methods in jrummikub.model that return StoneHeap
 StoneHeapIGameState.getGameHeap() +IRoundState.getStoneHeap()
          Returns the heap of stones to draw from
+ StoneHeapRoundState.getStoneHeap() + +
+           
 

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.  

+ + + + + + + + + + + + + +
Methods in jrummikub.model that return types with arguments of type StoneSet.Type
+ 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
+  +


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 + + + + +
+Uses of StoneSet in jrummikub.ai
+  +

+ + + + + + + + + +
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
+  +

+ + + + + +
+Uses of StoneSet in jrummikub.control
+  +

+ + + + + + + + + +
Fields in jrummikub.control with type parameters of type StoneSet
+private  java.util.ArrayList<StoneSet>RoundControl.InvalidTurnInfo.invalidSets + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control that return types with arguments of type StoneSet
+ java.util.List<StoneSet>RoundControl.InvalidTurnInfo.getInvalidSets() + +
+          Getter for the invalid sets
+  +

+ + + + + + + + +
Constructor parameters in jrummikub.control with type arguments of type StoneSet
RoundControl.InvalidTurnInfo(ITable table, + RoundControl.InvalidTurnType type, + java.util.Collection<StoneSet> invalidSets) + +
+          Creates new InvalidTurnInfo
+  +

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

+ + + + + + + + + + + + + + + + + +
Methods in jrummikub.control.turn that return types with arguments of type StoneSet
+private  java.util.List<StoneSet>AbstractTurnControl.invalidStoneSets() + +
+           
+(package private) static java.util.List<StoneSet>AbstractTurnControl.tableSetDifference(ITable oldTable, + ITable newTable) + +
+           
+private  java.util.List<StoneSet>AbstractTurnControl.touchedStoneSets() + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control.turn with parameters of type StoneSet
+private  voidHumanTurnControl.connectorClick(StoneSet set, + boolean right) + +
+           
+  +

+ + + + + + + + + +
Method parameters in jrummikub.control.turn with type arguments of type StoneSet
+private  voidAIControl.doNotMoveExistingSets(java.util.List<StoneSet> result) + +
+           
+  +

@@ -114,6 +283,22 @@ Uses of + + + + + + + +
Fields in jrummikub.model declared as StoneSet
+(package private)  StoneSetTable.StoneInfo.set + +
+           
+  +

+ @@ -184,6 +369,32 @@ Uses of + + + +
Methods in jrummikub.model that return StoneSet +private  voidTable.splitSet(StoneSet set, + Position setPosition, + int stonePosition) + +
+          Splits a stone set at a specified position
+  +

+ + + + + + + +
Constructors in jrummikub.model with parameters of type StoneSet
Table.StoneInfo(StoneSet set, + Position setPosition, + int stonePosition) + +
+           
 

@@ -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 + +
+            + + +  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.view.impl with type parameters of type StoneSet
+private  java.util.Collection<StoneSet>TablePanel.invalidStoneSets + +
+           
+private  Event1<StoneSet>TablePanel.leftConnectorClickEvent + +
+           
+private  java.util.List<Pair<StoneSet,Position>>TablePanel.pauseStoneSets + +
+           
+private  Event1<StoneSet>TablePanel.rightConnectorClickEvent + +
+           
+private  java.lang.Iterable<Pair<StoneSet,Position>>TablePanel.stoneSets + +
+           
+  +

+ @@ -272,12 +563,48 @@ Uses of + + + + + + + +
Methods in jrummikub.view.impl that return types with arguments of type StoneSet
Methods in jrummikub.view.impl with parameters of type StoneSet
+private  voidTablePanel.paintStoneSet(java.awt.Graphics2D g, + StoneSet stoneSet, + Position pos, + java.awt.geom.Area connectorArea, + java.awt.geom.Area hoveredConnectorArea) + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + +Position pos, StoneTray.Direction dir) +
+            + + + + 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
Method parameters in jrummikub.view.impl with type arguments of type StoneSet
+(package private)  voidTablePanel.setInvalidStoneSets(java.util.Collection<StoneSet> sets) + +
+           
+ voidView.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.DirectionStoneTray.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  voidStoneTray.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  voidStoneTray.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.
+private  PositionStoneTray.getNewPosition(E object, + Position position, + StoneTray.Direction newDirection, + E currentObject, + Position currentPosition) +
           
@@ -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 PACKAGEPREV 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 Stones 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 PACKAGEPREV 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  - NEXTPREV  + NEXT FRAMES    NO FRAMES   @@ -92,28 +92,39 @@ Class Hierarchy

Interface Hierarchy


@@ -158,8 +169,8 @@ Enum Hierarchy PREV  - NEXTPREV  + 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  

+ + + + + + + + + + + + + + + + + +
+Classes in jrummikub.model used by jrummikub.ai
GameSettings + +
+          The overall game settings
Stone + +
+          Basic Rummikub Stone
StoneColor + +
+          Class specifying possible StoneColors
StoneSet + +
+          Class managing Stones joined together to form sets
+  +

@@ -115,16 +164,22 @@ Packages that use jrummikub Classes in jrummikub.model used by jrummikub.control - +          The overall game settings - +          Class that stores information for a game of multiple rounds + + + - + + + + + + + + + + +
IGameState +GameSettings
-          Interface for GameState model
IHand +GameState
-          Interface for the Hand model
IRoundState + +
+          Interface for RoundState model
ITable @@ -133,18 +188,120 @@ Classes in jrummikub.model<           Interface for the Table model
Position +PlayerSettings + +
+          The settings of a player
PlayerSettings.Type + +
+          Type of turn control.
Score + +
+          Score of a single round
StoneSet + +
+          Class managing Stones joined together to form sets
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in jrummikub.model used by jrummikub.control.network
GameSettings + +
+          The overall game settings
IRoundState + +
+          Interface for RoundState model
ITable + +
+          Interface for the Table model
PlayerSettings.Type + +
+          Type of turn control.
+  +

+ + + + + + + + + + + + + + + + + + + + + + - + + +
+Classes in jrummikub.model used by jrummikub.control.turn
GameSettings + +
+          The overall game settings
IHand + +
+          Interface for the Hand model
IRoundState + +
+          Interface for RoundState model
ITable + +
+          Interface for the Table model
PlayerSettings.Type + +
+          Type of turn control.
Position
          Stone Position class to determine positions on Table or Hand
Stone +Stone
          Basic Rummikub Stone
StoneSet + +
+          Class managing Stones joined together to form sets
 

@@ -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 + +
+            + + +  +

+ + + + + + + +
+Classes in jrummikub.model used by jrummikub.util
GameSettings + +
+          The overall game settings
 

@@ -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 PACKAGENEXT PACKAGE FRAMES    NO FRAMES   @@ -129,7 +129,7 @@ Package jrummikub  PREV PACKAGE  - NEXT PACKAGENEXT 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  - NEXTNEXT FRAMES    NO FRAMES   @@ -125,7 +125,7 @@ Class Hierarchy  PREV  - NEXTNEXT 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


+ + + + + + + + + + +
+Field Summary
+private  java.util.HashSet<IListener>listeners + +
+           
@@ -173,6 +190,25 @@ Simple parameterless event generator  

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

+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

+ + + + + + + + + + +
+Field Summary
+private  java.util.HashSet<IListener1<T>>listeners + +
+           
@@ -175,6 +192,25 @@ Simple single parameter event generator  

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

+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 CLASSNEXT 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

+ + + + + + + + + + +
+Field Summary
+private  java.util.HashSet<IListener2<T1,T2>>listeners + +
+           
@@ -176,6 +193,25 @@ Simple single parameter event generator  

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

+listeners

+
+private java.util.HashSet<IListener2<T1,T2>> listeners
+
+
+
+
+ @@ -285,7 +321,7 @@ public void emit(  PREV CLASS  - NEXT CLASSNEXT 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 CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -205,7 +205,7 @@ void remove(  PREV CLASS  - NEXT CLASSNEXT 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 CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -183,7 +183,7 @@ void handle(  PREV CLASS  - NEXT CLASSNEXT 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 component
T2 - 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.Object
implements java.io.Serializable

@@ -107,10 +110,45 @@ A pair of objects

+

+
See Also:
Serialized Form

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+private  T1first + +
+           
+private  T2second + +
+           
+private static longserialVersionUID +
+           
@@ -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, waitclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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

+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     

+ + + + + +
+Uses of Connection in jrummikub.control
+  +

+ + + + + + + + + +
Fields in jrummikub.control declared as Connection
+private  ConnectionApplicationControl.tempConnection + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.control with type parameters of type Connection
+private  java.util.List<Connection>LoginControl.connections + +
+           
+protected  java.util.List<Connection>RoundControl.connections + +
+           
+protected  java.util.List<Connection>AbstractSettingsControl.connections + +
+           
+protected  java.util.List<Connection>GameControl.connections + +
+           
+  +

+ + + + + +
+Uses of Connection in jrummikub.control.network
+  +

+ + + + + + + + + + + + + +
Fields in jrummikub.control.network with type parameters of type Connection
+private  java.util.List<Connection>NetworkControl.connections + +
+           
+protected  java.util.List<Connection>AbstractGameBeginControl.connections + +
+           
+  +

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

+ + + + + + + + + +
Fields in jrummikub.control.turn with type parameters of type Connection
+protected  java.util.List<Connection>AbstractTurnControl.connections + +
+           
+  +

@@ -129,6 +264,14 @@ Uses of + + + + - @@ -153,7 +296,15 @@ Uses of - + + + + 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 + +
 ConnectionEvent1.add(IListener1<T> listener) + +
+           
+ Connection IEvent1.add(IListener1<T> listener)
@@ -137,7 +280,7 @@ Uses of
 ConnectionEvent1.add(IListener1<T> listener) +Event2.add(IListener2<T1,T2> listener)
           
 ConnectionEvent2.add(IListener2<T1,T2> listener) +IEvent3.add(IListener3<T1,T2,T3> listener) + +
+          Start to publish all events to a given listener
+ ConnectionEvent3.add(IListener3<T1,T2,T3> listener)
           
+ + + + + + + + + + + + + + + + + + + +
+Packages that use Event
jrummikub.control  
jrummikub.control.network  
jrummikub.control.turn  
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of Event in jrummikub.control
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.control declared as Event
+private  EventLoginControl.cancelEvent + +
+           
+protected  EventGameControl.endOfGameEvent + +
+           
+private  EventSaveControl.loadErrorEvent + +
+           
+private  EventTurnTimer.timeRunOutEvent + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control that return Event
+ EventSaveControl.getLoadErrorEvent() + +
+          The load error event is emitted when the file selected for loading is not + a rum file
+  +

+ + + + + +
+Uses of Event in jrummikub.control.network
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.control.network declared as Event
+private  EventNetworkSettingsControl.backEvent + +
+           
+protected  EventAbstractGameBeginControl.backEvent + +
+           
+private  EventNetworkControl.backToLoginEvent + +
+           
+private  EventConnectionControl.connectedEvent + +
+           
+private  EventConnectionControl.connectionLostEvent + +
+           
+private  EventConnectionControl.gameStartEvent + +
+           
+private  EventGameJoinControl.gameStartEvent + +
+           
+private  EventConnectionControl.nextPlayerEvent + +
+           
+private  EventConnectionControl.redealEvent + +
+           
+private  EventConnectionControl.roundStartEvent + +
+           
+private  EventNetworkControl.stopNetworkEvent + +
+           
+private  EventConnectionControl.turnStartEvent + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control.network that return Event
+ EventNetworkSettingsControl.getBackEvent() + +
+          The get back event is emitted when the player wants to go back to the + previous settings panel
+  +

+ + + + + + + + + +
Methods in jrummikub.control.network with parameters of type Event
+private static voidConnectionControl.emitLater(Event event) + +
+           
+  +

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

+ + + + + + + + + +
Fields in jrummikub.control.turn declared as Event
+protected  EventAbstractTurnControl.redealEvent + +
+           
+  +

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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.view.impl declared as Event
+private  EventStartTurnPanel.acknowledgeConnectionLostEvent + +
+           
+private  EventStartTurnPanel.acknowledgeInvalidEvent + +
+           
+private  EventSettingsPanel.addPlayerEvent + +
+           
+private  EventSettingsPanel.backEvent + +
+           
+private  EventStartTurnPanel.buttonEvent + +
+           
+private  EventQuitWarningPanel.cancelEvent + +
+           
+private  EventConnectPanel.cancelEvent + +
+           
+private  EventLoginPanel.cancelEvent + +
+           
+private  EventGameListPanel.cancelEvent + +
+           
+private  EventPausePanel.endPauseEvent + +
+           
+private  EventRoundEndPanel.endProgramEvent + +
+           
+private  EventPlayerPanel.endTurnEvent + +
+           
+private  EventView.loadEvent + +
+           
+private  EventSettingsPanel.loadGameEvent + +
+           
+private  EventView.menuNewGameEvent + +
+           
+private  EventSettingsPanel.networkGameEvent + +
+           
+private  EventView.networkGameEvent + +
+           
+private  EventRoundEndPanel.newGameEvent + +
+           
+private  EventRoundEndPanel.newRoundEvent + +
+           
+private  EventSettingsPanel.offerGameEvent + +
+           
+private  EventGameListPanel.openNewGameEvent + +
+           
+private  EventPlayerPanel.pauseEvent + +
+           
+private  EventQuitWarningPanel.quitEvent + +
+           
+private  EventView.quitEvent + +
+           
+private  EventPlayerPanel.redealEvent + +
+           
+private  EventSettingsPanel.setVariantChildrenEvent + +
+           
+private  EventSettingsPanel.setVariantDefaultEvent + +
+           
+private  EventPlayerPanel.sortByGroupsEvent + +
+           
+private  EventPlayerPanel.sortByRunsEvent + +
+           
+private  EventSettingsPanel.startGameEvent + +
+           
+private  EventStartTurnPanel.startTurnEvent + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in jrummikub.view.impl with parameters of type Event
+private  javax.swing.JButtonQuitWarningPanel.createButton(java.lang.String title, + Event event) + +
+           
+private  javax.swing.JButtonSettingsPanel.createButton(java.lang.String title, + Event event) + +
+           
+private  javax.swing.JMenuItemView.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 + + + + +
+Uses of Event1 in jrummikub.control
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.control declared as Event1
+private  Event1<Score>RoundControl.endOfRoundEvent + +
+           
+private  Event1<LoginData>LoginControl.loginEvent + +
+           
+private  Event1<PlayerSettings>RoundControl.restartRoundEvent + +
+           
+private  Event1<IRoundState>RoundControl.roundStateUpdateEvent + +
+           
+private  Event1<GameSettings>SettingsControl.startGameEvent + +
+           
+  +

+ + + + + +
+Uses of Event1 in jrummikub.control.network
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.control.network declared as Event1
+private  Event1<LoginError>ConnectionControl.connectionFailedEvent + +
+           
+private  Event1<java.lang.Boolean>ConnectionControl.gameJoinAckEvent + +
+           
+private  Event1<java.lang.String>ConnectionControl.gameJoinEvent + +
+           
+private  Event1<java.lang.String>ConnectionControl.gameLeaveEvent + +
+           
+private  Event1<GameData>ConnectionControl.gameOfferEvent + +
+           
+private  Event1<GameSettings>GameOfferControl.gameStartEvent + +
+           
+private  Event1<java.util.UUID>ConnectionControl.gameWithdrawalEvent + +
+           
+private  Event1<GameSettings>NetworkSettingsControl.offerGameEvent + +
+           
+private  Event1<java.lang.String>ConnectionControl.participantLeftEvent + +
+           
+private  Event1<IRoundState>ConnectionControl.roundStateUpdateEvent + +
+           
+private  Event1<ITable>ConnectionControl.tableUpdateEvent + +
+           
+  +

+ + + + + + + + + +
Methods in jrummikub.control.network that return Event1
+ Event1<GameSettings>NetworkSettingsControl.getOfferGameEvent() + +
+          The game offer event is emitted when a player wants to offer a new network + game
+  +

+ + + + + + + + + +
Methods in jrummikub.control.network with parameters of type Event1
+private static + + + + +
+<T> void
+
ConnectionControl.emitLater(Event1<T> event, + T arg) + +
+           
+  +

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

+ + + + + + + + + +
Fields in jrummikub.control.turn declared as Event1
+protected  Event1<ITable>AbstractTurnControl.tableUpdateEvent + +
+           
+  +

@@ -145,6 +385,166 @@ Uses of + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.view.impl declared as Event1
+private  Event1<java.lang.Integer>SettingsPanel.changeHighestValueEvent + +
+           
+private  Event1<java.lang.Integer>SettingsPanel.changeInitialMeldThresholdEvent + +
+           
+private  Event1<java.lang.Integer>SettingsPanel.changeJokerNumberEvent + +
+           
+private  Event1<java.lang.Boolean>SettingsPanel.changeNoLimitsEvent + +
+           
+private  Event1<java.lang.Integer>SettingsPanel.changeNumberOfStonesDealtEvent + +
+           
+private  Event1<java.lang.Boolean>SettingsPanel.changeSeeHandSizeEvent + +
+           
+private  Event1<java.util.Set<StoneColor>>SettingsPanel.changeStoneColorsEvent + +
+           
+private  Event1<java.lang.Integer>SettingsPanel.changeStoneSetNumberEvent + +
+           
+private  Event1<java.lang.Integer>SettingsPanel.changeTimeEvent + +
+           
+private  Event1<Position>AbstractStonePanel.clickEvent + +
+           
+private  Event1<GameData>GameListPanel.joinEvent + +
+           
+private  Event1<StoneSet>TablePanel.leftConnectorClickEvent + +
+           
+private  Event1<java.io.File>View.loadFileEvent + +
+           
+private  Event1<LoginData>LoginPanel.loginEvent + +
+           
+private  Event1<java.awt.Point>StoneCollectionPanel.otherClickEvent + +
+           
+private  Event1<java.lang.Integer>SettingsPanel.removePlayerEvent + +
+           
+private  Event1<StoneSet>TablePanel.rightConnectorClickEvent + +
+           
+private  Event1<java.io.File>View.saveEvent + +
+           
+private  Event1<java.lang.String>LoginPanel.useDedicatedServer + +
+           
+  +

+ @@ -170,6 +570,33 @@ Uses of Event1<StoneSet> + +
Methods in jrummikub.view.impl that return Event1 TablePanel.getRightConnectorClickEvent() +
+           
+  +

+ + + + + + + + + + + + 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 + + + + + + + +
Methods in jrummikub.view.impl with parameters of type Event1
+private  javax.swing.JCheckBoxSettingsPanel.createOptionCheckbox(Event1<java.lang.Boolean> targetEvent) + +
+           
+private  javax.swing.JSpinnerSettingsPanel.createOptionSpinner(int min, + int max, + int step, + Event1<java.lang.Integer> targetEvent) +
           
jrummikub.control.network  
jrummikub.control.turn  
jrummikub.view.impl   
 

+ + + + + +
+Uses of Event2 in jrummikub.control.network
+  +

+ + + + + + + + + + + + + +
Fields in jrummikub.control.network declared as Event2
+private  Event2<java.lang.String,java.awt.Color>ConnectionControl.changeColorEvent + +
+           
+private  Event2<IRoundState,RoundControl.InvalidTurnInfo>ConnectionControl.turnEndEvent + +
+           
+  +

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

+ + + + + + + + + +
Fields in jrummikub.control.turn declared as Event2
+protected  Event2<IRoundState,RoundControl.InvalidTurnInfo>AbstractTurnControl.endOfTurnEvent + +
+           
+  +

@@ -106,6 +172,62 @@ Uses of + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in jrummikub.view.impl declared as Event2
+private  Event2<java.lang.Integer,java.awt.Color>SettingsPanel.changePlayerColorEvent + +
+           
+private  Event2<java.lang.Integer,java.lang.String>SettingsPanel.changePlayerNameEvent + +
+           
+private  Event2<java.lang.Integer,PlayerSettings.Type>SettingsPanel.changePlayerTypeEvent + +
+           
+private  Event2<Stone,java.lang.Boolean>AbstractStonePanel.rangeClickEvent + +
+           
+private  Event2<Stone,java.lang.Boolean>AbstractStonePanel.setClickEvent + +
+           
+private  Event2<Stone,java.lang.Boolean>AbstractStonePanel.stoneClickEvent + +
+           
+  +

+ 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 + + + + + + + + @@ -125,18 +133,18 @@ Uses of - +          Getter for cancelEvent - +          Is emitted when the user ends the game and start a new one + + + + + + + + + + + + @@ -104,6 +116,266 @@ Packages that use +
Methods in jrummikub.view.impl that return Event2 jrummikub.control.network  
jrummikub.control.turn  
jrummikub.util   
 IEventTurnControl.getEndOfTurnEvent() +LoginControl.getCancelEvent()
-          Get the event that is emitted when the turn is over
 IEventRoundControl.getEndRoundEvent() +GameControl.getEndOfGameEvent()
-          End the round
@@ -157,6 +165,202 @@ Uses of + + + + +
+Uses of IEvent in jrummikub.control.network
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in jrummikub.control.network that return IEvent
+ IEventAbstractGameBeginControl.getBackEvent() + +
+          The back event is emitted when the player wants to go back to the previous + control and panel
+ IEventNetworkControl.getBackToLoginEvent() + +
+          The back to login event is emitted when the player aborted the connecting + process or when a connection error has occured and been acknowledged
+ IEventConnectionControl.getConnectedEvent() + +
+           
+ IEventIConnectionControl.getConnectedEvent() + +
+           
+ IEventConnectionControl.getConnectionLostEvent() + +
+           
+ IEventIConnectionControl.getConnectionLostEvent() + +
+           
+ IEventConnectionControl.getGameStartEvent() + +
+           
+ IEventIConnectionControl.getGameStartEvent() + +
+           
+ IEventConnectionControl.getNextPlayerEvent() + +
+           
+ IEventIConnectionControl.getNextPlayerEvent() + +
+           
+ IEventConnectionControl.getRedealEvent() + +
+           
+ IEventIConnectionControl.getRedealEvent() + +
+           
+ IEventConnectionControl.getRoundStartEvent() + +
+           
+ IEventIConnectionControl.getRoundStartEvent() + +
+           
+ IEventGameJoinControl.getStartGameEvent() + +
+          The event that is emitted when the game is started
+ IEventNetworkControl.getStopNetworkEvent() + +
+          Getter for stopNetworkEvent
+ IEventConnectionControl.getTurnStartEvent() + +
+           
+ IEventIConnectionControl.getTurnStartEvent() + +
+           
+  +

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

+ + + + + + + + + + + + + +
Methods in jrummikub.control.turn that return IEvent
+ IEventAbstractTurnControl.getRedealEvent() + +
+           
+ IEventITurnControl.getRedealEvent() + +
+          Emitted when the round is aborted and needs to be restarted
+  +

@@ -199,6 +403,91 @@ Uses of + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +          Is emitted if the player wants to end the game and start a new one + + + + + + + + + + + + + + + + + + + + +          The quit event is emitted when the user wants to leave the application + + + + + + + + + + + + +          The sort by runs event is emitted when the player wants to sort his + stones by runs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -282,15 +830,31 @@ Uses of - +          The new round event is emitted when the player wants to start a new round - + + + + + + + + @@ -298,10 +862,58 @@ Uses of - + + + + +            + + + + + + + + + + + + + + + + + + + + - @@ -333,8 +945,15 @@ Uses of getStartTurnEvent()
-          The start turn event is emitted when the current player has clicked the - start turn button +            + + + +
 IEventIView.getAcknowledgeConnectionLostEvent() + +
+          The acknoledge connection lost event is emitted when the user has + acknowledged that the network connection was lost
+ IEventIView.getAcknowledgeInvalidEvent() + +
+          The start turn event is emitted when the player knows what invalid stones + he played
+ IEventISettingsPanel.getAddPlayerEvent() + +
+          The add player event is emitted when the user wants to add a player to the + player list
+ IEventISettingsPanel.getBackEvent() + +
+          Emitted when the user wants to go back to the panel before
+ IEventIConnectPanel.getCancelEvent() + +
+          Is emitted when the user wants to abort connecting or has acknowledged + the error
+ IEventILoginPanel.getCancelEvent() + +
+          Emitted when the user cancels the login process
+ IEventIQuitWarningPanel.getCancelEvent() + +
+          Is emitted if the user selected quit by mistake
+ IEventIGameListPanel.getCancelEvent() + +
+          Emitted when the network game is canceled
+ IEventIView.getEndPauseEvent() + +
+          The end pause event is emitted when the user wants to sresume the game + after a pause
+ IEventIView.getEndProgramEvent() + +
+          The quit event is emitted when the player wants to quit the game
+ IEvent IPlayerPanel.getEndTurnEvent()
@@ -207,10 +496,77 @@ Uses of
 IEventIView.getLoadEvent() + +
+          The load event is emitted when the user wants to load a previously saved + game state
+ IEventIView.getMenuNewGameEvent() + +
+          The menu new game event is emitted when the user selects the new game menu + entry
+ IEventIView.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
+ IEventIView.getNewRoundEvent() + +
+          The new round event is emitted when the player wants to start a new round
+ IEventISettingsPanel.getOfferGameEvent() + +
+          The offer new game event is emitted when a new game is started and looking + for players
+ IEventIGameListPanel.getOpenNewGameEvent() + +
+          Emitted when a new game is offered
+ IEventIView.getPauseEvent() + +
+          The pause event is emitted when the user wants to pause the current turn
+ IEventIQuitWarningPanel.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
+ IEventIPlayerPanel.getRedealEvent() + +
+          The redeal event is emitted when the player wants to get new stones
+ IEventISettingsPanel.getSetVariantChildrenEvent() + +
+          Emitted when the children variant is chosen
+ IEventISettingsPanel.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
+ IEventISettingsPanel.getStartGameEvent() + +
+          the start game event is emitted when the user wants to start the game
@@ -265,9 +653,169 @@ Uses of +(package private)  IEventStartTurnPanel.getAcknowledgeConnectionLostEvent() + +
+           
+ IEventView.getAcknowledgeConnectionLostEvent() + +
+           
+(package private)  IEventStartTurnPanel.getAcknowledgeInvalidEvent() + +
+           
+ IEventView.getAcknowledgeInvalidEvent() + +
+           
+ IEventSettingsPanel.getAddPlayerEvent() + +
+           
+ IEventSettingsPanel.getBackEvent() + +
+           
+ IEventQuitWarningPanel.getCancelEvent() + +
+           
+ IEventConnectPanel.getCancelEvent() + +
+           
+ IEventLoginPanel.getCancelEvent() + +
+           
+ IEventGameListPanel.getCancelEvent() + +
+           
+(package private)  IEventPausePanel.getEndPauseEvent() + +
+           
+ IEventView.getEndPauseEvent() + +
+           
+(package private)  IEventRoundEndPanel.getEndProgramEvent() + +
+          The end program is emitted when the player wants to quit the program
+ IEventView.getEndProgramEvent() + +
+           
 IEvent PlayerPanel.getEndTurnEvent() +
+           
+ IEventView.getLoadEvent() + +
+           
+(package private)  IEventSettingsPanel.getLoadGameEvent() + +
+           
+ IEventView.getMenuNewGameEvent() + +
+           
+(package private)  IEventSettingsPanel.getNetworkGameEvent() + +
+           
+ IEventView.getNetworkGameEvent() + +
+           
+(package private)  IEventRoundEndPanel.getNewGameEvent() +
           
(package private)  IEventWinPanel.getNewGameEvent() +RoundEndPanel.getNewRoundEvent()
-          The new game event is emitted when the player wants to start a new game
 IEventView.getQuitEvent() +View.getNewRoundEvent() + +
+           
+ IEventSettingsPanel.getOfferGameEvent() + +
+           
+ IEventGameListPanel.getOpenNewGameEvent()
           
(package private)  IEventWinPanel.getQuitEvent() +PlayerPanel.getPauseEvent() + +
+           
+ IEventView.getPauseEvent()
-          The quit event is emitted when the player wants to quit the program
+ IEventQuitWarningPanel.getQuitEvent() + +
+           
+ IEventView.getQuitEvent() + +
+           
+ IEventPlayerPanel.getRedealEvent() + +
+           
+ IEventSettingsPanel.getSetVariantChildrenEvent() + +
+           
+ IEventSettingsPanel.getSetVariantDefaultEvent() + +
+           
@@ -322,7 +934,7 @@ Uses of  IEventView.getStartTurnEvent() +SettingsPanel.getStartGameEvent()
           
+ IEventView.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   
+ + + +
+Uses of IEvent1 in jrummikub.control
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in jrummikub.control that return IEvent1
+ IEvent1<Score>RoundControl.getEndOfRoundEvent() + +
+          End the round
+ IEvent1<LoginData>LoginControl.getLoginEvent() + +
+          Getter for loginEvent
+ IEvent1<PlayerSettings>RoundControl.getRestartRoundEvent() + +
+          Emitted when the round is aborted and needs to be restarted
+ IEvent1<IRoundState>RoundControl.getRoundStateUpdateEvent() + +
+          Is emitted in network when a new turn starts
+ IEvent1<GameSettings>SettingsControl.getStartGameEvent() + +
+          the start game event is emitted when the user wants to start a game and + the settings made are valid
+  +

+ + + + + +
+Uses of IEvent1 in jrummikub.control.network
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in jrummikub.control.network that return IEvent1
+ IEvent1<LoginError>ConnectionControl.getConnectionFailedEvent() + +
+           
+ IEvent1<LoginError>IConnectionControl.getConnectionFailedEvent() + +
+           
+ IEvent1<java.lang.Boolean>ConnectionControl.getGameJoinAckEvent() + +
+           
+ IEvent1<java.lang.Boolean>IConnectionControl.getGameJoinAckEvent() + +
+           
+ IEvent1<java.lang.String>ConnectionControl.getGameJoinEvent() + +
+           
+ IEvent1<java.lang.String>IConnectionControl.getGameJoinEvent() + +
+           
+ IEvent1<java.lang.String>ConnectionControl.getGameLeaveEvent() + +
+           
+ IEvent1<java.lang.String>IConnectionControl.getGameLeaveEvent() + +
+           
+ IEvent1<GameData>ConnectionControl.getGameOfferEvent() + +
+           
+ IEvent1<GameData>IConnectionControl.getGameOfferEvent() + +
+           
+ IEvent1<java.util.UUID>ConnectionControl.getGameWithdrawalEvent() + +
+           
+ IEvent1<java.util.UUID>IConnectionControl.getGameWithdrawalEvent() + +
+           
+ IEvent1<java.lang.String>ConnectionControl.getParticipantLeftEvent() + +
+           
+ IEvent1<java.lang.String>IConnectionControl.getParticipantLeftEvent() + +
+           
+ IEvent1<IRoundState>ConnectionControl.getRoundStateUpdateEvent() + +
+           
+ IEvent1<IRoundState>IConnectionControl.getRoundStateUpdateEvent() + +
+           
+ IEvent1<GameSettings>GameOfferControl.getStartGameEvent() + +
+          The event that is emitted when the game is started
+ IEvent1<ITable>ConnectionControl.getTableUpdateEvent() + +
+           
+ IEvent1<ITable>IConnectionControl.getTableUpdateEvent() + +
+           
+  +

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

+ + + + + + + + + + + + + +
Methods in jrummikub.control.turn that return IEvent1
+ IEvent1<ITable>AbstractTurnControl.getTableUpdateEvent() + +
+           
+ IEvent1<ITable>ITurnControl.getTableUpdateEvent() + +
+          Emitted in network when the table changes during player turn
+  +

@@ -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 +   + + +  +

+ + + + + +
+Uses of IEvent2 in jrummikub.control.network
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in jrummikub.control.network that return IEvent2
+ IEvent2<java.lang.String,java.awt.Color>ConnectionControl.getChangeColorEvent() + +
+           
+ IEvent2<java.lang.String,java.awt.Color>IConnectionControl.getChangeColorEvent() + +
+           
+ IEvent2<IRoundState,RoundControl.InvalidTurnInfo>ConnectionControl.getTurnEndEvent() + +
+           
+ IEvent2<IRoundState,RoundControl.InvalidTurnInfo>IConnectionControl.getTurnEndEvent() + +
+           
+  +

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

+ + + + + + + + + + + + +
Methods in jrummikub.control.turn that return IEvent2
+ IEvent2<IRoundState,RoundControl.InvalidTurnInfo>AbstractTurnControl.getEndOfTurnEvent() + +
+           
+ IEvent2<IRoundState,RoundControl.InvalidTurnInfo>ITurnControl.getEndOfTurnEvent() + +
+          Get the event that is emitted when the turn is over
 

@@ -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 + + + + +
+Uses of IEvent2 in jrummikub.view.impl
+  +

+ + + + + + + + + + + + + + + + + +
Methods in jrummikub.view.impl that return IEvent2
+ IEvent2<java.lang.Integer,java.awt.Color>SettingsPanel.getChangePlayerColorEvent() + +
+           
+ IEvent2<java.lang.Integer,java.lang.String>SettingsPanel.getChangePlayerNameEvent() + +
+           
+ IEvent2<java.lang.Integer,PlayerSettings.Type>SettingsPanel.getChangePlayerTypeEvent() + +
+           
+  +


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/IListener1.html b/doc/jrummikub/util/class-use/IListener1.html index 9f2b368..d31ec43 100644 --- a/doc/jrummikub/util/class-use/IListener1.html +++ b/doc/jrummikub/util/class-use/IListener1.html @@ -2,12 +2,12 @@ - + Uses of Interface jrummikub.util.IListener1 - + @@ -108,15 +108,23 @@ Uses of - + - + +            + +
Methods in jrummikub.util with parameters of type IListener
Methods in jrummikub.util with parameters of type IListener1Fields in jrummikub.util with type parameters of type IListener1
- ConnectionIEvent1.add(IListener1<T> listener) +private  java.util.HashSet<IListener1<T>>Event1.listeners
-          Start to publish all events to a given listener
+  +

+ + + + - + +          Start to publish all events to a given listener + +
Methods in jrummikub.util with parameters of type IListener1
@@ -128,11 +136,11 @@ Uses of - voidIEvent1.remove(IListener1<T> listener) + ConnectionIEvent1.add(IListener1<T> listener)
-          Stop publishing events to a given listener
@@ -142,6 +150,14 @@ Uses of + + voidIEvent1.remove(IListener1<T> listener) + +
+          Stop publishing events to a given listener
 

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 +            + + +  +

+ + + + - + +          Start to publish all events to a given listener + +
Methods in jrummikub.util with parameters of type IListener2
@@ -128,11 +136,11 @@ Uses of - voidIEvent2.remove(IListener2<T1,T2> listener) + ConnectionIEvent2.add(IListener2<T1,T2> listener)
-          Stop publishing events to a given listener
@@ -142,6 +150,14 @@ Uses of + + voidIEvent2.remove(IListener2<T1,T2> listener) + +
+          Stop publishing 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)
+  +

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

+ + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in jrummikub.control.turn with parameters of type Pair
 intTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, +HumanTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, Pair<Stone,Position> pair2)
@@ -134,7 +185,7 @@ Uses of
 intTurnControl.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.DirectionStoneTray.getMoveDirection(E object, + Position position, + Pair<E,Position> blocking) + +
+          Returns the direction to move the object in
+private  booleanStoneTray.getMoveOrientation(E object, + Position position, + Pair<E,Position> blocking) + +
+          Will the object be moved horizontally or vertically
+private static voidHand.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
+  +

+ + + + + + + + + +
Method parameters in jrummikub.model with type arguments of type Pair
+private static voidHand.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
+  +

@@ -265,23 +412,63 @@ Uses of + + + + + + + + + + + + + + + +
Fields in jrummikub.view.impl with type parameters of type Pair
+private  java.util.List<Pair<StoneSet,Position>>TablePanel.pauseStoneSets + +
+           
+private  java.lang.Iterable<Pair<Stone,Position>>AbstractStonePanel.stones + +
+           
+private  java.lang.Iterable<Pair<StoneSet,Position>>TablePanel.stoneSets + +
+           
+  +

+ - + +          Counts the empty slots for network players in a game + + + + @@ -293,6 +480,15 @@ Uses of + + +
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
protected  Pair<java.lang.Integer,java.lang.Integer> StoneCollectionPanel.getTranslation() +
+           
+ Pair<java.lang.Integer,java.lang.Integer>HandPanel.getTranslation() +
           
+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,19 +523,19 @@ Uses of -protected  void -AbstractStonePanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones) + void +HandPanel.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) +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/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)
    +  +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -175,6 +346,12 @@ Classes in jrummikub.util + + + @@ -194,6 +371,13 @@ Classes in jrummikub.util + + + @@ -214,6 +398,13 @@ Classes in jrummikub.util + + + + + + + + + + + + + + + + + + + NEXT CLASSNEXT CLASSPREV CLASS  + NEXT CLASS - - - - - +          Resets the rows currently displayed + PREV CLASS  + NEXT CLASSPREV CLASS  + NEXT CLASS - + +          The redeal event is emitted when the player wants to get new stones +          The sort by runs event is emitted when the player wants to sort his + stones by runs - + + + + @@ -172,27 +181,16 @@ The player panel that contains a player's board and other user interfaces
    +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
    IEvent2 +
    +          Interface for classes that can generate events having a two parameters
    IEvent3 +
              Interface for classes that can generate events having a two parameters
    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
    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.utiljrummikub.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()
     voidsetHandHeight(int height) +resetCurrentRow()
    -          Set the number of stones that fit on the hand vertically
    - voidsetHandWidth(int width) - -
    -          Set the number of stones that fit on the hand horizontally
    @@ -191,35 +183,19 @@ void setStones(java.lang.Iterable<

    -setHandWidth

    +

    +resetCurrentRow

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

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

    -setHandHeight

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

    -

    -
    -
    Parameters:
    height - number of stones
    -

    @@ -252,8 +228,8 @@ void setHandHeight(int height)
    - IHandPanelgetHandPanel() + IEventgetRedealEvent()
    -           
    @@ -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
     voidsetTimeLeft(int time) +setEndTurnMode(TurnMode turnMode) + +
    +          Sets the buttons available to end the turn
    + voidsetTime(int time, + int totalTime)
              Sets the time the player has left for his turn
    -

    -getHandPanel

    +

    +setTime

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

    -setTimeLeft

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

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

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

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

    +getRedealEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +setEndTurnMode

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

    +

    +
    Parameters:
    turnMode - the TurnMode
    +
    +

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

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

    +setHidden

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

    +

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

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

    -setLeftPlayerName

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

    -

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

    -setTopPlayerName

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

    -

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

    -setRightPlayerName

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

    -

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

    setStoneSets

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

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

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

    -getTablePanel

    +

    +getSettingsPanel

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

    -
    Returns:
    the table
    +
    Returns:
    the settings panel

    -

    -getPlayerPanel

    +

    +getScorePanel

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

    +

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

    +getTablePanel

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

    +

    + +
    Returns:
    the table
    +
    +
    +
    + +

    +getSidePanel

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

    +

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

    +getHandPanel

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

    +getPlayerPanel

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

    +

    +setRedealedPlayerName

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

    +

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

    +setLastStonePlayerName

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

    +

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

    setSelectedStones

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

    -enableStartTurnPanel

    +

    +getStartTurnEvent

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

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

    -

    -getStartTurnEvent

    +

    +getAcknowledgeInvalidEvent

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

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

    -

    -enableWinPanel

    +

    +getAcknowledgeConnectionLostEvent

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

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

    -

    -getQuitEvent

    +

    +getEndProgramEvent

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

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


    +

    +getNewRoundEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +showSettingsPanel

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

    +

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

    +showScorePanel

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

    +

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

    +setCurrentPlayerColor

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

    +

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

    +setCurrentPlayerHasLaidOut

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

    +

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

    getNewGameEvent

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

    +

    + +
    Returns:
    newGameEvent
    +
    +
    +
    + +

    +setBottomPanel

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

    +

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

    +getMenuNewGameEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +getLoadEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +getSaveEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +getPauseEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +getEndPauseEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +clearView

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

    +

    +
    +
    +
    +
    + +

    +getNetworkGameEvent

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

    Returns:
    the event
    +
    + +

    +getLoginPanel

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

    +

    + +
    Returns:
    login panel
    +
    +
    +
    + +

    +getGameListPanel

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

    +

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

    +showLoginPanel

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

    +

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

    +resetLoginPanel

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

    +

    +
    +
    +
    +
    + +

    +enablePauseMode

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

    +

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

    +showGameListPanel

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

    +

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

    +showSidePanel

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

    +

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

    +setInitialMeldError

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

    +

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

    +setStoneCollectionHidden

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

    +

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

    +setInitialMeldFirstError

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

    +

    +
    +
    +
    +
    + +

    +setInvalidStoneSets

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

    +

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

    +showLoadingError

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

    +

    +
    +
    +
    +
    + +

    +showServerStartupError

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

    +

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

    +enableSave

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

    +

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

    +showQuitWarningPanel

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

    +

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

    +getQuitEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +getQuitWarningPanel

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

    +

    + +
    Returns:
    the panel
    +
    +
    +
    + +

    +getLoadFileEvent

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

    +

    + +
    Returns:
    the event
    +
    +
    +
    + +

    +load

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

    +

    +
    +
    +
    +
    + +

    +showConnectPanel

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

    +

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

    +getConnectPanel

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

    +

    + +
    Returns:
    the panel
    +
    +
    +
    + +

    +setMayPause

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

    +

    +
    Parameters:
    mayPause - pausing possible
    +
    +

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


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

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

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

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

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

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

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

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

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

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

    +stonePainter

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

    +clickEvent

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

    +stoneClickEvent

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

    +rangeClickEvent

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

    +setClickEvent

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

    +stones

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

    +hoveredStone

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

    +setHoveredStone

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

    +

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

    getHoveredStone

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

    +getStoneAt

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

    +

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

    setStones

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

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

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

    +HEIGHT

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

    +BACKGROUND

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

    +DARK_BACKGROUND

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

    +scaledBackground

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

    +scaledDarkBackground

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

    +playerPanel

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

    +currentRow

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

    +maxRow

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

    +repaintAll

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

    +selectedStones

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

    +

    HandPanel

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

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

    -setHandWidth

    +

    +getScaledBackground

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

    -

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

    -setHandHeight

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

    -

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

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

    +rowUp

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

    +

    +
    +
    +
    +
    +
    +
    +
    + +

    +rowDown

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

    +

    +
    +
    +
    +
    +
    +
    +
    + +

    +resetCurrentRow

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

    +

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

    +canRowUp

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

    +

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

    +canRowDown

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

    +

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

    +getTranslation

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

    +

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

    setSelectedStones

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

    +rescale

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

    +

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

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

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

    +SIDE_PANEL_INSET

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

    +SIDE_PANEL_SEPARATOR

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

    +SIDE_PANEL_FIRST_LINE_HEIGHT

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

    +SIDE_PANEL_MAX_WIDTH

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

    +HAND_ROW_BUTTON_RATIO

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

    +MAX_BUTTON_FONT_SIZE

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

    +secondFormat

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

    +hand

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

    +leftPanel

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

    +rightPanel

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

    +currentPlayerNameLabel

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

    +hasLaidOutLabel

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

    +sortByGroupsButton

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

    +sortByRunsButton

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

    +handRowUpButton

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

    +handRowDownButton

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

    +timeBar

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

    +endTurnButton

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

    +keepStonesButton

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

    +redealButton

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

    +pauseButton

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

    +sortByGroupsEvent

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

    +sortByRunsEvent

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

    +endTurnEvent

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

    +redealEvent

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

    +pauseEvent

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

    +leftPanelWidth

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

    +mayPause

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

    +leftPanelResizeListener

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

    +rightPanelResizeListener

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

    getHandPanel

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

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

    -setTimeLeft

    +

    +setCurrentPlayerColor

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

    +setHasLaidOut

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

    +setTime

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

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

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

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

    +getRedealEvent

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

    +

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

    +getPauseEvent

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

    +createLeftPanel

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

    +createRightPanel

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

    +createRightPanelButtons

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

    +createButton

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

    +rescale

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

    +getLeftPanelWidth

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

    +updateButtons

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

    +setEndTurnMode

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

    +

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

    +showButtons

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

    +enableButtons

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

    +setMayPause

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

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

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

    +PANEL_INSET

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

    +PANEL_SEPARATOR

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

    +PANEL_FIRST_LINE_HEIGHT

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

    +PANEL_MAX_WIDTH

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

    +MAX_BUTTON_FONT_SIZE

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

    +startTurnLabel

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

    +extraLabel

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

    +startTurnButton

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

    +startTurnEvent

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

    +acknowledgeInvalidEvent

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

    +acknowledgeConnectionLostEvent

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

    +buttonEvent

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

    +type

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

    +currentPlayerColor

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

    +currentPlayerName

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

    +redealedPlayerName

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

    +lastStonePlayerName

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

    -setCurrentPlayerName

    +

    +setInitialMeldError

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

    +setInitialMeldFirstError

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

    -
    Parameters:
    playerName - the player name
    +

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

    +
    +
    +
    +
    + +

    +getAcknowledgeInvalidEvent

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

    +getAcknowledgeConnectionLostEvent

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

    +rescale

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

    +setCurrentPlayerName

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

    +setCurrentPlayerColor

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

    +setRedealedPlayerName

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

    +setLastStonePlayerName

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

    +setType

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

    +update

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

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

    +BACKGROUND

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

    +DARK_BACKGROUND

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

    +INSET_RATIO

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

    +selectedStones

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

    +otherClickEvent

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

    +hidden

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

    +rescale

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

    setSelectedStones

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

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

    +setHidden

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

    +

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

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

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

    +ASPECT_RATIO

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

    +DEFAULT_WIDTH

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

    +TEXT_POS

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

    +FACE_WIDTH

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

    +CIRCLE_POS

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

    +CIRCLE_WIDTH

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

    +BACKGROUND_COLOR

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

    +BRIGHTER_SCALE

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

    +HOVER_RATIO

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

    +REDDEN_RATIO

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

    +defaultStones

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

    +hoveredStones

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

    WIDTH_SCALE

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

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

    HEIGHT_SCALE

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

    See Also:
    Constant Field Values
    +
    + +

    +scale

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

    +

    StonePainter

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

    +

    +even

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

    +brighter

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

    +hover

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

    +redden

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

    +getColor

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

    setScale

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

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

    calculatePosition

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

    getStoneWidth

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

    getStoneHeight

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

    -

    +

    +prepaintStone

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

    +getStoneImage

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

    +resetPrepaint

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

    +paintStoneBackground

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

    +paintJokerFace

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

    +paintJoker

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

    +paintStoneValue

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

    +paintCircle

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

    paintStone

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

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

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

    +BACKGROUND

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

    +DARK_BACKGROUND

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

    +BRIGHT_BACKGROUND

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

    +MIN_VISIBLE_WIDTH

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

    +MIN_VISIBLE_HEIGHT

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

    +HORIZONTAL_MARGIN

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

    +VERTICAL_MARGIN

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

    +CONNECTOR_WIDTH

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

    +COLLECTION_RATIO

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

    +COLLECTION_GAP

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

    +stoneCollection

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

    +stoneSets

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

    +pauseStoneSets

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

    +invalidStoneSets

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

    +selectedStones

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

    +leftConnectorClickEvent

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

    +rightConnectorClickEvent

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

    +leftHoveredConnector

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

    +rightHoveredConnector

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

    +pauseMode

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

    -setLeftPlayerName

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

    -

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

    -setTopPlayerName

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

    -

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

    -setRightPlayerName

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

    -

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

    getLeftConnectorClickEvent

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

    +setInvalidStoneSets

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

    +createPauseStoneSets

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

    +calculateTableExtent

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

    +rescale

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

    +setScale

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

    handleOtherClickEvent

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

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

    +paintStoneSet

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

    paintComponent

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

    +enablePauseMode

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

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

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

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

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

    +PLAYER_PANEL_RATIO

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

    +PLAYER_PANEL_MAX_HEIGHT

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

    +TABLE_BORDER_WIDTH

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

    +layeredPane

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

    +mainLayer

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

    +menuBar

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

    +saveItem

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

    +table

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

    +playerPanel

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

    +startTurnPanel

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

    +pausePanel

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

    +roundEndPanel

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

    +settingsPanel

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

    +loginPanel

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

    +scorePanel

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

    +gameListPanel

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

    +sidePanel

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

    +quitWarningPanel

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

    +connectPanel

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

    +bottomPanelType

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

    +chooser

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

    +menuNewGameEvent

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

    +networkGameEvent

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

    +loadEvent

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

    +loadFileEvent

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

    +saveEvent

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

    +quitEvent

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

    +

    +quitWarningFrame

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

    +even

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

    getSettingsPanel

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

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

    getLoginPanel

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

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

    getScorePanel

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

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

    getTablePanel

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

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

    getSidePanel

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

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

    getHandPanel

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

    getPlayerPanel

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

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

    getQuitWarningPanel

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

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

    getConnectPanel

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

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

    getGameListPanel

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

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

    getMenuNewGameEvent

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

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

    getLoadFileEvent

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

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

    getLoadEvent

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

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

    getSaveEvent

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

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

    getPauseEvent

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

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

    getEndPauseEvent

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

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

    getNetworkGameEvent

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

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

    getQuitEvent

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

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

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

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

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

    +

    +createFileChooser

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

    +createMenuBar

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

    +createMenuItem

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

    enableSave

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

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

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

    +save

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

    +createLayeredPane

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

    +createSettingsPanel

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

    +createMainLayer

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

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

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

    +

    +rescale

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

    +rescaleSubpanel

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

    setSelectedStones

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

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

    setInvalidStoneSets

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    getStartTurnEvent

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

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

    getAcknowledgeInvalidEvent

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

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

    getAcknowledgeConnectionLostEvent

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

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

    getNewRoundEvent

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

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

    getNewGameEvent

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

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

    getEndProgramEvent

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

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

    +

    +createDecorationStones

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

    setBottomPanel

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

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

    +

    +doSetBottomPanel

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

    setStoneCollectionHidden

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

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

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

    Uses of Class
    jrummikub.view.impl.PlayerPanel

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

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

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

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


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

    Uses of Class
    jrummikub.view.impl.StartTurnPanel

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

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

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


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

    Uses of Class
    jrummikub.view.impl.StoneCollectionPanel

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

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

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


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

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

    Uses of Class
    jrummikub.view.impl.TablePanel

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

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

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


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

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

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

    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() - + + @@ -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

    +

    +Interface Hierarchy +

    + +

    +Enum Hierarchy +

    +
    @@ -119,7 +232,8 @@ Class Hierarchy
    - + + 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()
    - + + @@ -84,6 +85,1022 @@ Serialized Form
    +
    + + + +
    +Package jrummikub.control
    + +

    + + + + + +
    +Class jrummikub.control.RoundControl.InvalidTurnInfo extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: -3591000741414366776L + +

    + + + + + +
    +Serialized Fields
    + +

    +table

    +
    +ITable table
    +
    +
    +
    +
    +
    +

    +type

    +
    +RoundControl.InvalidTurnType type
    +
    +
    +
    +
    +
    +

    +invalidSets

    +
    +java.util.ArrayList<E> invalidSets
    +
    +
    +
    +
    +
    + + + + + +
    +Package jrummikub.model
    + +

    + + + + + +
    +Class jrummikub.model.GameSettings extends java.lang.Object implements Serializable
    + +

    +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
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.GameState extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: -5787975403310108391L + +

    + + + + + +
    +Serialized Fields
    + +

    +firstRoundFirstPlayer

    +
    +int firstRoundFirstPlayer
    +
    +
    +
    +
    +
    +

    +scores

    +
    +java.util.ArrayList<E> scores
    +
    +
    +
    +
    +
    +

    +lastPlayerRedealed

    +
    +PlayerSettings lastPlayerRedealed
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.Hand extends StoneTray<Stone> implements Serializable
    + +

    +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
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.Player extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: 2588861964190952815L + +

    + + + + + +
    +Serialized Fields
    + +

    +settings

    +
    +PlayerSettings settings
    +
    +
    +
    +
    +
    +

    +hand

    +
    +IHand hand
    +
    +
    +
    +
    +
    +

    +laidOut

    +
    +boolean laidOut
    +
    +
    +
    +
    +
    +

    +lastTurnInvalid

    +
    +boolean lastTurnInvalid
    +
    +
    +
    +
    +
    +

    +lastTurnStoneCount

    +
    +int lastTurnStoneCount
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.PlayerSettings extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: 1963640115089275992L + +

    + + + + + +
    +Serialized Fields
    + +

    +name

    +
    +java.lang.String name
    +
    +
    +
    +
    +
    +

    +color

    +
    +java.awt.Color color
    +
    +
    +
    +
    +
    +

    +turnControlType

    +
    +PlayerSettings.Type turnControlType
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.Position extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: -582497930480638380L + +

    + + + + + +
    +Serialized Fields
    + +

    +x

    +
    +double x
    +
    +
    +
    +
    +
    +

    +y

    +
    +double y
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.RoundState extends java.lang.Object implements Serializable
    + +

    +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
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.Score extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: 2200041688506962025L + +

    + + + + + +
    +Serialized Fields
    + +

    +winners

    +
    +java.util.ArrayList<E> winners
    +
    +
    +
    +
    +
    +

    +points

    +
    +java.util.ArrayList<E> points
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.Stone extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: 7032593080727812277L + +

    + + + + + +
    +Serialized Fields
    + +

    +value

    +
    +int value
    +
    +
    +
    +
    +
    +

    +color

    +
    +StoneColor color
    +
    +
    +
    +
    +
    +

    +joker

    +
    +boolean joker
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.StoneHeap extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: -5247740086907775125L + +

    + + + + + +
    +Serialized Fields
    + +

    +heap

    +
    +java.util.ArrayList<E> heap
    +
    +
    +
    +
    +
    +

    +generator

    +
    +java.util.Random generator
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.StoneSet extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: -3852631195648599398L + +

    + + + + + +
    +Serialized Fields
    + +

    +stones

    +
    +java.util.ArrayList<E> stones
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.StoneTray extends java.lang.Object implements Serializable
    + +

    +serialVersionUID: -6329309928640027222L + +

    + + + + + +
    +Serialized Fields
    + +

    +objects

    +
    +java.util.HashMap<K,V> objects
    +
    +
    +
    +
    + +

    + + + + + +
    +Class jrummikub.model.Table extends StoneTray<StoneSet> implements Serializable
    + +

    +serialVersionUID: 2433091681355019937L + +

    + + + + + +
    +Serialized Fields
    + +

    +gameSettings

    +
    +GameSettings gameSettings
    +
    +
    +
    +
    +
    + + + + + +
    +Package jrummikub.util
    + +

    + + + + + +
    +Class jrummikub.util.Pair extends java.lang.Object implements Serializable
    + +

    +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 - + + -- cgit v1.2.3