From 670fcf2613f6db2a4bfdaa91ac9d90001a90359e Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Tue, 10 May 2011 16:59:40 +0200 Subject: docs fertig und vorher repariert git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@232 72836036-5685-4462-b002-a69064685172 --- doc/jrummikub/view/IClickable.html | 221 +++++++ doc/jrummikub/view/IHandPanel.html | 287 +++++++++ doc/jrummikub/view/IPlayerPanel.html | 305 +++++++++ doc/jrummikub/view/IStoneCollectionPanel.html | 197 ++++++ doc/jrummikub/view/IStonePanel.html | 273 ++++++++ doc/jrummikub/view/ITablePanel.html | 392 ++++++++++++ doc/jrummikub/view/IView.html | 388 +++++++++++ doc/jrummikub/view/class-use/IClickable.html | 241 +++++++ doc/jrummikub/view/class-use/IHandPanel.html | 209 ++++++ doc/jrummikub/view/class-use/IPlayerPanel.html | 225 +++++++ .../view/class-use/IStoneCollectionPanel.html | 226 +++++++ doc/jrummikub/view/class-use/IStonePanel.html | 249 ++++++++ doc/jrummikub/view/class-use/ITablePanel.html | 225 +++++++ doc/jrummikub/view/class-use/IView.html | 238 +++++++ doc/jrummikub/view/impl/AbstractStonePanel.html | 707 +++++++++++++++++++++ doc/jrummikub/view/impl/HandPanel.html | 516 +++++++++++++++ doc/jrummikub/view/impl/PlayerPanel.html | 521 +++++++++++++++ doc/jrummikub/view/impl/StartTurnPanel.html | 412 ++++++++++++ doc/jrummikub/view/impl/StoneCollectionPanel.html | 513 +++++++++++++++ doc/jrummikub/view/impl/StonePainter.html | 410 ++++++++++++ doc/jrummikub/view/impl/TablePanel.html | 702 ++++++++++++++++++++ doc/jrummikub/view/impl/View.html | 646 +++++++++++++++++++ doc/jrummikub/view/impl/WinPanel.html | 432 +++++++++++++ .../view/impl/class-use/AbstractStonePanel.html | 196 ++++++ doc/jrummikub/view/impl/class-use/HandPanel.html | 180 ++++++ doc/jrummikub/view/impl/class-use/PlayerPanel.html | 144 +++++ .../view/impl/class-use/StartTurnPanel.html | 144 +++++ .../view/impl/class-use/StoneCollectionPanel.html | 144 +++++ .../view/impl/class-use/StonePainter.html | 180 ++++++ doc/jrummikub/view/impl/class-use/TablePanel.html | 144 +++++ doc/jrummikub/view/impl/class-use/View.html | 144 +++++ doc/jrummikub/view/impl/class-use/WinPanel.html | 144 +++++ doc/jrummikub/view/impl/package-frame.html | 48 ++ doc/jrummikub/view/impl/package-summary.html | 190 ++++++ doc/jrummikub/view/impl/package-tree.html | 181 ++++++ doc/jrummikub/view/impl/package-use.html | 183 ++++++ doc/jrummikub/view/package-frame.html | 44 ++ doc/jrummikub/view/package-summary.html | 181 ++++++ doc/jrummikub/view/package-tree.html | 159 +++++ doc/jrummikub/view/package-use.html | 274 ++++++++ 40 files changed, 11215 insertions(+) create mode 100644 doc/jrummikub/view/IClickable.html create mode 100644 doc/jrummikub/view/IHandPanel.html create mode 100644 doc/jrummikub/view/IPlayerPanel.html create mode 100644 doc/jrummikub/view/IStoneCollectionPanel.html create mode 100644 doc/jrummikub/view/IStonePanel.html create mode 100644 doc/jrummikub/view/ITablePanel.html create mode 100644 doc/jrummikub/view/IView.html create mode 100644 doc/jrummikub/view/class-use/IClickable.html create mode 100644 doc/jrummikub/view/class-use/IHandPanel.html create mode 100644 doc/jrummikub/view/class-use/IPlayerPanel.html create mode 100644 doc/jrummikub/view/class-use/IStoneCollectionPanel.html create mode 100644 doc/jrummikub/view/class-use/IStonePanel.html create mode 100644 doc/jrummikub/view/class-use/ITablePanel.html create mode 100644 doc/jrummikub/view/class-use/IView.html create mode 100644 doc/jrummikub/view/impl/AbstractStonePanel.html create mode 100644 doc/jrummikub/view/impl/HandPanel.html create mode 100644 doc/jrummikub/view/impl/PlayerPanel.html create mode 100644 doc/jrummikub/view/impl/StartTurnPanel.html create mode 100644 doc/jrummikub/view/impl/StoneCollectionPanel.html create mode 100644 doc/jrummikub/view/impl/StonePainter.html create mode 100644 doc/jrummikub/view/impl/TablePanel.html create mode 100644 doc/jrummikub/view/impl/View.html create mode 100644 doc/jrummikub/view/impl/WinPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/AbstractStonePanel.html create mode 100644 doc/jrummikub/view/impl/class-use/HandPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/PlayerPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/StartTurnPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/StonePainter.html create mode 100644 doc/jrummikub/view/impl/class-use/TablePanel.html create mode 100644 doc/jrummikub/view/impl/class-use/View.html create mode 100644 doc/jrummikub/view/impl/class-use/WinPanel.html create mode 100644 doc/jrummikub/view/impl/package-frame.html create mode 100644 doc/jrummikub/view/impl/package-summary.html create mode 100644 doc/jrummikub/view/impl/package-tree.html create mode 100644 doc/jrummikub/view/impl/package-use.html create mode 100644 doc/jrummikub/view/package-frame.html create mode 100644 doc/jrummikub/view/package-summary.html create mode 100644 doc/jrummikub/view/package-tree.html create mode 100644 doc/jrummikub/view/package-use.html (limited to 'doc/jrummikub/view') diff --git a/doc/jrummikub/view/IClickable.html b/doc/jrummikub/view/IClickable.html new file mode 100644 index 0000000..10878fc --- /dev/null +++ b/doc/jrummikub/view/IClickable.html @@ -0,0 +1,221 @@ + + + + + + +IClickable + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view +
+Interface IClickable

+
+
All Known Subinterfaces:
IHandPanel, ITablePanel
+
+
+
All Known Implementing Classes:
AbstractStonePanel, HandPanel, StoneCollectionPanel, TablePanel
+
+
+
+
public interface IClickable
+ + +

+An interface for view elements that can emit click events +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ IEvent1<Position>getClickEvent() + +
+          the click event is emitted when the player clicks on the table/hand/etc.
+  +

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

+getClickEvent

+
+IEvent1<Position> getClickEvent()
+
+
the click event is emitted when the player clicks on the table/hand/etc. +

+

+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/IHandPanel.html b/doc/jrummikub/view/IHandPanel.html new file mode 100644 index 0000000..aed36ab --- /dev/null +++ b/doc/jrummikub/view/IHandPanel.html @@ -0,0 +1,287 @@ + + + + + + +IHandPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view +
+Interface IHandPanel

+
+
All Superinterfaces:
IClickable, IStonePanel
+
+
+
All Known Implementing Classes:
HandPanel
+
+
+
+
public interface IHandPanel
extends IStonePanel, IClickable
+ + +

+The view for a player's hand that displays his stones +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidsetHandHeight(int height) + +
+          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
+ voidsetStones(java.lang.Iterable<Pair<Stone,Position>> stones) + +
+          Set the player's stones to display on the board
+ + + + + + + +
Methods inherited from interface jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+ + + + + + + +
Methods inherited from interface jrummikub.view.IClickable
getClickEvent
+  +

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

+setStones

+
+void setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
+
Set the player's stones to display on the board +

+

+
+
+
+
Parameters:
stones - the stones
+
+
+
+ +

+setHandWidth

+
+void setHandWidth(int width)
+
+
Set the number of stones that fit on the hand horizontally +

+

+
+
+
+
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
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/IPlayerPanel.html b/doc/jrummikub/view/IPlayerPanel.html new file mode 100644 index 0000000..18721d5 --- /dev/null +++ b/doc/jrummikub/view/IPlayerPanel.html @@ -0,0 +1,305 @@ + + + + + + +IPlayerPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view +
+Interface IPlayerPanel

+
+
All Known Implementing Classes:
PlayerPanel
+
+
+
+
public interface IPlayerPanel
+ + +

+The player panel that contains a player's board and other user interfaces +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IEventgetEndTurnEvent() + +
+          The end turn event is emitted when the player wants to end his turn
+ IHandPanelgetHandPanel() + +
+           
+ IEventgetSortByGroupsEvent() + +
+          The sort by groups event is emitted when the player wants to sort his + stones by groups
+ IEventgetSortByRunsEvent() + +
+          The sort by runs event is emitted when the player wants to sort his stones + by runs
+ voidsetTimeLeft(int time) + +
+          Sets the time the player has left for his turn
+  +

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

+getHandPanel

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

+setTimeLeft

+
+void setTimeLeft(int time)
+
+
Sets the time the player has left for his turn +

+

+
Parameters:
time - the time left
+
+
+
+ +

+getSortByGroupsEvent

+
+IEvent getSortByGroupsEvent()
+
+
The sort by groups event is emitted when the player wants to sort his + stones by groups +

+

+ +
Returns:
the event
+
+
+
+ +

+getSortByRunsEvent

+
+IEvent getSortByRunsEvent()
+
+
The sort by runs event is emitted when the player wants to sort his stones + by runs +

+

+ +
Returns:
the event
+
+
+
+ +

+getEndTurnEvent

+
+IEvent getEndTurnEvent()
+
+
The end turn event is emitted when the player wants to end his turn +

+

+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/IStoneCollectionPanel.html b/doc/jrummikub/view/IStoneCollectionPanel.html new file mode 100644 index 0000000..17c1c75 --- /dev/null +++ b/doc/jrummikub/view/IStoneCollectionPanel.html @@ -0,0 +1,197 @@ + + + + + + +IStoneCollectionPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view +
+Interface IStoneCollectionPanel

+
+
All Superinterfaces:
IStonePanel
+
+
+
All Known Implementing Classes:
StoneCollectionPanel
+
+
+
+
public interface IStoneCollectionPanel
extends IStonePanel
+ + +

+The view of the collection that shows the stones a player has selected +

+ +

+


+ +

+ + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from interface jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+  +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/IStonePanel.html b/doc/jrummikub/view/IStonePanel.html new file mode 100644 index 0000000..516f2a9 --- /dev/null +++ b/doc/jrummikub/view/IStonePanel.html @@ -0,0 +1,273 @@ + + + + + + +IStonePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view +
+Interface IStonePanel

+
+
All Known Subinterfaces:
IHandPanel, IStoneCollectionPanel, ITablePanel
+
+
+
All Known Implementing Classes:
AbstractStonePanel, HandPanel, StoneCollectionPanel, TablePanel
+
+
+
+
public interface IStonePanel
+ + +

+An interface for view elements that can emit click events for clicks on stones +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IEvent2<Stone,java.lang.Boolean>getRangeClickEvent() + +
+          the range click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a range instead of a single stone
+ IEvent2<Stone,java.lang.Boolean>getSetClickEvent() + +
+          the set click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a whole set instead of a single stone
+ IEvent2<Stone,java.lang.Boolean>getStoneClickEvent() + +
+          the click event is emitted when the player clicks on the table/hand/etc.
+  +

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

+getStoneClickEvent

+
+IEvent2<Stone,java.lang.Boolean> getStoneClickEvent()
+
+
the click event is emitted when the player clicks on the table/hand/etc. +

+

+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+
+ +

+getRangeClickEvent

+
+IEvent2<Stone,java.lang.Boolean> getRangeClickEvent()
+
+
the range click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a range instead of a single stone +

+

+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+
+ +

+getSetClickEvent

+
+IEvent2<Stone,java.lang.Boolean> getSetClickEvent()
+
+
the set click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a whole set instead of a single stone +

+

+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/ITablePanel.html b/doc/jrummikub/view/ITablePanel.html new file mode 100644 index 0000000..ae759e7 --- /dev/null +++ b/doc/jrummikub/view/ITablePanel.html @@ -0,0 +1,392 @@ + + + + + + +ITablePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view +
+Interface ITablePanel

+
+
All Superinterfaces:
IClickable, IStonePanel
+
+
+
All Known Implementing Classes:
TablePanel
+
+
+
+
public interface ITablePanel
extends IStonePanel, IClickable
+ + +

+The view of the table, where the stone sets lie +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Event1<StoneSet>getLeftConnectorClickEvent() + +
+          the left connector click event is emitted when the player clicks on a left + connector of a stone set on the table .
+ Event1<StoneSet>getRightConnectorClickEvent() + +
+          the right connector click event is emitted when the player clicks on a + right connector of a stone set on the table .
+ IStoneCollectionPanelgetStoneCollectionPanel() + +
+          Returns the stone collection (the panel showing the stones currently + selected)
+ voidsetLeftPlayerName(java.lang.String playerName) + +
+          Sets the player name on the left label
+ voidsetRightPlayerName(java.lang.String playerName) + +
+          Sets the player name on the right label
+ voidsetStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets) + +
+          Sets the stone sets lying on the table
+ voidsetTopPlayerName(java.lang.String playerName) + +
+          Sets the player name on the top label
+ + + + + + + +
Methods inherited from interface jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+ + + + + + + +
Methods inherited from interface jrummikub.view.IClickable
getClickEvent
+  +

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

+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

+
+void setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
+
Sets the stone sets lying on the table +

+

+
+
+
+
Parameters:
stoneSets - set stone sets on the table
+
+
+
+ +

+getStoneCollectionPanel

+
+IStoneCollectionPanel getStoneCollectionPanel()
+
+
Returns the stone collection (the panel showing the stones currently + selected) +

+

+
+
+
+ +
Returns:
the stone collection
+
+
+
+ +

+getLeftConnectorClickEvent

+
+Event1<StoneSet> getLeftConnectorClickEvent()
+
+
the left connector click event is emitted when the player clicks on a left + connector of a stone set on the table . +

+

+
+
+
+ +
Returns:
the event
+
+
+
+ +

+getRightConnectorClickEvent

+
+Event1<StoneSet> getRightConnectorClickEvent()
+
+
the right connector click event is emitted when the player clicks on a + right connector of a stone set on the table . +

+

+
+
+
+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/IView.html b/doc/jrummikub/view/IView.html new file mode 100644 index 0000000..b43a756 --- /dev/null +++ b/doc/jrummikub/view/IView.html @@ -0,0 +1,388 @@ + + + + + + +IView + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view +
+Interface IView

+
+
All Known Implementing Classes:
View
+
+
+
+
public interface IView
+ + +

+The top-level view interface +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidenableStartTurnPanel(boolean enable) + +
+          Enables or disables the player's StartTurnPanel
+ voidenableWinPanel(boolean enable) + +
+          Enables or disables the panel shown when a player has won
+ IEventgetNewGameEvent() + +
+          The new game event is emitted when the player wants to start a new game
+ IPlayerPanelgetPlayerPanel() + +
+          Returns the player panel
+ IEventgetQuitEvent() + +
+          The quit event is emitted when the player wants to quit the game
+ IEventgetStartTurnEvent() + +
+          The start turn event is emitted when the player wants to start his turn
+ ITablePanelgetTablePanel() + +
+          Returns the table
+ voidsetCurrentPlayerName(java.lang.String playerName) + +
+          Sets the current player's name
+ voidsetSelectedStones(java.util.Collection<Stone> stones) + +
+          Sets the stones that are to be painted selected
+  +

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

+getTablePanel

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

+

+ +
Returns:
the table
+
+
+
+ +

+getPlayerPanel

+
+IPlayerPanel getPlayerPanel()
+
+
Returns the player panel +

+

+ +
Returns:
the playerPanel
+
+
+
+ +

+setCurrentPlayerName

+
+void setCurrentPlayerName(java.lang.String playerName)
+
+
Sets the current player's name +

+

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

+setSelectedStones

+
+void setSelectedStones(java.util.Collection<Stone> stones)
+
+
Sets the stones that are to be painted selected +

+

+
Parameters:
stones - the stones to be painted selected
+
+
+
+ +

+enableStartTurnPanel

+
+void enableStartTurnPanel(boolean enable)
+
+
Enables or disables the player's StartTurnPanel +

+

+
Parameters:
enable - enable/disable
+
+
+
+ +

+getStartTurnEvent

+
+IEvent getStartTurnEvent()
+
+
The start turn event is emitted when the player wants to start his turn +

+

+ +
Returns:
the event
+
+
+
+ +

+enableWinPanel

+
+void enableWinPanel(boolean enable)
+
+
Enables or disables the panel shown when a player has won +

+

+
Parameters:
enable - enable/disable
+
+
+
+ +

+getQuitEvent

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

+

+ +
Returns:
the event
+
+
+
+ +

+getNewGameEvent

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

+

+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/class-use/IClickable.html b/doc/jrummikub/view/class-use/IClickable.html new file mode 100644 index 0000000..ee6883c --- /dev/null +++ b/doc/jrummikub/view/class-use/IClickable.html @@ -0,0 +1,241 @@ + + + + + + +Uses of Interface jrummikub.view.IClickable + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
jrummikub.view.IClickable

+
+ + + + + + + + + + + + + +
+Packages that use IClickable
jrummikub.view  
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of IClickable in jrummikub.view
+  +

+ + + + + + + + + + + + + +
Subinterfaces of IClickable in jrummikub.view
+ interfaceIHandPanel + +
+          The view for a player's hand that displays his stones
+ interfaceITablePanel + +
+          The view of the table, where the stone sets lie
+  +

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

+ + + + + + + + + + + + + + + + + + + + + +
Classes in jrummikub.view.impl that implement IClickable
+(package private)  classAbstractStonePanel + +
+          Base class for panels that draw stones
+(package private)  classHandPanel + +
+          Implementation of the board
+(package private)  classStoneCollectionPanel + +
+          Implementation of the stone collection (selection)
+(package private)  classTablePanel + +
+          The implementation of the table
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/class-use/IHandPanel.html b/doc/jrummikub/view/class-use/IHandPanel.html new file mode 100644 index 0000000..5663756 --- /dev/null +++ b/doc/jrummikub/view/class-use/IHandPanel.html @@ -0,0 +1,209 @@ + + + + + + +Uses of Interface jrummikub.view.IHandPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
jrummikub.view.IHandPanel

+
+ + + + + + + + + + + + + +
+Packages that use IHandPanel
jrummikub.view  
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of IHandPanel in jrummikub.view
+  +

+ + + + + + + + + +
Methods in jrummikub.view that return IHandPanel
+ IHandPanelIPlayerPanel.getHandPanel() + +
+           
+  +

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

+ + + + + + + + + +
Classes in jrummikub.view.impl that implement IHandPanel
+(package private)  classHandPanel + +
+          Implementation of the board
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/class-use/IPlayerPanel.html b/doc/jrummikub/view/class-use/IPlayerPanel.html new file mode 100644 index 0000000..6ebde84 --- /dev/null +++ b/doc/jrummikub/view/class-use/IPlayerPanel.html @@ -0,0 +1,225 @@ + + + + + + +Uses of Interface jrummikub.view.IPlayerPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
jrummikub.view.IPlayerPanel

+
+ + + + + + + + + + + + + +
+Packages that use IPlayerPanel
jrummikub.view  
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of IPlayerPanel in jrummikub.view
+  +

+ + + + + + + + + +
Methods in jrummikub.view that return IPlayerPanel
+ IPlayerPanelIView.getPlayerPanel() + +
+          Returns the player panel
+  +

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

+ + + + + + + + + +
Classes in jrummikub.view.impl that implement IPlayerPanel
+(package private)  classPlayerPanel + +
+          Implementation of the player panel
+  +

+ + + + + + + + + +
Methods in jrummikub.view.impl that return IPlayerPanel
+ IPlayerPanelView.getPlayerPanel() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/class-use/IStoneCollectionPanel.html b/doc/jrummikub/view/class-use/IStoneCollectionPanel.html new file mode 100644 index 0000000..eec8be6 --- /dev/null +++ b/doc/jrummikub/view/class-use/IStoneCollectionPanel.html @@ -0,0 +1,226 @@ + + + + + + +Uses of Interface jrummikub.view.IStoneCollectionPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
jrummikub.view.IStoneCollectionPanel

+
+ + + + + + + + + + + + + +
+Packages that use IStoneCollectionPanel
jrummikub.view  
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of IStoneCollectionPanel in jrummikub.view
+  +

+ + + + + + + + + +
Methods in jrummikub.view that return IStoneCollectionPanel
+ IStoneCollectionPanelITablePanel.getStoneCollectionPanel() + +
+          Returns the stone collection (the panel showing the stones currently + selected)
+  +

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

+ + + + + + + + + +
Classes in jrummikub.view.impl that implement IStoneCollectionPanel
+(package private)  classStoneCollectionPanel + +
+          Implementation of the stone collection (selection)
+  +

+ + + + + + + + + +
Methods in jrummikub.view.impl that return IStoneCollectionPanel
+ IStoneCollectionPanelTablePanel.getStoneCollectionPanel() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/class-use/IStonePanel.html b/doc/jrummikub/view/class-use/IStonePanel.html new file mode 100644 index 0000000..12549e6 --- /dev/null +++ b/doc/jrummikub/view/class-use/IStonePanel.html @@ -0,0 +1,249 @@ + + + + + + +Uses of Interface jrummikub.view.IStonePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
jrummikub.view.IStonePanel

+
+ + + + + + + + + + + + + +
+Packages that use IStonePanel
jrummikub.view  
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of IStonePanel in jrummikub.view
+  +

+ + + + + + + + + + + + + + + + + +
Subinterfaces of IStonePanel in jrummikub.view
+ interfaceIHandPanel + +
+          The view for a player's hand that displays his stones
+ interfaceIStoneCollectionPanel + +
+          The view of the collection that shows the stones a player has selected
+ interfaceITablePanel + +
+          The view of the table, where the stone sets lie
+  +

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

+ + + + + + + + + + + + + + + + + + + + + +
Classes in jrummikub.view.impl that implement IStonePanel
+(package private)  classAbstractStonePanel + +
+          Base class for panels that draw stones
+(package private)  classHandPanel + +
+          Implementation of the board
+(package private)  classStoneCollectionPanel + +
+          Implementation of the stone collection (selection)
+(package private)  classTablePanel + +
+          The implementation of the table
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/class-use/ITablePanel.html b/doc/jrummikub/view/class-use/ITablePanel.html new file mode 100644 index 0000000..27a8c3d --- /dev/null +++ b/doc/jrummikub/view/class-use/ITablePanel.html @@ -0,0 +1,225 @@ + + + + + + +Uses of Interface jrummikub.view.ITablePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
jrummikub.view.ITablePanel

+
+ + + + + + + + + + + + + +
+Packages that use ITablePanel
jrummikub.view  
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of ITablePanel in jrummikub.view
+  +

+ + + + + + + + + +
Methods in jrummikub.view that return ITablePanel
+ ITablePanelIView.getTablePanel() + +
+          Returns the table
+  +

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

+ + + + + + + + + +
Classes in jrummikub.view.impl that implement ITablePanel
+(package private)  classTablePanel + +
+          The implementation of the table
+  +

+ + + + + + + + + +
Methods in jrummikub.view.impl that return ITablePanel
+ ITablePanelView.getTablePanel() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/class-use/IView.html b/doc/jrummikub/view/class-use/IView.html new file mode 100644 index 0000000..f6cadd8 --- /dev/null +++ b/doc/jrummikub/view/class-use/IView.html @@ -0,0 +1,238 @@ + + + + + + +Uses of Interface jrummikub.view.IView + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
jrummikub.view.IView

+
+ + + + + + + + + + + + + +
+Packages that use IView
jrummikub.control  
jrummikub.view.impl  
+  +

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

+ + + + + + + + + + + + + + + + + + + + +
Constructors in jrummikub.control with parameters of type IView
GameControl(IView view) + +
+          Constructor
RoundControl(IGameState gameState, + IView view) + +
+          Create a new RoundControl using the given gameState and view
TurnControl(IHand hand, + ITable table, + 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) + +
+          Test only constructor
TurnTimer(IView view) + +
+          Create a new timer using a given view to display the current time left
+  +

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

+ + + + + + + + + +
Classes in jrummikub.view.impl that implement IView
+ classView + +
+          Implementation of the top-level view interface
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/AbstractStonePanel.html b/doc/jrummikub/view/impl/AbstractStonePanel.html new file mode 100644 index 0000000..ba29bdf --- /dev/null +++ b/doc/jrummikub/view/impl/AbstractStonePanel.html @@ -0,0 +1,707 @@ + + + + + + +AbstractStonePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class AbstractStonePanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.AbstractStonePanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IClickable, IStonePanel
+
+
+
Direct Known Subclasses:
HandPanel, StoneCollectionPanel, TablePanel
+
+
+
+
abstract class AbstractStonePanel
extends javax.swing.JPanel
implements IStonePanel, IClickable
+ + +

+Base class for panels that draw stones +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
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.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + + + + +
+Constructor Summary
AbstractStonePanel() + +
+          Create a new StonePanel with default scale factor
AbstractStonePanel(float scale) + +
+          Create a new StonePanel with a given scale factor
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidclickAt(java.awt.Point p, + int clickCount, + boolean shift, + boolean control, + boolean alt) + +
+          clickAt is called when a click has occurred
+ Event1<Position>getClickEvent() + +
+          the click event is emitted when the player clicks on the table/hand/etc.
+protected  StonegetHoveredStone() + +
+          Returns the stone the mouse pointer is hovering over
+ Event2<Stone,java.lang.Boolean>getRangeClickEvent() + +
+          the range click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a range instead of a single stone
+ Event2<Stone,java.lang.Boolean>getSetClickEvent() + +
+          the set click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a whole set instead of a single stone
+ Event2<Stone,java.lang.Boolean>getStoneClickEvent() + +
+          the click event is emitted when the player clicks on the table/hand/etc.
+protected  StonePaintergetStonePainter() + +
+           
+protected  java.lang.Iterable<Pair<Stone,Position>>getStones() + +
+          Returns the list of stones and positions currently set
+protected  Pair<java.lang.Integer,java.lang.Integer>getTranslation() + +
+          Returns the translation in pixels the stones in this panel are painted with
+protected  booleanhandleOtherClickEvent(Position pos) + +
+          Overwrite this method to signal if special zone was clicked
+protected  voidhandleOtherMoveEvent(Position pos) + +
+          Overwrite this method to signal if special zone was hovered
+protected  voidsetStones(java.lang.Iterable<Pair<Stone,Position>> stones) + +
+          Sets the list of stones that can be clicked on
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractStonePanel

+
+public AbstractStonePanel()
+
+
Create a new StonePanel with default scale factor +

+

+
+ +

+AbstractStonePanel

+
+public AbstractStonePanel(float scale)
+
+
Create a new StonePanel with a given scale factor +

+

+
Parameters:
scale - the grid scale
+
+ + + + + + + + +
+Method Detail
+ +

+getStonePainter

+
+protected StonePainter getStonePainter()
+
+
+
+
+
+ +
Returns:
the stone painter
+
+
+
+ +

+clickAt

+
+protected void clickAt(java.awt.Point p,
+                       int clickCount,
+                       boolean shift,
+                       boolean control,
+                       boolean alt)
+
+
clickAt is called when a click has occurred +

+

+
+
+
+
Parameters:
p - the point in component coordinates
clickCount - the click count
shift - is shift down?
control - is control down?
alt - is alt down?
+
+
+
+ +

+getHoveredStone

+
+protected Stone getHoveredStone()
+
+
Returns the stone the mouse pointer is hovering over +

+

+
+
+
+ +
Returns:
the hovered stone
+
+
+
+ +

+handleOtherClickEvent

+
+protected boolean handleOtherClickEvent(Position pos)
+
+
Overwrite this method to signal if special zone was clicked +

+

+
+
+
+
Parameters:
pos - the clicked position +
Returns:
special zone clicked
+
+
+
+ +

+handleOtherMoveEvent

+
+protected void handleOtherMoveEvent(Position pos)
+
+
Overwrite this method to signal if special zone was hovered +

+

+
+
+
+
Parameters:
pos - the hovered position
+
+
+
+ +

+setStones

+
+protected void setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
+
Sets the list of stones that can be clicked on +

+

+
+
+
+
Parameters:
stones - the stones and positions
+
+
+
+ +

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

+getStones

+
+protected java.lang.Iterable<Pair<Stone,Position>> getStones()
+
+
Returns the list of stones and positions currently set +

+

+
+
+
+ +
Returns:
the stones
+
+
+
+ +

+getClickEvent

+
+public Event1<Position> getClickEvent()
+
+
Description copied from interface: IClickable
+
the click event is emitted when the player clicks on the table/hand/etc. +

+

+
Specified by:
getClickEvent in interface IClickable
+
+
+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+
+ +

+getStoneClickEvent

+
+public Event2<Stone,java.lang.Boolean> getStoneClickEvent()
+
+
Description copied from interface: IStonePanel
+
the click event is emitted when the player clicks on the table/hand/etc. +

+

+
Specified by:
getStoneClickEvent in interface IStonePanel
+
+
+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+
+ +

+getRangeClickEvent

+
+public Event2<Stone,java.lang.Boolean> getRangeClickEvent()
+
+
Description copied from interface: IStonePanel
+
the range click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a range instead of a single stone +

+

+
Specified by:
getRangeClickEvent in interface IStonePanel
+
+
+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+
+ +

+getSetClickEvent

+
+public Event2<Stone,java.lang.Boolean> getSetClickEvent()
+
+
Description copied from interface: IStonePanel
+
the set click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a whole set instead of a single stone +

+

+
Specified by:
getSetClickEvent in interface IStonePanel
+
+
+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/HandPanel.html b/doc/jrummikub/view/impl/HandPanel.html new file mode 100644 index 0000000..9fc0c2f --- /dev/null +++ b/doc/jrummikub/view/impl/HandPanel.html @@ -0,0 +1,516 @@ + + + + + + +HandPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class HandPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.AbstractStonePanel
+                      extended by jrummikub.view.impl.HandPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IClickable, IHandPanel, IStonePanel
+
+
+
+
 class HandPanel
extends AbstractStonePanel
implements IHandPanel
+ + +

+Implementation of the board +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
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.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
HandPanel() + +
+          Creates a new Board instance
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidpaintComponent(java.awt.Graphics g1) + +
+           
+ voidsetHandHeight(int height) + +
+          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
+(package private)  voidsetSelectedStones(java.util.Collection<Stone> stones) + +
+          Sets the stones that are to be painted selected
+ voidsetStones(java.lang.Iterable<Pair<Stone,Position>> stones) + +
+          Sets the list of stones that can be clicked on
+ + + + + + + +
Methods inherited from class jrummikub.view.impl.AbstractStonePanel
clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, getTranslation, handleOtherClickEvent, handleOtherMoveEvent
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, 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 jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+ + + + + + + +
Methods inherited from interface jrummikub.view.IClickable
getClickEvent
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+HandPanel

+
+HandPanel()
+
+
Creates a new Board instance +

+

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

+setHandWidth

+
+public void setHandWidth(int width)
+
+
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
+
+
+
+ +

+paintComponent

+
+protected void paintComponent(java.awt.Graphics g1)
+
+
+
Overrides:
paintComponent in class javax.swing.JComponent
+
+
+
+
+
+
+ +

+setStones

+
+public void setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
+
Description copied from class: AbstractStonePanel
+
Sets the list of stones that can be clicked on +

+

+
Specified by:
setStones in interface IHandPanel
Overrides:
setStones in class AbstractStonePanel
+
+
+
Parameters:
stones - the stones and positions
+
+
+
+ +

+setSelectedStones

+
+void setSelectedStones(java.util.Collection<Stone> stones)
+
+
Sets the stones that are to be painted selected +

+

+
+
+
+
Parameters:
stones - the selected stones
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/PlayerPanel.html b/doc/jrummikub/view/impl/PlayerPanel.html new file mode 100644 index 0000000..ee9ab4e --- /dev/null +++ b/doc/jrummikub/view/impl/PlayerPanel.html @@ -0,0 +1,521 @@ + + + + + + +PlayerPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class PlayerPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.PlayerPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IPlayerPanel
+
+
+
+
 class PlayerPanel
extends javax.swing.JPanel
implements IPlayerPanel
+ + +

+Implementation of the player panel +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
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.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
PlayerPanel() + +
+          Creates a new PlayerPanel instance
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IEventgetEndTurnEvent() + +
+          The end turn event is emitted when the player wants to end his turn
+ HandPanelgetHandPanel() + +
+           
+ IEventgetSortByGroupsEvent() + +
+          The sort by groups event is emitted when the player wants to sort his + stones by groups
+ IEventgetSortByRunsEvent() + +
+          The sort by runs event is emitted when the player wants to sort his stones + by runs
+(package private)  voidsetCurrentPlayerName(java.lang.String playerName) + +
+          Sets the current player name
+ voidsetTimeLeft(int time) + +
+          Sets the time the player has left for his turn
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PlayerPanel

+
+PlayerPanel()
+
+
Creates a new PlayerPanel instance +

+

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

+getHandPanel

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

+setCurrentPlayerName

+
+void setCurrentPlayerName(java.lang.String playerName)
+
+
Sets the current player name +

+

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

+setTimeLeft

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

+

+
Specified by:
setTimeLeft in interface IPlayerPanel
+
+
+
Parameters:
time - the time left
+
+
+
+ +

+getSortByGroupsEvent

+
+public IEvent getSortByGroupsEvent()
+
+
Description copied from interface: IPlayerPanel
+
The sort by groups event is emitted when the player wants to sort his + stones by groups +

+

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

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

+

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

+getEndTurnEvent

+
+public IEvent getEndTurnEvent()
+
+
Description copied from interface: IPlayerPanel
+
The end turn event is emitted when the player wants to end his turn +

+

+
Specified by:
getEndTurnEvent in interface IPlayerPanel
+
+
+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/StartTurnPanel.html b/doc/jrummikub/view/impl/StartTurnPanel.html new file mode 100644 index 0000000..1de5d67 --- /dev/null +++ b/doc/jrummikub/view/impl/StartTurnPanel.html @@ -0,0 +1,412 @@ + + + + + + +StartTurnPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class StartTurnPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.StartTurnPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
+
+
+
+
 class StartTurnPanel
extends javax.swing.JPanel
+ + +

+A panel that is displayed before a player's turn +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
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.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
StartTurnPanel() + +
+          Creates a new StartTurnPanel
+  + + + + + + + + + + + + + + + +
+Method Summary
+(package private)  IEventgetStartTurnEvent() + +
+          The start turn event is emitted when the current player has clicked the + start turn button
+(package private)  voidsetCurrentPlayerName(java.lang.String playerName) + +
+          Sets the current player name
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StartTurnPanel

+
+StartTurnPanel()
+
+
Creates a new StartTurnPanel +

+

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

+setCurrentPlayerName

+
+void setCurrentPlayerName(java.lang.String playerName)
+
+
Sets the current player name +

+

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

+getStartTurnEvent

+
+IEvent getStartTurnEvent()
+
+
The start turn event is emitted when the current player has clicked the + start turn button +

+

+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/StoneCollectionPanel.html b/doc/jrummikub/view/impl/StoneCollectionPanel.html new file mode 100644 index 0000000..cb2d49e --- /dev/null +++ b/doc/jrummikub/view/impl/StoneCollectionPanel.html @@ -0,0 +1,513 @@ + + + + + + +StoneCollectionPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class StoneCollectionPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.AbstractStonePanel
+                      extended by jrummikub.view.impl.StoneCollectionPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IClickable, IStoneCollectionPanel, IStonePanel
+
+
+
+
 class StoneCollectionPanel
extends AbstractStonePanel
implements IStoneCollectionPanel
+ + +

+Implementation of the stone collection (selection) +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
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.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
StoneCollectionPanel() + +
+          Creates a new StoneCollection instance
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+(package private)  IEvent1<java.awt.Point>getOtherClickEvent() + +
+          The other click event is emitted by the stone collection when the player + has clicked on it, but hasn't hit a stone.
+protected  Pair<java.lang.Integer,java.lang.Integer>getTranslation() + +
+          Returns the translation in pixels the stones in this panel are painted with
+protected  booleanhandleOtherClickEvent(Position pos) + +
+          Overwrite this method to signal if special zone was clicked
+ voidpaintComponent(java.awt.Graphics g1) + +
+           
+(package private)  voidsetSelectedStones(java.util.Collection<Stone> selectedStones) + +
+          Sets the stones to be shown in the collection
+ + + + + + + +
Methods inherited from class jrummikub.view.impl.AbstractStonePanel
clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, handleOtherMoveEvent, setStones
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, 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 jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StoneCollectionPanel

+
+StoneCollectionPanel()
+
+
Creates a new StoneCollection instance +

+

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

+setSelectedStones

+
+void setSelectedStones(java.util.Collection<Stone> selectedStones)
+
+
Sets the stones to be shown in the collection +

+

+
+
+
+
Parameters:
selectedStones - the selected stones
+
+
+
+ +

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

+

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

+getOtherClickEvent

+
+IEvent1<java.awt.Point> getOtherClickEvent()
+
+
The other click event is emitted by the stone collection when the player + has clicked on it, but hasn't hit a stone. This is rather probable as the + stone collection panel is filling the whole table width while being mostly + invisible. +

+

+
+
+
+ +
Returns:
the event
+
+
+
+ +

+handleOtherClickEvent

+
+protected boolean handleOtherClickEvent(Position pos)
+
+
Description copied from class: AbstractStonePanel
+
Overwrite this method to signal if special zone was clicked +

+

+
Overrides:
handleOtherClickEvent in class AbstractStonePanel
+
+
+
Parameters:
pos - the clicked position +
Returns:
special zone clicked
+
+
+
+ +

+paintComponent

+
+public void paintComponent(java.awt.Graphics g1)
+
+
+
Overrides:
paintComponent in class javax.swing.JComponent
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/StonePainter.html b/doc/jrummikub/view/impl/StonePainter.html new file mode 100644 index 0000000..36669ce --- /dev/null +++ b/doc/jrummikub/view/impl/StonePainter.html @@ -0,0 +1,410 @@ + + + + + + +StonePainter + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class StonePainter

+
+java.lang.Object
+  extended by jrummikub.view.impl.StonePainter
+
+
+
+
 class StonePainter
extends java.lang.Object
+ + +

+The StonePainter paints stones and converts between pixel and grid + coordinates +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static floatHEIGHT_SCALE + +
+          The height of one pixel in the scale of 1.0
+static floatWIDTH_SCALE + +
+          The width of one pixel in the scale of 1.0
+  + + + + + + + + + + +
+Constructor Summary
StonePainter(float scale) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ PositioncalculatePosition(int x, + int y) + +
+           
+ intgetStoneHeight() + +
+           
+ intgetStoneWidth() + +
+           
+ voidpaintStone(java.awt.Graphics2D g, + Stone stone, + Position p, + boolean selected, + boolean hovered) + +
+          Paints a stone
+ voidsetScale(float scale) + +
+          Sets the new grid scale
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+WIDTH_SCALE

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

+

+
See Also:
Constant Field Values
+
+
+ +

+HEIGHT_SCALE

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

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+StonePainter

+
+StonePainter(float scale)
+
+
+
Parameters:
scale - the scaling factor for the grid coordinates
+
+ + + + + + + + +
+Method Detail
+ +

+setScale

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

+

+
Parameters:
scale - the new scale
+
+
+
+ +

+calculatePosition

+
+public Position calculatePosition(int x,
+                                  int y)
+
+
+
Parameters:
x - x position in screen coordinates
y - y position in screen coordinates +
Returns:
position in grid coordinates
+
+
+
+ +

+getStoneWidth

+
+public int getStoneWidth()
+
+
+ +
Returns:
the width of a stone in the current scale in pixels
+
+
+
+ +

+getStoneHeight

+
+public int getStoneHeight()
+
+
+ +
Returns:
the height of a stone in the current scale in pixels
+
+
+
+ +

+paintStone

+
+public void paintStone(java.awt.Graphics2D g,
+                       Stone stone,
+                       Position p,
+                       boolean selected,
+                       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
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/TablePanel.html b/doc/jrummikub/view/impl/TablePanel.html new file mode 100644 index 0000000..f4eaa8a --- /dev/null +++ b/doc/jrummikub/view/impl/TablePanel.html @@ -0,0 +1,702 @@ + + + + + + +TablePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class TablePanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.AbstractStonePanel
+                      extended by jrummikub.view.impl.TablePanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IClickable, IStonePanel, ITablePanel
+
+
+
+
 class TablePanel
extends AbstractStonePanel
implements ITablePanel
+ + +

+The implementation of the table +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
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.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
TablePanel() + +
+          Creates a new Table instance
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Event1<StoneSet>getLeftConnectorClickEvent() + +
+          the left connector click event is emitted when the player clicks on a left + connector of a stone set on the table .
+ Event1<StoneSet>getRightConnectorClickEvent() + +
+          the right connector click event is emitted when the player clicks on a + right connector of a stone set on the table .
+ IStoneCollectionPanelgetStoneCollectionPanel() + +
+          Returns the stone collection (the panel showing the stones currently + selected)
+protected  Pair<java.lang.Integer,java.lang.Integer>getTranslation() + +
+          Returns the translation in pixels the stones in this panel are painted with
+protected  booleanhandleOtherClickEvent(Position pos) + +
+          Overwrite this method to signal if special zone was clicked
+protected  voidhandleOtherMoveEvent(Position pos) + +
+          Overwrite this method to signal if special zone was hovered
+protected  voidpaintComponent(java.awt.Graphics g1) + +
+           
+ voidsetLeftPlayerName(java.lang.String playerName) + +
+          Sets the player name on the left label
+ voidsetRightPlayerName(java.lang.String playerName) + +
+          Sets the player name on the right label
+(package private)  voidsetSelectedStones(java.util.Collection<Stone> stones) + +
+          Sets the currently selected stones
+ voidsetStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets) + +
+          Sets the stone sets lying on the table
+ voidsetTopPlayerName(java.lang.String playerName) + +
+          Sets the player name on the top label
+ + + + + + + +
Methods inherited from class jrummikub.view.impl.AbstractStonePanel
clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, setStones
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, 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 jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+ + + + + + + +
Methods inherited from interface jrummikub.view.IClickable
getClickEvent
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TablePanel

+
+TablePanel()
+
+
Creates a new Table instance +

+

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

+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

+
+public Event1<StoneSet> getLeftConnectorClickEvent()
+
+
Description copied from interface: ITablePanel
+
the left connector click event is emitted when the player clicks on a left + connector of a stone set on the table . +

+

+
Specified by:
getLeftConnectorClickEvent in interface ITablePanel
+
+
+ +
Returns:
the event
+
+
+
+ +

+getRightConnectorClickEvent

+
+public Event1<StoneSet> getRightConnectorClickEvent()
+
+
Description copied from interface: ITablePanel
+
the right connector click event is emitted when the player clicks on a + right connector of a stone set on the table . +

+

+
Specified by:
getRightConnectorClickEvent in interface ITablePanel
+
+
+ +
Returns:
the event
+
+
+
+ +

+setStoneSets

+
+public void setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
+
Description copied from interface: ITablePanel
+
Sets the stone sets lying on the table +

+

+
Specified by:
setStoneSets in interface ITablePanel
+
+
+
Parameters:
stoneSets - set stone sets on the table
+
+
+
+ +

+getStoneCollectionPanel

+
+public IStoneCollectionPanel getStoneCollectionPanel()
+
+
Description copied from interface: ITablePanel
+
Returns the stone collection (the panel showing the stones currently + selected) +

+

+
Specified by:
getStoneCollectionPanel in interface ITablePanel
+
+
+ +
Returns:
the stone collection
+
+
+
+ +

+setSelectedStones

+
+void setSelectedStones(java.util.Collection<Stone> stones)
+
+
Sets the currently selected stones +

+

+
+
+
+
Parameters:
stones - the selected stones
+
+
+
+ +

+handleOtherClickEvent

+
+protected boolean handleOtherClickEvent(Position pos)
+
+
Description copied from class: AbstractStonePanel
+
Overwrite this method to signal if special zone was clicked +

+

+
Overrides:
handleOtherClickEvent in class AbstractStonePanel
+
+
+
Parameters:
pos - the clicked position +
Returns:
special zone clicked
+
+
+
+ +

+handleOtherMoveEvent

+
+protected void handleOtherMoveEvent(Position pos)
+
+
Description copied from class: AbstractStonePanel
+
Overwrite this method to signal if special zone was hovered +

+

+
Overrides:
handleOtherMoveEvent in class AbstractStonePanel
+
+
+
Parameters:
pos - the hovered position
+
+
+
+ +

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

+

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

+paintComponent

+
+protected void paintComponent(java.awt.Graphics g1)
+
+
+
Overrides:
paintComponent in class javax.swing.JComponent
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/View.html b/doc/jrummikub/view/impl/View.html new file mode 100644 index 0000000..7d0e5f8 --- /dev/null +++ b/doc/jrummikub/view/impl/View.html @@ -0,0 +1,646 @@ + + + + + + +View + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class View

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by java.awt.Window
+              extended by java.awt.Frame
+                  extended by javax.swing.JFrame
+                      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, IView
+
+
+
+
public class View
extends javax.swing.JFrame
implements IView
+ + +

+Implementation of the top-level view interface +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+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.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
+ + + + + + + +
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
View() + +
+          Create a new instance of the view
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidenableStartTurnPanel(boolean enable) + +
+          Enables or disables the player's StartTurnPanel
+ voidenableWinPanel(boolean enable) + +
+          Enables or disables the panel shown when a player has won
+ IEventgetNewGameEvent() + +
+          The new game event is emitted when the player wants to start a new game
+ IPlayerPanelgetPlayerPanel() + +
+          Returns the player panel
+ IEventgetQuitEvent() + +
+          The quit event is emitted when the player wants to quit the game
+ IEventgetStartTurnEvent() + +
+          The start turn event is emitted when the player wants to start his turn
+ ITablePanelgetTablePanel() + +
+          Returns the table
+ voidsetCurrentPlayerName(java.lang.String playerName) + +
+          Sets the current player's name
+ voidsetSelectedStones(java.util.Collection<Stone> stones) + +
+          Sets the stones that are to be painted selected
+ + + + + + + +
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
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+View

+
+public View()
+
+
Create a new instance of the view +

+

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

+getTablePanel

+
+public ITablePanel getTablePanel()
+
+
Description copied from interface: IView
+
Returns the table +

+

+
Specified by:
getTablePanel in interface IView
+
+
+ +
Returns:
the table
+
+
+
+ +

+getPlayerPanel

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

+

+
Specified by:
getPlayerPanel in interface IView
+
+
+ +
Returns:
the playerPanel
+
+
+
+ +

+setSelectedStones

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

+

+
Specified by:
setSelectedStones in interface IView
+
+
+
Parameters:
stones - the stones to be painted selected
+
+
+
+ +

+enableStartTurnPanel

+
+public void enableStartTurnPanel(boolean enable)
+
+
Description copied from interface: IView
+
Enables or disables the player's StartTurnPanel +

+

+
Specified by:
enableStartTurnPanel in interface IView
+
+
+
Parameters:
enable - enable/disable
+
+
+
+ +

+enableWinPanel

+
+public void enableWinPanel(boolean enable)
+
+
Description copied from interface: IView
+
Enables or disables the panel shown when a player has won +

+

+
Specified by:
enableWinPanel in interface IView
+
+
+
Parameters:
enable - enable/disable
+
+
+
+ +

+setCurrentPlayerName

+
+public void setCurrentPlayerName(java.lang.String playerName)
+
+
Description copied from interface: IView
+
Sets the current player's name +

+

+
Specified by:
setCurrentPlayerName in interface IView
+
+
+
Parameters:
playerName - the player name
+
+
+
+ +

+getStartTurnEvent

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

+

+
Specified by:
getStartTurnEvent in interface IView
+
+
+ +
Returns:
the event
+
+
+
+ +

+getNewGameEvent

+
+public IEvent getNewGameEvent()
+
+
Description copied from interface: IView
+
The new game event is emitted when the player wants to start a new game +

+

+
Specified by:
getNewGameEvent in interface IView
+
+
+ +
Returns:
the event
+
+
+
+ +

+getQuitEvent

+
+public IEvent getQuitEvent()
+
+
Description copied from interface: IView
+
The quit event is emitted when the player wants to quit the game +

+

+
Specified by:
getQuitEvent in interface IView
+
+
+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/WinPanel.html b/doc/jrummikub/view/impl/WinPanel.html new file mode 100644 index 0000000..cc701d8 --- /dev/null +++ b/doc/jrummikub/view/impl/WinPanel.html @@ -0,0 +1,432 @@ + + + + + + +WinPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class WinPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.WinPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
+
+
+
+
 class WinPanel
extends javax.swing.JPanel
+ + +

+A panel that is displayed when a player has won +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
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.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
WinPanel() + +
+          Creates a new WinPanel
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+(package private)  IEventgetNewGameEvent() + +
+          The new game event is emitted when the player wants to start a new game
+(package private)  IEventgetQuitEvent() + +
+          The quit event is emitted when the player wants to quit the program
+(package private)  voidsetCurrentPlayerName(java.lang.String name) + +
+          Sets the name of the current player
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+WinPanel

+
+WinPanel()
+
+
Creates a new WinPanel +

+

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

+setCurrentPlayerName

+
+void setCurrentPlayerName(java.lang.String name)
+
+
Sets the name of the current player +

+

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

+getNewGameEvent

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

+

+ +
Returns:
the event
+
+
+
+ +

+getQuitEvent

+
+IEvent getQuitEvent()
+
+
The quit event is emitted when the player wants to quit the program +

+

+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html b/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html new file mode 100644 index 0000000..bd33100 --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html @@ -0,0 +1,196 @@ + + + + + + +Uses of Class jrummikub.view.impl.AbstractStonePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.AbstractStonePanel

+
+ + + + + + + + + +
+Packages that use AbstractStonePanel
jrummikub.view.impl  
+  +

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

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractStonePanel in jrummikub.view.impl
+(package private)  classHandPanel + +
+          Implementation of the board
+(package private)  classStoneCollectionPanel + +
+          Implementation of the stone collection (selection)
+(package private)  classTablePanel + +
+          The implementation of the table
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/HandPanel.html b/doc/jrummikub/view/impl/class-use/HandPanel.html new file mode 100644 index 0000000..4ad35e3 --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/HandPanel.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class jrummikub.view.impl.HandPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.HandPanel

+
+ + + + + + + + + +
+Packages that use HandPanel
jrummikub.view.impl  
+  +

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

+ + + + + + + + + +
Methods in jrummikub.view.impl that return HandPanel
+ HandPanelPlayerPanel.getHandPanel() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/PlayerPanel.html b/doc/jrummikub/view/impl/class-use/PlayerPanel.html new file mode 100644 index 0000000..795ee8a --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/PlayerPanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.PlayerPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.PlayerPanel

+
+No usage of jrummikub.view.impl.PlayerPanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/StartTurnPanel.html b/doc/jrummikub/view/impl/class-use/StartTurnPanel.html new file mode 100644 index 0000000..22c81a1 --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/StartTurnPanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.StartTurnPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.StartTurnPanel

+
+No usage of jrummikub.view.impl.StartTurnPanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html b/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html new file mode 100644 index 0000000..16c17ca --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.StoneCollectionPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.StoneCollectionPanel

+
+No usage of jrummikub.view.impl.StoneCollectionPanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/StonePainter.html b/doc/jrummikub/view/impl/class-use/StonePainter.html new file mode 100644 index 0000000..51ed4ae --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/StonePainter.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class jrummikub.view.impl.StonePainter + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.StonePainter

+
+ + + + + + + + + +
+Packages that use StonePainter
jrummikub.view.impl  
+  +

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

+ + + + + + + + + +
Methods in jrummikub.view.impl that return StonePainter
+protected  StonePainterAbstractStonePanel.getStonePainter() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/TablePanel.html b/doc/jrummikub/view/impl/class-use/TablePanel.html new file mode 100644 index 0000000..f9d57be --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/TablePanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.TablePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.TablePanel

+
+No usage of jrummikub.view.impl.TablePanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/View.html b/doc/jrummikub/view/impl/class-use/View.html new file mode 100644 index 0000000..e12e048 --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/View.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.View + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.View

+
+No usage of jrummikub.view.impl.View +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/WinPanel.html b/doc/jrummikub/view/impl/class-use/WinPanel.html new file mode 100644 index 0000000..ee28a3a --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/WinPanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.WinPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.WinPanel

+
+No usage of jrummikub.view.impl.WinPanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/package-frame.html b/doc/jrummikub/view/impl/package-frame.html new file mode 100644 index 0000000..4f17fb6 --- /dev/null +++ b/doc/jrummikub/view/impl/package-frame.html @@ -0,0 +1,48 @@ + + + + + + +jrummikub.view.impl + + + + + + + + + + + +jrummikub.view.impl + + + + +
+Classes  + +
+AbstractStonePanel +
+HandPanel +
+PlayerPanel +
+StartTurnPanel +
+StoneCollectionPanel +
+StonePainter +
+TablePanel +
+View +
+WinPanel
+ + + + diff --git a/doc/jrummikub/view/impl/package-summary.html b/doc/jrummikub/view/impl/package-summary.html new file mode 100644 index 0000000..5908ea3 --- /dev/null +++ b/doc/jrummikub/view/impl/package-summary.html @@ -0,0 +1,190 @@ + + + + + + +jrummikub.view.impl + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package jrummikub.view.impl +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractStonePanelBase class for panels that draw stones
HandPanelImplementation of the board
PlayerPanelImplementation of the player panel
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
ViewImplementation of the top-level view interface
WinPanelA panel that is displayed when a player has won
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/package-tree.html b/doc/jrummikub/view/impl/package-tree.html new file mode 100644 index 0000000..94b6db8 --- /dev/null +++ b/doc/jrummikub/view/impl/package-tree.html @@ -0,0 +1,181 @@ + + + + + + +jrummikub.view.impl Class Hierarchy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package jrummikub.view.impl +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/package-use.html b/doc/jrummikub/view/impl/package-use.html new file mode 100644 index 0000000..2c2e4f0 --- /dev/null +++ b/doc/jrummikub/view/impl/package-use.html @@ -0,0 +1,183 @@ + + + + + + +Uses of Package jrummikub.view.impl + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
jrummikub.view.impl

+
+ + + + + + + + + +
+Packages that use jrummikub.view.impl
jrummikub.view.impl  
+  +

+ + + + + + + + + + + + + + +
+Classes in jrummikub.view.impl used by jrummikub.view.impl
AbstractStonePanel + +
+          Base class for panels that draw stones
HandPanel + +
+          Implementation of the board
StonePainter + +
+          The StonePainter paints stones and converts between pixel and grid + coordinates
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/package-frame.html b/doc/jrummikub/view/package-frame.html new file mode 100644 index 0000000..96e1317 --- /dev/null +++ b/doc/jrummikub/view/package-frame.html @@ -0,0 +1,44 @@ + + + + + + +jrummikub.view + + + + + + + + + + + +jrummikub.view + + + + +
+Interfaces  + +
+IClickable +
+IHandPanel +
+IPlayerPanel +
+IStoneCollectionPanel +
+IStonePanel +
+ITablePanel +
+IView
+ + + + diff --git a/doc/jrummikub/view/package-summary.html b/doc/jrummikub/view/package-summary.html new file mode 100644 index 0000000..a8909f7 --- /dev/null +++ b/doc/jrummikub/view/package-summary.html @@ -0,0 +1,181 @@ + + + + + + +jrummikub.view + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package jrummikub.view +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
IClickableAn interface for view elements that can emit click events
IHandPanelThe view for a player's hand that displays his stones
IPlayerPanelThe player panel that contains a player's board and other user interfaces
IStoneCollectionPanelThe view of the collection that shows the stones a player has selected
IStonePanelAn interface for view elements that can emit click events for clicks on stones
ITablePanelThe view of the table, where the stone sets lie
IViewThe top-level view interface
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/package-tree.html b/doc/jrummikub/view/package-tree.html new file mode 100644 index 0000000..23ea0e2 --- /dev/null +++ b/doc/jrummikub/view/package-tree.html @@ -0,0 +1,159 @@ + + + + + + +jrummikub.view Class Hierarchy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package jrummikub.view +

+
+
+
Package Hierarchies:
All Packages
+
+

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/package-use.html b/doc/jrummikub/view/package-use.html new file mode 100644 index 0000000..59bae37 --- /dev/null +++ b/doc/jrummikub/view/package-use.html @@ -0,0 +1,274 @@ + + + + + + +Uses of Package jrummikub.view + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
jrummikub.view

+
+ + + + + + + + + + + + + + + + + +
+Packages that use jrummikub.view
jrummikub.control  
jrummikub.view  
jrummikub.view.impl  
+  +

+ + + + + + + + +
+Classes in jrummikub.view used by jrummikub.control
IView + +
+          The top-level view interface
+  +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Classes in jrummikub.view used by jrummikub.view
IClickable + +
+          An interface for view elements that can emit click events
IHandPanel + +
+          The view for a player's hand that displays his stones
IPlayerPanel + +
+          The player panel that contains a player's board and other user interfaces
IStoneCollectionPanel + +
+          The view of the collection that shows the stones a player has selected
IStonePanel + +
+          An interface for view elements that can emit click events for clicks on stones
ITablePanel + +
+          The view of the table, where the stone sets lie
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in jrummikub.view used by jrummikub.view.impl
IClickable + +
+          An interface for view elements that can emit click events
IHandPanel + +
+          The view for a player's hand that displays his stones
IPlayerPanel + +
+          The player panel that contains a player's board and other user interfaces
IStoneCollectionPanel + +
+          The view of the collection that shows the stones a player has selected
IStonePanel + +
+          An interface for view elements that can emit click events for clicks on stones
ITablePanel + +
+          The view of the table, where the stone sets lie
IView + +
+          The top-level view interface
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3