diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html new file mode 100644 index 0000000..78d2bc2 --- /dev/null +++ b/doc/allclasses-frame.html @@ -0,0 +1,133 @@ + + + +
+ +AbstractStonePanel
+ +Connection + +Event + +Event1 + +Event2 + +GameControl + +GameState + +Hand + +HandPanel + +IClickable + +IEvent + +IEvent1 + +IEvent2 + +IGameState + +IHand + +IHandPanel + +IListener + +IListener1 + +IListener2 + +IPlayer + +IPlayerPanel + +IStoneCollectionPanel + +IStonePanel + +IStoneTray + +ITable + +ITablePanel + +ITurnTimer + +IView + +JRummikub + +Pair + +Player + +PlayerPanel + +Position + +RoundControl + +Sizeable + +StartTurnPanel + +Stone + +StoneCollectionPanel + +StoneColor + +StoneHeap + +StonePainter + +StoneSet + +StoneSet.Type + +StoneTray + +StoneTray.Direction + +Table + +TablePanel + +TurnControl + +TurnControl.HandStonePositionComparator + +TurnTimer + +View + +WinPanel + + |
+
AbstractStonePanel
+ +Connection + +Event + +Event1 + +Event2 + +GameControl + +GameState + +Hand + +HandPanel + +IClickable + +IEvent + +IEvent1 + +IEvent2 + +IGameState + +IHand + +IHandPanel + +IListener + +IListener1 + +IListener2 + +IPlayer + +IPlayerPanel + +IStoneCollectionPanel + +IStonePanel + +IStoneTray + +ITable + +ITablePanel + +ITurnTimer + +IView + +JRummikub + +Pair + +Player + +PlayerPanel + +Position + +RoundControl + +Sizeable + +StartTurnPanel + +Stone + +StoneCollectionPanel + +StoneColor + +StoneHeap + +StonePainter + +StoneSet + +StoneSet.Type + +StoneTray + +StoneTray.Direction + +Table + +TablePanel + +TurnControl + +TurnControl.HandStonePositionComparator + +TurnTimer + +View + +WinPanel + + |
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+jrummikub.model.* | +
---|
+ +
jrummikub.model.Hand | +||
---|---|---|
+public static final int |
+HEIGHT |
+2 |
+
+public static final int |
+WIDTH |
+14 |
+
+ +
+ +
jrummikub.model.StoneSet | +||
---|---|---|
+static final float |
+HORIZONTAL_BORDER |
+0.125f |
+
+static final float |
+VERTICAL_BORDER |
+0.5f |
+
+ +
+jrummikub.view.* | +
---|
+ +
jrummikub.view.impl.jrummikub.view.impl.StonePainter | +||
---|---|---|
+public static final float |
+HEIGHT_SCALE |
+0.01875000074505806f |
+
+public static final float |
+WIDTH_SCALE |
+0.02500000037252903f |
+
+ +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object
. The interfaces do not inherit fromjava.lang.Object
.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
Player
in the list
+
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
Stone
from the Table
+Stone
from the Table
+Stone
Position class to determine positions on Table
or
+ Hand
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
Table
+Position
and returns two new
+ Stone Sets
+Stone
s for a game, manages them and allows
+ players to draw one or more random Stones.Stone
s joined together to form setsStone
s
+ or StoneSet
s.
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
Stone
s on the game-Table
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
Stone
from the heap and returns it
+Stone
s from the heap and returns them
+
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
StoneSet
containing the given Stone
+
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
Table
+
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
Player
's Stone
s
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
GameState
modelHand
modelPlayer
modelStoneTray
modelStoneSet
+StoneSet
+Table
modelTurnTimer
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.JRummikub +
public class JRummikub
+The main class +
+ +
+
+Constructor Summary | +|
---|---|
JRummikub()
+
++ |
+
+Method Summary | +|
---|---|
+static void |
+main(java.lang.String[] args)
+
++ The main method |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public JRummikub()+
+Method Detail | +
---|
+public static void main(java.lang.String[] args)+
+
args
- command line arguments
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.control.GameControl +
public class GameControl
+Controls a Game, at some point including all Rounds, starts new Rounds +
+ +
+
+Constructor Summary | +|
---|---|
GameControl(IView view)
+
++ Constructor |
+
+Method Summary | +|
---|---|
+ void |
+startGame()
+
++ Game gets started by initializing the first Round |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public GameControl(IView view)+
+
view
- the view+Method Detail | +
---|
+public void startGame()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface ITurnTimer
+Interface for the TurnTimer
+
+ +
+
+Method Summary | +|
---|---|
+ IEvent |
+getTimeRunOutEvent()
+
++ Returns the event that is emitted if the timer timed out. |
+
+ void |
+startTimer()
+
++ Starts the timer |
+
+ void |
+stopTimer()
+
++ Stops the timer. |
+
+Method Detail | +
---|
+void startTimer()+
+
+void stopTimer()+
+
+IEvent getTimeRunOutEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.control.RoundControl +
public class RoundControl
+Controller that manages a single round of rummikub +
+ +
+
+Constructor Summary | +|
---|---|
RoundControl(IGameState gameState,
+ IView view)
+
++ Create a new RoundControl using the given gameState and view |
+
+Method Summary | +|
---|---|
+(package private) void |
+deal()
+
++ |
+
+(package private) void |
+dealStone()
+
++ |
+
+ IEvent |
+getEndRoundEvent()
+
++ End the round |
+
+ void |
+startRound()
+
++ Begin the round |
+
+(package private) static java.util.Set<Stone> |
+tableDifference(ITable oldTable,
+ ITable newTable)
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public RoundControl(IGameState gameState, + IView view)+
+
gameState
- initial game stateview
- view used for user interaction+Method Detail | +
---|
+public IEvent getEndRoundEvent()+
+
+public void startRound()+
+
+void deal()+
+static java.util.Set<Stone> tableDifference(ITable oldTable, + ITable newTable)+
+void dealStone()+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.control.TurnControl.HandStonePositionComparator +
static class TurnControl.HandStonePositionComparator
+
+Constructor Summary | +|
---|---|
TurnControl.HandStonePositionComparator()
+
++ |
+
+Method Summary | +|
---|---|
+ int |
+compare(Pair<Stone,Position> pair1,
+ Pair<Stone,Position> pair2)
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
Methods inherited from interface java.util.Comparator | +
---|
equals |
+
+Constructor Detail | +
---|
+TurnControl.HandStonePositionComparator()+
+Method Detail | +
---|
+public int compare(Pair<Stone,Position> pair1, + Pair<Stone,Position> pair2)+
compare
in interface java.util.Comparator<Pair<Stone,Position>>
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.control.TurnControl +
public class TurnControl
+Controller for a single turn made by a human player +
+ +
+
+Nested Class Summary | +|
---|---|
+(package private) static class |
+TurnControl.HandStonePositionComparator
+
++ |
+
+Constructor Summary | +|
---|---|
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 |
+
+Method Summary | +|
---|---|
+ IEvent |
+getEndOfTurnEvent()
+
++ Get the event that is emitted when the turn is over |
+
+ void |
+startTurn()
+
++ Start the turn |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public TurnControl(IHand hand, + ITable table, + IView view)+
+
hand
- active player's handtable
- current tableview
- view for user interaction.+TurnControl(IHand hand, + ITable table, + IView view, + ITurnTimer testTimer)+
+
+Method Detail | +
---|
+public void startTurn()+
+
+public IEvent getEndOfTurnEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.control.TurnTimer +
public class TurnTimer
+Count-down timer used to limit the turn time +
+ +
+
+Constructor Summary | +|
---|---|
TurnTimer(IView view)
+
++ Create a new timer using a given view to display the current time left |
+
+Method Summary | +|
---|---|
+ void |
+actionPerformed(java.awt.event.ActionEvent arg0)
+
++ |
+
+ IEvent |
+getTimeRunOutEvent()
+
++ Returns the event that is emitted if the timer timed out. |
+
+ void |
+startTimer()
+
++ Starts the timer |
+
+ void |
+stopTimer()
+
++ Stops the timer. |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public TurnTimer(IView view)+
+
view
- view to display+Method Detail | +
---|
+public void startTimer()+
ITurnTimer
+
startTimer
in interface ITurnTimer
+public void stopTimer()+
ITurnTimer
+
stopTimer
in interface ITurnTimer
+public void actionPerformed(java.awt.event.ActionEvent arg0)+
actionPerformed
in interface java.awt.event.ActionListener
+public IEvent getTimeRunOutEvent()+
ITurnTimer
+
getTimeRunOutEvent
in interface ITurnTimer
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use ITurnTimer | +|
---|---|
jrummikub.control | ++ |
+Uses of ITurnTimer in jrummikub.control | +
---|
+ +
Classes in jrummikub.control that implement ITurnTimer | +|
---|---|
+ class |
+TurnTimer
+
++ Count-down timer used to limit the turn time |
+
+ +
Constructors in jrummikub.control with parameters of type ITurnTimer | +|
---|---|
TurnControl(IHand hand,
+ ITable table,
+ IView view,
+ ITurnTimer testTimer)
+
++ Test only constructor |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Interfaces
+
+ +ITurnTimer |
+
+Classes
+
+ +GameControl + +RoundControl + +TurnControl + +TurnControl.HandStonePositionComparator + +TurnTimer |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Interface Summary | +|
---|---|
ITurnTimer | +Interface for the TurnTimer |
+
+ +
+Class Summary | +|
---|---|
GameControl | +Controls a Game, at some point including all Rounds, starts new Rounds | +
RoundControl | +Controller that manages a single round of rummikub | +
TurnControl | +Controller for a single turn made by a human player | +
TurnControl.HandStonePositionComparator | ++ |
TurnTimer | +Count-down timer used to limit the turn time | +
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use jrummikub.control | +|
---|---|
jrummikub.control | ++ |
+Classes in jrummikub.control used by jrummikub.control | +|
---|---|
ITurnTimer
+
+ + Interface for the TurnTimer |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.GameState +
public class GameState
+Class managing the overall and momentary GameState +
+ +
+
+Constructor Summary | +|
---|---|
GameState()
+
++ Create a new GameState with an empty table and (currently) 4 new players. |
+
+Method Summary | +|
---|---|
+ IPlayer |
+getActivePlayer()
+
++ Returns the currently active player |
+
+ StoneHeap |
+getGameHeap()
+
++ Returns the heap of stones to draw from |
+
+ IPlayer |
+getNthNextPlayer(int i)
+
++ Returns the player that would be the active player after i turns |
+
+ int |
+getPlayerCount()
+
++ Returns the number of players |
+
+ ITable |
+getTable()
+
++ Get the current Table |
+
+ void |
+nextPlayer()
+
++ Changes the activePlayer to the next Player in the list |
+
+ void |
+setTable(ITable table)
+
++ Sets the current Table |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public GameState()+
+
+Method Detail | +
---|
+public ITable getTable()+
IGameState
Table
++
getTable
in interface IGameState
+public void setTable(ITable table)+
IGameState
Table
++
setTable
in interface IGameState
table
- The new Table+public int getPlayerCount()+
IGameState
+
getPlayerCount
in interface IGameState
+public void nextPlayer()+
IGameState
Player
in the list
++
nextPlayer
in interface IGameState
+public IPlayer getNthNextPlayer(int i)+
IGameState
+
getNthNextPlayer
in interface IGameState
i
- number of turns
++public IPlayer getActivePlayer()+
IGameState
+
getActivePlayer
in interface IGameState
+public StoneHeap getGameHeap()+
IGameState
+
getGameHeap
in interface IGameState
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.StoneTray<Stone> +
jrummikub.model.Hand +
public class Hand
+Class managing a Player
's Stone
s
+
+ +
+
+Nested Class Summary | +
---|
Nested classes/interfaces inherited from class jrummikub.model.StoneTray | +
---|
StoneTray.Direction |
+
+Field Summary | +|
---|---|
+static int |
+HEIGHT
+
++ The height of the hand |
+
+static int |
+WIDTH
+
++ The width of the hand |
+
Fields inherited from class jrummikub.model.StoneTray | +
---|
objects |
+
+Constructor Summary | +|
---|---|
Hand()
+
++ |
+
+Method Summary | +|
---|---|
+protected Pair<Position,StoneTray.Direction> |
+fixInvalidDrop(Stone stone,
+ Position pos,
+ StoneTray.Direction dir)
+
++ Checks whether the object may be placed on the given position, computes + new position if not |
+
Methods inherited from class jrummikub.model.StoneTray | +
---|
clone, drop, getPosition, getSize, iterator, pickUp |
+
Methods inherited from class java.lang.Object | +
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
Methods inherited from interface jrummikub.model.IStoneTray | +
---|
clone, drop, getPosition, getSize, pickUp |
+
Methods inherited from interface java.lang.Iterable | +
---|
iterator |
+
+Field Detail | +
---|
+public static final int WIDTH+
+
+public static final int HEIGHT+
+
+Constructor Detail | +
---|
+public Hand()+
+Method Detail | +
---|
+protected Pair<Position,StoneTray.Direction> fixInvalidDrop(Stone stone, + Position pos, + StoneTray.Direction dir)+
StoneTray
+
fixInvalidDrop
in class StoneTray<Stone>
stone
- to be droppedpos
- the object is dropped at
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IGameState
+Interface for GameState
model
+
+ +
+
+Method Summary | +|
---|---|
+ IPlayer |
+getActivePlayer()
+
++ Returns the currently active player |
+
+ StoneHeap |
+getGameHeap()
+
++ Returns the heap of stones to draw from |
+
+ IPlayer |
+getNthNextPlayer(int i)
+
++ Returns the player that would be the active player after i turns |
+
+ int |
+getPlayerCount()
+
++ Returns the number of players |
+
+ ITable |
+getTable()
+
++ Get the current Table |
+
+ void |
+nextPlayer()
+
++ Changes the activePlayer to the next Player in the list |
+
+ void |
+setTable(ITable table)
+
++ Sets the current Table |
+
+Method Detail | +
---|
+ITable getTable()+
Table
++
+void setTable(ITable table)+
Table
++
table
- The new Table+int getPlayerCount()+
+
+void nextPlayer()+
Player
in the list
++
+IPlayer getActivePlayer()+
+
+StoneHeap getGameHeap()+
+
+IPlayer getNthNextPlayer(int i)+
+
i
- number of turns
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IHand
+Interface for the Hand
model
+
+ +
+
+Method Summary | +
---|
Methods inherited from interface jrummikub.model.IStoneTray | +
---|
clone, drop, getPosition, getSize, pickUp |
+
Methods inherited from interface java.lang.Iterable | +
---|
iterator |
+
+ +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IPlayer
+Interface for Player
model
+
+ +
+
+Method Summary | +|
---|---|
+ java.awt.Color |
+getColor()
+
++ Return the player's color |
+
+ IHand |
+getHand()
+
++ Get the current hand of the player |
+
+ java.lang.String |
+getName()
+
++ Return the name of the player |
+
+Method Detail | +
---|
+IHand getHand()+
+
+java.awt.Color getColor()+
+
+java.lang.String getName()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
E
- Objects held by the IStoneTraypublic interface IStoneTray<E extends Sizeable>
+Interface for the StoneTray
model
+
+ +
+
+Method Summary | +|
---|---|
+ IStoneTray<E> |
+clone()
+
++ Create a clone of the StoneTray |
+
+ void |
+drop(E object,
+ Position position)
+
++ Adds object to the tray |
+
+ Position |
+getPosition(E object)
+
++ Returns the position of an object that is already on the tray |
+
+ int |
+getSize()
+
++ Return the number of objects on the tray |
+
+ boolean |
+pickUp(E object)
+
++ Tries to pick up (remove) a given object |
+
Methods inherited from interface java.lang.Iterable | +
---|
iterator |
+
+Method Detail | +
---|
+void drop(E object, + Position position)+
+
object
- object to add to Handposition
- Position
to put the object+Position getPosition(E object)+
+
object
- object whose position is requested
++boolean pickUp(E object)+
+
object
- object to pick up
++IStoneTray<E> clone()+
+
+int getSize()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface ITable
+Interface for the Table
model
+
+ +
+
+Method Summary | +|
---|---|
+ StoneSet |
+findStoneSet(Stone stone)
+
++ Finds the StoneSet containing the given Stone |
+
+ boolean |
+isValid()
+
++ Tests the Table for rule conflicts by checking all the StoneSet |
+
+ void |
+pickUpStone(Stone stone)
+
++ Removes Stone from the Table |
+
Methods inherited from interface jrummikub.model.IStoneTray | +
---|
clone, drop, getPosition, getSize, pickUp |
+
Methods inherited from interface java.lang.Iterable | +
---|
iterator |
+
+Method Detail | +
---|
+void pickUpStone(Stone stone)+
Stone
from the Table
++
stone
- stone to pick up+boolean isValid()+
StoneSet
++
+StoneSet findStoneSet(Stone stone)+
StoneSet
containing the given Stone
++
stone
- stone whose set we're searching
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.Player +
public class Player
+Class managing player data. No methods in release 1 +
+ +
+
+Constructor Summary | +|
---|---|
Player(java.lang.String name,
+ java.awt.Color color)
+
++ Create a new player with a given name and color |
+
+Method Summary | +|
---|---|
+ java.awt.Color |
+getColor()
+
++ Return the player's color |
+
+ IHand |
+getHand()
+
++ Get the current hand of the player |
+
+ java.lang.String |
+getName()
+
++ Return the name of the player |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public Player(java.lang.String name, + java.awt.Color color)+
+
name
- player namecolor
- player's color+Method Detail | +
---|
+public IHand getHand()+
IPlayer
+
getHand
in interface IPlayer
+public java.awt.Color getColor()+
IPlayer
+
getColor
in interface IPlayer
+public java.lang.String getName()+
IPlayer
+
getName
in interface IPlayer
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.Position +
public class Position
+Stone
Position class to determine positions on Table
or
+ Hand
+
+ +
+
+Constructor Summary | +|
---|---|
Position(float x,
+ float y)
+
++ Create a new position by specifying the coordinates |
+
+Method Summary | +|
---|---|
+ boolean |
+equals(java.lang.Object obj)
+
++ |
+
+ float |
+getX()
+
++ Get the x coordinate of the position |
+
+ float |
+getY()
+
++ Get the y coordinate of the position |
+
+ int |
+hashCode()
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
---|
+public Position(float x, + float y)+
+
x
- x coordinatey
- y coordinate+Method Detail | +
---|
+public float getX()+
+
+public float getY()+
+
+public java.lang.String toString()+
toString
in class java.lang.Object
+public boolean equals(java.lang.Object obj)+
equals
in class java.lang.Object
+public int hashCode()+
hashCode
in class java.lang.Object
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface Sizeable
+Objects that have a size. This interface has to be implemented for objects + placed on a @{link StoneTray} to make detection of overlapping objects + possible. +
+ +
+
+Method Summary | +|
---|---|
+ float |
+getHeight()
+
++ Get the height of the object |
+
+ float |
+getWidth()
+
++ Get the width of the object |
+
+Method Detail | +
---|
+float getWidth()+
+
+float getHeight()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.Stone +
public class Stone
+Basic Rummikub Stone +
+ +
+
+Constructor Summary | +|
---|---|
Stone(int value,
+ StoneColor color)
+
++ Creates a normal stone of a given color and value |
+|
Stone(StoneColor color)
+
++ Creates a joker of the given color. |
+
+Method Summary | +|
---|---|
+ StoneColor |
+getColor()
+
++ Returns the color of the stone. |
+
+ float |
+getHeight()
+
++ Get the height of the object |
+
+ int |
+getValue()
+
++ Returns the value of the stone. |
+
+ float |
+getWidth()
+
++ Get the width of the object |
+
+ boolean |
+isJoker()
+
++ Returns whether the stone is a joker or not. |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
---|
+public Stone(StoneColor color)+
+
color
- joker color+public Stone(int value, + StoneColor color)+
+
value
- stone valuecolor
- stone color+Method Detail | +
---|
+public StoneColor getColor()+
+
+public boolean isJoker()+
+
+public int getValue()+
+
+public float getWidth()+
Sizeable
+
getWidth
in interface Sizeable
+public float getHeight()+
Sizeable
+
getHeight
in interface Sizeable
+public java.lang.String toString()+
toString
in class java.lang.Object
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+java.lang.Object ++java.lang.Enum<StoneColor> +
jrummikub.model.StoneColor +
public enum StoneColor
+Class specifying possible StoneColors +
+ +
+
+Enum Constant Summary | +|
---|---|
BLACK
+
++ |
+|
BLUE
+
++ |
+|
ORANGE
+
++ |
+|
RED
+
++ |
+
+Method Summary | +|
---|---|
+static StoneColor |
+valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static StoneColor[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
Methods inherited from class java.lang.Enum | +
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
Methods inherited from class java.lang.Object | +
---|
getClass, notify, notifyAll, wait, wait, wait |
+
+Enum Constant Detail | +
---|
+public static final StoneColor BLACK+
+public static final StoneColor ORANGE+
+public static final StoneColor BLUE+
+public static final StoneColor RED+
+Method Detail | +
---|
+public static StoneColor[] values()+
+for (StoneColor c : StoneColor.values()) + System.out.println(c); ++
+
+public static StoneColor valueOf(java.lang.String name)+
+
name
- the name of the enum constant to be returned.
+java.lang.IllegalArgumentException
- if this enum type has no constant
+with the specified name
+java.lang.NullPointerException
- if the argument is null
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.StoneHeap +
public class StoneHeap
+StoneHeap creates all Stone
s for a game, manages them and allows
+ players to draw one or more random Stones.
+
+ +
+
+Field Summary | +|
---|---|
+(package private) java.util.List<Stone> |
+heap
+
++ |
+
+Constructor Summary | +|
---|---|
StoneHeap()
+
++ Creates 106 Stones according to standard rules |
+
+Method Summary | +|
---|---|
+ Stone |
+drawStone()
+
++ Removes random Stone from the heap and returns it |
+
+ java.util.List<Stone> |
+drawStones(int number)
+
++ Removes several Stone s from the heap and returns them |
+
+ int |
+getSize()
+
++ Get the number of stones left |
+
+ void |
+putBack(java.util.Collection<Stone> stones)
+
++ Put stones back on the heap |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+java.util.List<Stone> heap+
+Constructor Detail | +
---|
+public StoneHeap()+
+
+Method Detail | +
---|
+public Stone drawStone()+
Stone
from the heap and returns it
++
+public java.util.List<Stone> drawStones(int number)+
Stone
s from the heap and returns them
++
number
- number of requested Stones
++public int getSize()+
+
+public void putBack(java.util.Collection<Stone> stones)+
+
stones
- collection of stones to put back
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+java.lang.Object ++java.lang.Enum<StoneSet.Type> +
jrummikub.model.StoneSet.Type +
public static enum StoneSet.Type
+Validity type of the set +
+ +
+
+Enum Constant Summary | +|
---|---|
GROUP
+
++ Set is a valid group |
+|
INVALID
+
++ Set is invalid |
+|
RUN
+
++ Set is a valid run |
+
+Method Summary | +|
---|---|
+static StoneSet.Type |
+valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static StoneSet.Type[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
Methods inherited from class java.lang.Enum | +
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
Methods inherited from class java.lang.Object | +
---|
getClass, notify, notifyAll, wait, wait, wait |
+
+Enum Constant Detail | +
---|
+public static final StoneSet.Type GROUP+
+
+public static final StoneSet.Type RUN+
+
+public static final StoneSet.Type INVALID+
+
+Method Detail | +
---|
+public static StoneSet.Type[] values()+
+for (StoneSet.Type c : StoneSet.Type.values()) + System.out.println(c); ++
+
+public static StoneSet.Type valueOf(java.lang.String name)+
+
name
- the name of the enum constant to be returned.
+java.lang.IllegalArgumentException
- if this enum type has no constant
+with the specified name
+java.lang.NullPointerException
- if the argument is null
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.StoneSet +
public class StoneSet
+Class managing Stone
s joined together to form sets
+
+ +
+
+Nested Class Summary | +|
---|---|
+static class |
+StoneSet.Type
+
++ Validity type of the set |
+
+Field Summary | +|
---|---|
+(package private) static float |
+HORIZONTAL_BORDER
+
++ |
+
+(package private) static float |
+VERTICAL_BORDER
+
++ |
+
+Constructor Summary | +|
---|---|
StoneSet(java.util.List<Stone> stones)
+
++ Create a stone set from a list of stones |
+|
StoneSet(Stone stone)
+
++ Create a new single stone stone set |
+
+Method Summary | +|
---|---|
+ StoneSet.Type |
+classify()
+
++ Test for rule conflict within the StoneSet and determine whether the set + is a group or a run |
+
+ Stone |
+get(int i)
+
++ Returns the i-th stone of the set (starting with 0) |
+
+ float |
+getHeight()
+
++ Get the height of the object |
+
+ float |
+getWidth()
+
++ Get the width of the object |
+
+ boolean |
+isValid()
+
++ Test for rule conflict within the StoneSet |
+
+ java.util.Iterator<Stone> |
+iterator()
+
++ |
+
+ StoneSet |
+join(StoneSet other)
+
++ Joins StoneSet to another StoneSet and returns the resulting new StoneSet |
+
+ int |
+size()
+
++ Returns the number of stones in the set. |
+
+ Pair<StoneSet,StoneSet> |
+splitAt(int position)
+
++ Splits the StoneSet at a specified Position and returns two new
+ Stone Sets |
+
+ java.lang.String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Field Detail | +
---|
+static final float VERTICAL_BORDER+
+static final float HORIZONTAL_BORDER+
+Constructor Detail | +
---|
+public StoneSet(Stone stone)+
+
stone
- single stone of the set+public StoneSet(java.util.List<Stone> stones)+
+
stones
- list of stones to build a set of+Method Detail | +
---|
+public boolean isValid()+
+
+public StoneSet.Type classify()+
+
+public Pair<StoneSet,StoneSet> splitAt(int position)+
Position
and returns two new
+ Stone Sets
++
position
- Splitting Position
++public StoneSet join(StoneSet other)+
+
other
- StoneSet to be joined to active StoneSet
++public int size()+
+
+public Stone get(int i)+
+
i
- number of the stone to return
++public java.util.Iterator<Stone> iterator()+
iterator
in interface java.lang.Iterable<Stone>
+public float getWidth()+
Sizeable
+
getWidth
in interface Sizeable
+public float getHeight()+
Sizeable
+
getHeight
in interface Sizeable
+public java.lang.String toString()+
toString
in class java.lang.Object
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+java.lang.Object ++java.lang.Enum<StoneTray.Direction> +
jrummikub.model.StoneTray.Direction +
protected static enum StoneTray.Direction
+Possible move directions in case of overlapping Stones/Sets +
+ +
+
+Enum Constant Summary | +|
---|---|
BOTTOM
+
++ |
+|
LEFT
+
++ |
+|
RIGHT
+
++ |
+|
TOP
+
++ |
+
+Method Summary | +|
---|---|
+static StoneTray.Direction |
+valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static StoneTray.Direction[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
Methods inherited from class java.lang.Enum | +
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
Methods inherited from class java.lang.Object | +
---|
getClass, notify, notifyAll, wait, wait, wait |
+
+Enum Constant Detail | +
---|
+public static final StoneTray.Direction LEFT+
+public static final StoneTray.Direction RIGHT+
+public static final StoneTray.Direction TOP+
+public static final StoneTray.Direction BOTTOM+
+Method Detail | +
---|
+public static StoneTray.Direction[] values()+
+for (StoneTray.Direction c : StoneTray.Direction.values()) + System.out.println(c); ++
+
+public static StoneTray.Direction valueOf(java.lang.String name)+
+
name
- the name of the enum constant to be returned.
+java.lang.IllegalArgumentException
- if this enum type has no constant
+with the specified name
+java.lang.NullPointerException
- if the argument is null
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.StoneTray<E> +
E
- Type of positioned objects (must implement Sizeable)public class StoneTray<E extends Sizeable>
+A StoneTray is a collection of positioned objects (for example Stone
s
+ or StoneSet
s.
+
+ +
+
+Nested Class Summary | +|
---|---|
+protected static class |
+StoneTray.Direction
+
++ Possible move directions in case of overlapping Stones/Sets |
+
+Field Summary | +|
---|---|
+protected java.util.HashMap<E,Pair<E,Position>> |
+objects
+
++ |
+
+Constructor Summary | +|
---|---|
StoneTray()
+
++ |
+
+Method Summary | +|
---|---|
+ IStoneTray<E> |
+clone()
+
++ Create a clone of the StoneTray |
+
+ void |
+drop(E object,
+ Position position)
+
++ Adds object to the tray |
+
+protected Pair<Position,StoneTray.Direction> |
+fixInvalidDrop(E object,
+ Position pos,
+ StoneTray.Direction dir)
+
++ Checks whether the object may be placed on the given position, computes + new position if not |
+
+ Position |
+getPosition(E object)
+
++ Returns the position of an object that is already on the tray |
+
+ int |
+getSize()
+
++ Return the number of objects on the tray |
+
+ java.util.Iterator<Pair<E,Position>> |
+iterator()
+
++ |
+
+ boolean |
+pickUp(E object)
+
++ Tries to pick up (remove) a given object |
+
Methods inherited from class java.lang.Object | +
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+protected java.util.HashMap<E extends Sizeable,Pair<E extends Sizeable,Position>> objects+
+Constructor Detail | +
---|
+public StoneTray()+
+Method Detail | +
---|
+public void drop(E object, + Position position)+
IStoneTray
+
drop
in interface IStoneTray<E extends Sizeable>
object
- object to add to Handposition
- Position
to put the object+protected Pair<Position,StoneTray.Direction> fixInvalidDrop(E object, + Position pos, + StoneTray.Direction dir)+
+
object
- to be droppeddir
- pos
- the object is dropped at
++public Position getPosition(E object)+
IStoneTray
+
getPosition
in interface IStoneTray<E extends Sizeable>
object
- object whose position is requested
++public java.util.Iterator<Pair<E,Position>> iterator()+
iterator
in interface java.lang.Iterable<Pair<E extends Sizeable,Position>>
+public boolean pickUp(E object)+
IStoneTray
+
pickUp
in interface IStoneTray<E extends Sizeable>
object
- object to pick up
++public IStoneTray<E> clone()+
IStoneTray
+
clone
in interface IStoneTray<E extends Sizeable>
clone
in class java.lang.Object
+public int getSize()+
IStoneTray
+
getSize
in interface IStoneTray<E extends Sizeable>
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.model.StoneTray<StoneSet> +
jrummikub.model.Table +
public class Table
+Class administering the Stone
s on the game-Table
+
+ +
+
+Nested Class Summary | +
---|
Nested classes/interfaces inherited from class jrummikub.model.StoneTray | +
---|
StoneTray.Direction |
+
+Field Summary | +
---|
Fields inherited from class jrummikub.model.StoneTray | +
---|
objects |
+
+Constructor Summary | +|
---|---|
Table()
+
++ |
+
+Method Summary | +|
---|---|
+ StoneSet |
+findStoneSet(Stone stone)
+
++ Finds the StoneSet containing the given Stone |
+
+ boolean |
+isValid()
+
++ Tests the Table for rule conflicts by checking all the StoneSet |
+
+ void |
+pickUpStone(Stone stone)
+
++ Removes Stone from the Table |
+
Methods inherited from class jrummikub.model.StoneTray | +
---|
clone, drop, fixInvalidDrop, getPosition, getSize, iterator, pickUp |
+
Methods inherited from class java.lang.Object | +
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
Methods inherited from interface jrummikub.model.IStoneTray | +
---|
clone, drop, getPosition, getSize, pickUp |
+
Methods inherited from interface java.lang.Iterable | +
---|
iterator |
+
+Constructor Detail | +
---|
+public Table()+
+Method Detail | +
---|
+public void pickUpStone(Stone stone)+
Stone
from the Table
++
pickUpStone
in interface ITable
stone
- stone to pick up+public StoneSet findStoneSet(Stone stone)+
ITable
StoneSet
containing the given Stone
++
findStoneSet
in interface ITable
stone
- stone whose set we're searching
++public boolean isValid()+
StoneSet
++
isValid
in interface ITable
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IGameState | +|
---|---|
jrummikub.control | ++ |
jrummikub.model | ++ |
+Uses of IGameState in jrummikub.control | +
---|
+ +
Constructors in jrummikub.control with parameters of type IGameState | +|
---|---|
RoundControl(IGameState gameState,
+ IView view)
+
++ Create a new RoundControl using the given gameState and view |
+
+Uses of IGameState in jrummikub.model | +
---|
+ +
Classes in jrummikub.model that implement IGameState | +|
---|---|
+ class |
+GameState
+
++ Class managing the overall and momentary GameState |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IHand | +|
---|---|
jrummikub.control | ++ |
jrummikub.model | ++ |
+Uses of IHand in jrummikub.control | +
---|
+ +
Constructors in jrummikub.control with parameters of type IHand | +|
---|---|
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 |
+
+Uses of IHand in jrummikub.model | +
---|
+ +
Classes in jrummikub.model that implement IHand | +|
---|---|
+ class |
+Hand
+
++ Class managing a Player 's Stone s |
+
+ +
Methods in jrummikub.model that return IHand | +|
---|---|
+ IHand |
+Player.getHand()
+
++ |
+
+ IHand |
+IPlayer.getHand()
+
++ Get the current hand of the player |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IPlayer | +|
---|---|
jrummikub.model | ++ |
+Uses of IPlayer in jrummikub.model | +
---|
+ +
Classes in jrummikub.model that implement IPlayer | +|
---|---|
+ class |
+Player
+
++ Class managing player data. |
+
+ +
Methods in jrummikub.model that return IPlayer | +|
---|---|
+ IPlayer |
+GameState.getActivePlayer()
+
++ |
+
+ IPlayer |
+IGameState.getActivePlayer()
+
++ Returns the currently active player |
+
+ IPlayer |
+GameState.getNthNextPlayer(int i)
+
++ |
+
+ IPlayer |
+IGameState.getNthNextPlayer(int i)
+
++ Returns the player that would be the active player after i turns |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IStoneTray | +|
---|---|
jrummikub.model | ++ |
+Uses of IStoneTray in jrummikub.model | +
---|
+ +
Subinterfaces of IStoneTray in jrummikub.model | +|
---|---|
+ interface |
+IHand
+
++ Interface for the Hand model |
+
+ interface |
+ITable
+
++ Interface for the Table model |
+
+ +
Classes in jrummikub.model that implement IStoneTray | +|
---|---|
+ class |
+Hand
+
++ Class managing a Player 's Stone s |
+
+ class |
+StoneTray<E extends Sizeable>
+
++ A StoneTray is a collection of positioned objects (for example Stone s
+ or StoneSet s. |
+
+ class |
+Table
+
++ Class administering the Stone s on the game-Table |
+
+ +
Methods in jrummikub.model that return IStoneTray | +|
---|---|
+ IStoneTray<E> |
+StoneTray.clone()
+
++ |
+
+ IStoneTray<E> |
+IStoneTray.clone()
+
++ Create a clone of the StoneTray |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use ITable | +|
---|---|
jrummikub.control | ++ |
jrummikub.model | ++ |
+Uses of ITable in jrummikub.control | +
---|
+ +
Methods in jrummikub.control with parameters of type ITable | +|
---|---|
+(package private) static java.util.Set<Stone> |
+RoundControl.tableDifference(ITable oldTable,
+ ITable newTable)
+
++ |
+
+ +
Constructors in jrummikub.control with parameters of type ITable | +|
---|---|
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 |
+
+Uses of ITable in jrummikub.model | +
---|
+ +
Classes in jrummikub.model that implement ITable | +|
---|---|
+ class |
+Table
+
++ Class administering the Stone s on the game-Table |
+
+ +
Methods in jrummikub.model that return ITable | +|
---|---|
+ ITable |
+GameState.getTable()
+
++ |
+
+ ITable |
+IGameState.getTable()
+
++ Get the current Table |
+
+ +
Methods in jrummikub.model with parameters of type ITable | +|
---|---|
+ void |
+GameState.setTable(ITable table)
+
++ |
+
+ void |
+IGameState.setTable(ITable table)
+
++ Sets the current Table |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use Position | +|
---|---|
jrummikub.control | ++ |
jrummikub.model | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of Position in jrummikub.control | +
---|
+ +
Method parameters in jrummikub.control with type arguments of type Position | +|
---|---|
+ int |
+TurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1,
+ Pair<Stone,Position> pair2)
+
++ |
+
+ int |
+TurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1,
+ Pair<Stone,Position> pair2)
+
++ |
+
+Uses of Position in jrummikub.model | +
---|
+ +
Fields in jrummikub.model with type parameters of type Position | +|
---|---|
+protected java.util.HashMap<E,Pair<E,Position>> |
+StoneTray.objects
+
++ |
+
+ +
Methods in jrummikub.model that return Position | +|
---|---|
+ Position |
+StoneTray.getPosition(E object)
+
++ |
+
+ Position |
+IStoneTray.getPosition(E object)
+
++ Returns the position of an object that is already on the tray |
+
+ +
Methods in jrummikub.model that return types with arguments of type Position | +|
---|---|
+protected Pair<Position,StoneTray.Direction> |
+StoneTray.fixInvalidDrop(E object,
+ Position pos,
+ StoneTray.Direction dir)
+
++ Checks whether the object may be placed on the given position, computes + new position if not |
+
+protected Pair<Position,StoneTray.Direction> |
+Hand.fixInvalidDrop(Stone stone,
+ Position pos,
+ StoneTray.Direction dir)
+
++ |
+
+ java.util.Iterator<Pair<E,Position>> |
+StoneTray.iterator()
+
++ |
+
+ +
Methods in jrummikub.model with parameters of type Position | +|
---|---|
+ void |
+StoneTray.drop(E object,
+ Position position)
+
++ |
+
+ void |
+IStoneTray.drop(E object,
+ Position position)
+
++ Adds object to the tray |
+
+protected Pair<Position,StoneTray.Direction> |
+StoneTray.fixInvalidDrop(E object,
+ Position pos,
+ StoneTray.Direction dir)
+
++ Checks whether the object may be placed on the given position, computes + new position if not |
+
+protected Pair<Position,StoneTray.Direction> |
+Hand.fixInvalidDrop(Stone stone,
+ Position pos,
+ StoneTray.Direction dir)
+
++ |
+
+Uses of Position in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return types with arguments of type Position | +|
---|---|
+ IEvent1<Position> |
+IClickable.getClickEvent()
+
++ the click event is emitted when the player clicks on the table/hand/etc. |
+
+ +
Method parameters in jrummikub.view with type arguments of type Position | +|
---|---|
+ void |
+IHandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ Set the player's stones to display on the board |
+
+ void |
+ITablePanel.setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
++ Sets the stone sets lying on the table |
+
+Uses of Position in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return Position | +|
---|---|
+ Position |
+StonePainter.calculatePosition(int x,
+ int y)
+
++ |
+
+ +
Methods in jrummikub.view.impl that return types with arguments of type Position | +|
---|---|
+ Event1<Position> |
+AbstractStonePanel.getClickEvent()
+
++ |
+
+protected java.lang.Iterable<Pair<Stone,Position>> |
+AbstractStonePanel.getStones()
+
++ Returns the list of stones and positions currently set |
+
+ +
Methods in jrummikub.view.impl with parameters of type Position | +|
---|---|
+protected boolean |
+StoneCollectionPanel.handleOtherClickEvent(Position pos)
+
++ |
+
+protected boolean |
+TablePanel.handleOtherClickEvent(Position pos)
+
++ |
+
+protected boolean |
+AbstractStonePanel.handleOtherClickEvent(Position pos)
+
++ Overwrite this method to signal if special zone was clicked |
+
+protected void |
+TablePanel.handleOtherMoveEvent(Position pos)
+
++ |
+
+protected void |
+AbstractStonePanel.handleOtherMoveEvent(Position pos)
+
++ Overwrite this method to signal if special zone was hovered |
+
+ void |
+StonePainter.paintStone(java.awt.Graphics2D g,
+ Stone stone,
+ Position p,
+ boolean selected,
+ boolean hovered)
+
++ Paints a stone |
+
+ +
Method parameters in jrummikub.view.impl with type arguments of type Position | +|
---|---|
+ void |
+HandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ |
+
+protected void |
+AbstractStonePanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ Sets the list of stones that can be clicked on |
+
+ void |
+TablePanel.setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use Sizeable | +|
---|---|
jrummikub.model | ++ |
+Uses of Sizeable in jrummikub.model | +
---|
+ +
Classes in jrummikub.model with type parameters of type Sizeable | +|
---|---|
+ interface |
+IStoneTray<E extends Sizeable>
+
++ Interface for the StoneTray model |
+
+ class |
+StoneTray<E extends Sizeable>
+
++ A StoneTray is a collection of positioned objects (for example Stone s
+ or StoneSet s. |
+
+ +
Classes in jrummikub.model that implement Sizeable | +|
---|---|
+ class |
+Stone
+
++ Basic Rummikub Stone |
+
+ class |
+StoneSet
+
++ Class managing Stone s joined together to form sets |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use Stone | +|
---|---|
jrummikub.control | ++ |
jrummikub.model | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of Stone in jrummikub.control | +
---|
+ +
Methods in jrummikub.control that return types with arguments of type Stone | +|
---|---|
+(package private) static java.util.Set<Stone> |
+RoundControl.tableDifference(ITable oldTable,
+ ITable newTable)
+
++ |
+
+ +
Method parameters in jrummikub.control with type arguments of type Stone | +|
---|---|
+ int |
+TurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1,
+ Pair<Stone,Position> pair2)
+
++ |
+
+ int |
+TurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1,
+ Pair<Stone,Position> pair2)
+
++ |
+
+Uses of Stone in jrummikub.model | +
---|
+ +
Fields in jrummikub.model with type parameters of type Stone | +|
---|---|
+(package private) java.util.List<Stone> |
+StoneHeap.heap
+
++ |
+
+ +
Methods in jrummikub.model that return Stone | +|
---|---|
+ Stone |
+StoneHeap.drawStone()
+
++ Removes random Stone from the heap and returns it |
+
+ Stone |
+StoneSet.get(int i)
+
++ Returns the i-th stone of the set (starting with 0) |
+
+ +
Methods in jrummikub.model that return types with arguments of type Stone | +|
---|---|
+ java.util.List<Stone> |
+StoneHeap.drawStones(int number)
+
++ Removes several Stone s from the heap and returns them |
+
+ java.util.Iterator<Stone> |
+StoneSet.iterator()
+
++ |
+
+ +
Methods in jrummikub.model with parameters of type Stone | +|
---|---|
+ StoneSet |
+Table.findStoneSet(Stone stone)
+
++ |
+
+ StoneSet |
+ITable.findStoneSet(Stone stone)
+
++ Finds the StoneSet containing the given Stone |
+
+protected Pair<Position,StoneTray.Direction> |
+Hand.fixInvalidDrop(Stone stone,
+ Position pos,
+ StoneTray.Direction dir)
+
++ |
+
+ void |
+Table.pickUpStone(Stone stone)
+
++ Removes Stone from the Table |
+
+ void |
+ITable.pickUpStone(Stone stone)
+
++ Removes Stone from the Table |
+
+ +
Method parameters in jrummikub.model with type arguments of type Stone | +|
---|---|
+ void |
+StoneHeap.putBack(java.util.Collection<Stone> stones)
+
++ Put stones back on the heap |
+
+ +
Constructors in jrummikub.model with parameters of type Stone | +|
---|---|
StoneSet(Stone stone)
+
++ Create a new single stone stone set |
+
+ +
Constructor parameters in jrummikub.model with type arguments of type Stone | +|
---|---|
StoneSet(java.util.List<Stone> stones)
+
++ Create a stone set from a list of stones |
+
+Uses of Stone in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return types with arguments of type Stone | +|
---|---|
+ IEvent2<Stone,java.lang.Boolean> |
+IStonePanel.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> |
+IStonePanel.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> |
+IStonePanel.getStoneClickEvent()
+
++ the click event is emitted when the player clicks on the table/hand/etc. |
+
+ +
Method parameters in jrummikub.view with type arguments of type Stone | +|
---|---|
+ void |
+IView.setSelectedStones(java.util.Collection<Stone> stones)
+
++ Sets the stones that are to be painted selected |
+
+ void |
+IHandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ Set the player's stones to display on the board |
+
+Uses of Stone in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return Stone | +|
---|---|
+protected Stone |
+AbstractStonePanel.getHoveredStone()
+
++ Returns the stone the mouse pointer is hovering over |
+
+ +
Methods in jrummikub.view.impl that return types with arguments of type Stone | +|
---|---|
+ Event2<Stone,java.lang.Boolean> |
+AbstractStonePanel.getRangeClickEvent()
+
++ |
+
+ Event2<Stone,java.lang.Boolean> |
+AbstractStonePanel.getSetClickEvent()
+
++ |
+
+ Event2<Stone,java.lang.Boolean> |
+AbstractStonePanel.getStoneClickEvent()
+
++ |
+
+protected java.lang.Iterable<Pair<Stone,Position>> |
+AbstractStonePanel.getStones()
+
++ Returns the list of stones and positions currently set |
+
+ +
Methods in jrummikub.view.impl with parameters of type Stone | +|
---|---|
+ void |
+StonePainter.paintStone(java.awt.Graphics2D g,
+ Stone stone,
+ Position p,
+ boolean selected,
+ boolean hovered)
+
++ Paints a stone |
+
+ +
Method parameters in jrummikub.view.impl with type arguments of type Stone | +|
---|---|
+ void |
+View.setSelectedStones(java.util.Collection<Stone> stones)
+
++ |
+
+(package private) void |
+HandPanel.setSelectedStones(java.util.Collection<Stone> stones)
+
++ Sets the stones that are to be painted selected |
+
+(package private) void |
+StoneCollectionPanel.setSelectedStones(java.util.Collection<Stone> selectedStones)
+
++ Sets the stones to be shown in the collection |
+
+(package private) void |
+TablePanel.setSelectedStones(java.util.Collection<Stone> stones)
+
++ Sets the currently selected stones |
+
+ void |
+HandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ |
+
+protected void |
+AbstractStonePanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ Sets the list of stones that can be clicked on |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use StoneColor | +|
---|---|
jrummikub.model | ++ |
+Uses of StoneColor in jrummikub.model | +
---|
+ +
Methods in jrummikub.model that return StoneColor | +|
---|---|
+ StoneColor |
+Stone.getColor()
+
++ Returns the color of the stone. |
+
+static StoneColor |
+StoneColor.valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static StoneColor[] |
+StoneColor.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
+ +
Constructors in jrummikub.model with parameters of type StoneColor | +|
---|---|
Stone(int value,
+ StoneColor color)
+
++ Creates a normal stone of a given color and value |
+|
Stone(StoneColor color)
+
++ Creates a joker of the given color. |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use StoneHeap | +|
---|---|
jrummikub.model | ++ |
+Uses of StoneHeap in jrummikub.model | +
---|
+ +
Methods in jrummikub.model that return StoneHeap | +|
---|---|
+ StoneHeap |
+GameState.getGameHeap()
+
++ |
+
+ StoneHeap |
+IGameState.getGameHeap()
+
++ Returns the heap of stones to draw from |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use StoneSet.Type | +|
---|---|
jrummikub.model | ++ |
+Uses of StoneSet.Type in jrummikub.model | +
---|
+ +
Methods in jrummikub.model that return StoneSet.Type | +|
---|---|
+ StoneSet.Type |
+StoneSet.classify()
+
++ Test for rule conflict within the StoneSet and determine whether the set + is a group or a run |
+
+static StoneSet.Type |
+StoneSet.Type.valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static StoneSet.Type[] |
+StoneSet.Type.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use StoneSet | +|
---|---|
jrummikub.model | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of StoneSet in jrummikub.model | +
---|
+ +
Methods in jrummikub.model that return StoneSet | +|
---|---|
+ StoneSet |
+Table.findStoneSet(Stone stone)
+
++ |
+
+ StoneSet |
+ITable.findStoneSet(Stone stone)
+
++ Finds the StoneSet containing the given Stone |
+
+ StoneSet |
+StoneSet.join(StoneSet other)
+
++ Joins StoneSet to another StoneSet and returns the resulting new StoneSet |
+
+ +
Methods in jrummikub.model that return types with arguments of type StoneSet | +|
---|---|
+ Pair<StoneSet,StoneSet> |
+StoneSet.splitAt(int position)
+
++ Splits the StoneSet at a specified Position and returns two new
+ Stone Sets |
+
+ Pair<StoneSet,StoneSet> |
+StoneSet.splitAt(int position)
+
++ Splits the StoneSet at a specified Position and returns two new
+ Stone Sets |
+
+ +
Methods in jrummikub.model with parameters of type StoneSet | +|
---|---|
+ StoneSet |
+StoneSet.join(StoneSet other)
+
++ Joins StoneSet to another StoneSet and returns the resulting new StoneSet |
+
+Uses of StoneSet in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return types with arguments of type StoneSet | +|
---|---|
+ Event1<StoneSet> |
+ITablePanel.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> |
+ITablePanel.getRightConnectorClickEvent()
+
++ the right connector click event is emitted when the player clicks on a + right connector of a stone set on the table . |
+
+ +
Method parameters in jrummikub.view with type arguments of type StoneSet | +|
---|---|
+ void |
+ITablePanel.setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
++ Sets the stone sets lying on the table |
+
+Uses of StoneSet in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return types with arguments of type StoneSet | +|
---|---|
+ Event1<StoneSet> |
+TablePanel.getLeftConnectorClickEvent()
+
++ |
+
+ Event1<StoneSet> |
+TablePanel.getRightConnectorClickEvent()
+
++ |
+
+ +
Method parameters in jrummikub.view.impl with type arguments of type StoneSet | +|
---|---|
+ void |
+TablePanel.setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use StoneTray.Direction | +|
---|---|
jrummikub.model | ++ |
+Uses of StoneTray.Direction in jrummikub.model | +
---|
+ +
Methods in jrummikub.model that return StoneTray.Direction | +|
---|---|
+static StoneTray.Direction |
+StoneTray.Direction.valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static StoneTray.Direction[] |
+StoneTray.Direction.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
+ +
Methods in jrummikub.model that return types with arguments of type StoneTray.Direction | +|
---|---|
+protected Pair<Position,StoneTray.Direction> |
+StoneTray.fixInvalidDrop(E object,
+ Position pos,
+ StoneTray.Direction dir)
+
++ Checks whether the object may be placed on the given position, computes + new position if not |
+
+protected Pair<Position,StoneTray.Direction> |
+Hand.fixInvalidDrop(Stone stone,
+ Position pos,
+ StoneTray.Direction dir)
+
++ |
+
+ +
Methods in jrummikub.model with parameters of type StoneTray.Direction | +|
---|---|
+protected Pair<Position,StoneTray.Direction> |
+StoneTray.fixInvalidDrop(E object,
+ Position pos,
+ StoneTray.Direction dir)
+
++ Checks whether the object may be placed on the given position, computes + new position if not |
+
+protected Pair<Position,StoneTray.Direction> |
+Hand.fixInvalidDrop(Stone stone,
+ Position pos,
+ StoneTray.Direction dir)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use StoneTray | +|
---|---|
jrummikub.model | ++ |
+Uses of StoneTray in jrummikub.model | +
---|
+ +
Subclasses of StoneTray in jrummikub.model | +|
---|---|
+ class |
+Hand
+
++ Class managing a Player 's Stone s |
+
+ class |
+Table
+
++ Class administering the Stone s on the game-Table |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Interfaces
+
+ +IGameState + +IHand + +IPlayer + +IStoneTray + +ITable + +Sizeable |
+
+Classes
+
+ +GameState + +Hand + +Player + +Position + +Stone + +StoneHeap + +StoneSet + +StoneTray + +Table |
+
+Enums
+
+ +StoneColor + +StoneSet.Type + +StoneTray.Direction |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Interface Summary | +|
---|---|
IGameState | +Interface for GameState model |
+
IHand | +Interface for the Hand model |
+
IPlayer | +Interface for Player model |
+
IStoneTray<E extends Sizeable> | +Interface for the StoneTray model |
+
ITable | +Interface for the Table model |
+
Sizeable | +Objects that have a size. | +
+ +
+Class Summary | +|
---|---|
GameState | +Class managing the overall and momentary GameState | +
Hand | +Class managing a Player 's Stone s |
+
Player | +Class managing player data. | +
Position | +Stone Position class to determine positions on Table or
+ Hand |
+
Stone | +Basic Rummikub Stone | +
StoneHeap | +StoneHeap creates all Stone s for a game, manages them and allows
+ players to draw one or more random Stones. |
+
StoneSet | +Class managing Stone s joined together to form sets |
+
StoneTray<E extends Sizeable> | +A StoneTray is a collection of positioned objects (for example Stone s
+ or StoneSet s. |
+
Table | +Class administering the Stone s on the game-Table |
+
+ +
+Enum Summary | +|
---|---|
StoneColor | +Class specifying possible StoneColors | +
StoneSet.Type | +Validity type of the set | +
StoneTray.Direction | +Possible move directions in case of overlapping Stones/Sets | +
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use jrummikub.model | +|
---|---|
jrummikub.control | ++ |
jrummikub.model | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Classes in jrummikub.model used by jrummikub.control | +|
---|---|
IGameState
+
+ + Interface for GameState model |
+|
IHand
+
+ + Interface for the Hand model |
+|
ITable
+
+ + Interface for the Table model |
+|
Position
+
+ + Stone Position class to determine positions on Table or
+ Hand |
+|
Stone
+
+ + Basic Rummikub Stone |
+
+Classes in jrummikub.model used by jrummikub.model | +|
---|---|
IGameState
+
+ + Interface for GameState model |
+|
IHand
+
+ + Interface for the Hand model |
+|
IPlayer
+
+ + Interface for Player model |
+|
IStoneTray
+
+ + Interface for the StoneTray model |
+|
ITable
+
+ + Interface for the Table model |
+|
Position
+
+ + Stone Position class to determine positions on Table or
+ Hand |
+|
Sizeable
+
+ + Objects that have a size. |
+|
Stone
+
+ + Basic Rummikub Stone |
+|
StoneColor
+
+ + Class specifying possible StoneColors |
+|
StoneHeap
+
+ + StoneHeap creates all Stone s for a game, manages them and allows
+ players to draw one or more random Stones. |
+|
StoneSet
+
+ + Class managing Stone s joined together to form sets |
+|
StoneSet.Type
+
+ + Validity type of the set |
+|
StoneTray
+
+ + A StoneTray is a collection of positioned objects (for example Stone s
+ or StoneSet s. |
+|
StoneTray.Direction
+
+ + Possible move directions in case of overlapping Stones/Sets |
+
+Classes in jrummikub.model used by jrummikub.view | +|
---|---|
Position
+
+ + Stone Position class to determine positions on Table or
+ Hand |
+|
Stone
+
+ + Basic Rummikub Stone |
+|
StoneSet
+
+ + Class managing Stone s joined together to form sets |
+
+Classes in jrummikub.model used by jrummikub.view.impl | +|
---|---|
Position
+
+ + Stone Position class to determine positions on Table or
+ Hand |
+|
Stone
+
+ + Basic Rummikub Stone |
+|
StoneSet
+
+ + Class managing Stone s joined together to form sets |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Classes
+
+ +JRummikub |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Class Summary | +|
---|---|
JRummikub | +The main class | +
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface Connection
+A Connection object can be used to remove a listener from a event +
+ +
+
+Method Summary | +|
---|---|
+ void |
+remove()
+
++ Removes the listener |
+
+Method Detail | +
---|
+void remove()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.util.Event +
public class Event
+Simple parameterless event generator +
+ +
+
+Constructor Summary | +|
---|---|
Event()
+
++ |
+
+Method Summary | +|
---|---|
+ Connection |
+add(IListener listener)
+
++ Start to publish all events to a given listener |
+
+ void |
+emit()
+
++ Generate a single event |
+
+ void |
+remove(IListener listener)
+
++ Stop publishing events to a given listener |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public Event()+
+Method Detail | +
---|
+public Connection add(IListener listener)+
IEvent
+
add
in interface IEvent
listener
- target listener
++public void remove(IListener listener)+
IEvent
+
remove
in interface IEvent
listener
- target listener+public void emit()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.util.Event1<T> +
T
- type of the event parameterpublic class Event1<T>
+Simple single parameter event generator +
+ +
+
+Constructor Summary | +|
---|---|
Event1()
+
++ |
+
+Method Summary | +|
---|---|
+ Connection |
+add(IListener1<T> listener)
+
++ Start to publish all events to a given listener |
+
+ void |
+emit(T value)
+
++ Generate a single event |
+
+ void |
+remove(IListener1<T> listener)
+
++ Stop publishing events to a given listener |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public Event1()+
+Method Detail | +
---|
+public Connection add(IListener1<T> listener)+
IEvent1
+
add
in interface IEvent1<T>
listener
- target listener
++public void remove(IListener1<T> listener)+
IEvent1
+
remove
in interface IEvent1<T>
listener
- target listener+public void emit(T value)+
+
value
- the event parameter
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.util.Event2<T1,T2> +
T1
- type of the first event parameterT2
- type of the second event parameterpublic class Event2<T1,T2>
+Simple single parameter event generator +
+ +
+
+Constructor Summary | +|
---|---|
Event2()
+
++ |
+
+Method Summary | +|
---|---|
+ Connection |
+add(IListener2<T1,T2> listener)
+
++ Start to publish all events to a given listener |
+
+ void |
+emit(T1 value1,
+ T2 value2)
+
++ Generate a single event |
+
+ void |
+remove(IListener2<T1,T2> listener)
+
++ Stop publishing events to a given listener |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public Event2()+
+Method Detail | +
---|
+public Connection add(IListener2<T1,T2> listener)+
IEvent2
+
add
in interface IEvent2<T1,T2>
listener
- target listener
++public void remove(IListener2<T1,T2> listener)+
IEvent2
+
remove
in interface IEvent2<T1,T2>
listener
- target listener+public void emit(T1 value1, + T2 value2)+
+
value1
- the first event parametervalue2
- the second event parameter
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IEvent
+Interface for classes that can generate parameterless events +
+ +
+
+Method Summary | +|
---|---|
+ Connection |
+add(IListener listener)
+
++ Start to publish all events to a given listener |
+
+ void |
+remove(IListener listener)
+
++ Stop publishing events to a given listener |
+
+Method Detail | +
---|
+Connection add(IListener listener)+
+
listener
- target listener
++void remove(IListener listener)+
+
listener
- target listener
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
T
- type of the event parameterpublic interface IEvent1<T>
+Interface for classes that can generate events having a single parameter +
+ +
+
+Method Summary | +|
---|---|
+ Connection |
+add(IListener1<T> listener)
+
++ Start to publish all events to a given listener |
+
+ void |
+remove(IListener1<T> listener)
+
++ Stop publishing events to a given listener |
+
+Method Detail | +
---|
+Connection add(IListener1<T> listener)+
+
listener
- target listener
++void remove(IListener1<T> listener)+
+
listener
- target listener
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
T1
- type of the first event parameterT2
- type of the second event parameterpublic interface IEvent2<T1,T2>
+Interface for classes that can generate events having a two parameters +
+ +
+
+Method Summary | +|
---|---|
+ Connection |
+add(IListener2<T1,T2> listener)
+
++ Start to publish all events to a given listener |
+
+ void |
+remove(IListener2<T1,T2> listener)
+
++ Stop publishing events to a given listener |
+
+Method Detail | +
---|
+Connection add(IListener2<T1,T2> listener)+
+
listener
- target listener
++void remove(IListener2<T1,T2> listener)+
+
listener
- target listener
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IListener
+Interface for classes that can receive parameterless events +
+ +
+
+Method Summary | +|
---|---|
+ void |
+handle()
+
++ This method is called whenever a class we're listening to emits an event |
+
+Method Detail | +
---|
+void handle()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
T
- type of the event parameterpublic interface IListener1<T>
+Interface for classes that can receive parameterless events having a single + parameter +
+ +
+
+Method Summary | +|
---|---|
+ void |
+handle(T value)
+
++ This method is called whenever a class we're listening to emits an event |
+
+Method Detail | +
---|
+void handle(T value)+
+
value
- the event parameter
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
T1
- type of the first event parameterT2
- type of the first event parameterpublic interface IListener2<T1,T2>
+Interface for classes that can receive parameterless events having a two + parameters +
+ +
+
+Method Summary | +|
---|---|
+ void |
+handle(T1 value1,
+ T2 value2)
+
++ This method is called whenever a class we're listening to emits an event |
+
+Method Detail | +
---|
+void handle(T1 value1, + T2 value2)+
+
value1
- the first event parametervalue2
- the second event parameter
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.util.Pair<T1,T2> +
T1
- Type of first componentT2
- Type of second componentpublic class Pair<T1,T2>
+A pair of objects +
+ +
+
+Constructor Summary | +|
---|---|
Pair(T1 first,
+ T2 second)
+
++ Create a new pair from two values |
+
+Method Summary | +|
---|---|
+ T1 |
+getFirst()
+
++ Extract the first component of a pair |
+
+ T2 |
+getSecond()
+
++ Extract the second component of a pair |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public Pair(T1 first, + T2 second)+
+
first
- the first pair componentsecond
- the second pair component+Method Detail | +
---|
+public T1 getFirst()+
+
+public T2 getSecond()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use Connection | +|
---|---|
jrummikub.util | ++ |
+Uses of Connection in jrummikub.util | +
---|
+ +
Methods in jrummikub.util that return Connection | +|
---|---|
+ Connection |
+Event.add(IListener listener)
+
++ |
+
+ Connection |
+IEvent.add(IListener listener)
+
++ Start to publish all events to a given listener |
+
+ Connection |
+IEvent1.add(IListener1<T> listener)
+
++ Start to publish all events to a given listener |
+
+ Connection |
+Event1.add(IListener1<T> listener)
+
++ |
+
+ Connection |
+IEvent2.add(IListener2<T1,T2> listener)
+
++ Start to publish all events to a given listener |
+
+ Connection |
+Event2.add(IListener2<T1,T2> listener)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use Event1 | +|
---|---|
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of Event1 in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return Event1 | +|
---|---|
+ Event1<StoneSet> |
+ITablePanel.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> |
+ITablePanel.getRightConnectorClickEvent()
+
++ the right connector click event is emitted when the player clicks on a + right connector of a stone set on the table . |
+
+Uses of Event1 in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return Event1 | +|
---|---|
+ Event1<Position> |
+AbstractStonePanel.getClickEvent()
+
++ |
+
+ Event1<StoneSet> |
+TablePanel.getLeftConnectorClickEvent()
+
++ |
+
+ Event1<StoneSet> |
+TablePanel.getRightConnectorClickEvent()
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use Event2 | +|
---|---|
jrummikub.view.impl | ++ |
+Uses of Event2 in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return Event2 | +|
---|---|
+ Event2<Stone,java.lang.Boolean> |
+AbstractStonePanel.getRangeClickEvent()
+
++ |
+
+ Event2<Stone,java.lang.Boolean> |
+AbstractStonePanel.getSetClickEvent()
+
++ |
+
+ Event2<Stone,java.lang.Boolean> |
+AbstractStonePanel.getStoneClickEvent()
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IEvent | +|
---|---|
jrummikub.control | ++ |
jrummikub.util | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of IEvent in jrummikub.control | +
---|
+ +
Methods in jrummikub.control that return IEvent | +|
---|---|
+ IEvent |
+TurnControl.getEndOfTurnEvent()
+
++ Get the event that is emitted when the turn is over |
+
+ IEvent |
+RoundControl.getEndRoundEvent()
+
++ End the round |
+
+ IEvent |
+ITurnTimer.getTimeRunOutEvent()
+
++ Returns the event that is emitted if the timer timed out. |
+
+ IEvent |
+TurnTimer.getTimeRunOutEvent()
+
++ |
+
+Uses of IEvent in jrummikub.util | +
---|
+ +
Classes in jrummikub.util that implement IEvent | +|
---|---|
+ class |
+Event
+
++ Simple parameterless event generator |
+
+Uses of IEvent in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return IEvent | +|
---|---|
+ IEvent |
+IPlayerPanel.getEndTurnEvent()
+
++ The end turn event is emitted when the player wants to end his turn |
+
+ IEvent |
+IView.getNewGameEvent()
+
++ The new game event is emitted when the player wants to start a new game |
+
+ IEvent |
+IView.getQuitEvent()
+
++ The quit event is emitted when the player wants to quit the game |
+
+ IEvent |
+IPlayerPanel.getSortByGroupsEvent()
+
++ The sort by groups event is emitted when the player wants to sort his + stones by groups |
+
+ IEvent |
+IPlayerPanel.getSortByRunsEvent()
+
++ The sort by runs event is emitted when the player wants to sort his stones + by runs |
+
+ IEvent |
+IView.getStartTurnEvent()
+
++ The start turn event is emitted when the player wants to start his turn |
+
+Uses of IEvent in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return IEvent | +|
---|---|
+ IEvent |
+PlayerPanel.getEndTurnEvent()
+
++ |
+
+ IEvent |
+View.getNewGameEvent()
+
++ |
+
+(package private) IEvent |
+WinPanel.getNewGameEvent()
+
++ The new game event is emitted when the player wants to start a new game |
+
+ IEvent |
+View.getQuitEvent()
+
++ |
+
+(package private) IEvent |
+WinPanel.getQuitEvent()
+
++ The quit event is emitted when the player wants to quit the program |
+
+ IEvent |
+PlayerPanel.getSortByGroupsEvent()
+
++ |
+
+ IEvent |
+PlayerPanel.getSortByRunsEvent()
+
++ |
+
+ IEvent |
+View.getStartTurnEvent()
+
++ |
+
+(package private) IEvent |
+StartTurnPanel.getStartTurnEvent()
+
++ The start turn event is emitted when the current player has clicked the + start turn button |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IEvent1 | +|
---|---|
jrummikub.util | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of IEvent1 in jrummikub.util | +
---|
+ +
Classes in jrummikub.util that implement IEvent1 | +|
---|---|
+ class |
+Event1<T>
+
++ Simple single parameter event generator |
+
+Uses of IEvent1 in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return IEvent1 | +|
---|---|
+ IEvent1<Position> |
+IClickable.getClickEvent()
+
++ the click event is emitted when the player clicks on the table/hand/etc. |
+
+Uses of IEvent1 in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return IEvent1 | +|
---|---|
+(package private) IEvent1<java.awt.Point> |
+StoneCollectionPanel.getOtherClickEvent()
+
++ The other click event is emitted by the stone collection when the player + has clicked on it, but hasn't hit a stone. |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IEvent2 | +|
---|---|
jrummikub.util | ++ |
jrummikub.view | ++ |
+Uses of IEvent2 in jrummikub.util | +
---|
+ +
Classes in jrummikub.util that implement IEvent2 | +|
---|---|
+ class |
+Event2<T1,T2>
+
++ Simple single parameter event generator |
+
+Uses of IEvent2 in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return IEvent2 | +|
---|---|
+ IEvent2<Stone,java.lang.Boolean> |
+IStonePanel.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> |
+IStonePanel.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> |
+IStonePanel.getStoneClickEvent()
+
++ the click event is emitted when the player clicks on the table/hand/etc. |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IListener | +|
---|---|
jrummikub.util | ++ |
+Uses of IListener in jrummikub.util | +
---|
+ +
Methods in jrummikub.util with parameters of type IListener | +|
---|---|
+ Connection |
+Event.add(IListener listener)
+
++ |
+
+ Connection |
+IEvent.add(IListener listener)
+
++ Start to publish all events to a given listener |
+
+ void |
+Event.remove(IListener listener)
+
++ |
+
+ void |
+IEvent.remove(IListener listener)
+
++ Stop publishing events to a given listener |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IListener1 | +|
---|---|
jrummikub.util | ++ |
+Uses of IListener1 in jrummikub.util | +
---|
+ +
Methods in jrummikub.util with parameters of type IListener1 | +|
---|---|
+ Connection |
+IEvent1.add(IListener1<T> listener)
+
++ Start to publish all events to a given listener |
+
+ Connection |
+Event1.add(IListener1<T> listener)
+
++ |
+
+ void |
+IEvent1.remove(IListener1<T> listener)
+
++ Stop publishing events to a given listener |
+
+ void |
+Event1.remove(IListener1<T> listener)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IListener2 | +|
---|---|
jrummikub.util | ++ |
+Uses of IListener2 in jrummikub.util | +
---|
+ +
Methods in jrummikub.util with parameters of type IListener2 | +|
---|---|
+ Connection |
+IEvent2.add(IListener2<T1,T2> listener)
+
++ Start to publish all events to a given listener |
+
+ Connection |
+Event2.add(IListener2<T1,T2> listener)
+
++ |
+
+ void |
+IEvent2.remove(IListener2<T1,T2> listener)
+
++ Stop publishing events to a given listener |
+
+ void |
+Event2.remove(IListener2<T1,T2> listener)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use Pair | +|
---|---|
jrummikub.control | ++ |
jrummikub.model | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of Pair in jrummikub.control | +
---|
+ +
Methods in jrummikub.control with parameters of type Pair | +|
---|---|
+ int |
+TurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1,
+ Pair<Stone,Position> pair2)
+
++ |
+
+ int |
+TurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1,
+ Pair<Stone,Position> pair2)
+
++ |
+
+Uses of Pair in jrummikub.model | +
---|
+ +
Fields in jrummikub.model with type parameters of type Pair | +|
---|---|
+protected java.util.HashMap<E,Pair<E,Position>> |
+StoneTray.objects
+
++ |
+
+ +
Methods in jrummikub.model that return Pair | +|
---|---|
+protected Pair<Position,StoneTray.Direction> |
+StoneTray.fixInvalidDrop(E object,
+ Position pos,
+ StoneTray.Direction dir)
+
++ Checks whether the object may be placed on the given position, computes + new position if not |
+
+protected Pair<Position,StoneTray.Direction> |
+Hand.fixInvalidDrop(Stone stone,
+ Position pos,
+ StoneTray.Direction dir)
+
++ |
+
+ Pair<StoneSet,StoneSet> |
+StoneSet.splitAt(int position)
+
++ Splits the StoneSet at a specified Position and returns two new
+ Stone Sets |
+
+ +
Methods in jrummikub.model that return types with arguments of type Pair | +|
---|---|
+ java.util.Iterator<Pair<E,Position>> |
+StoneTray.iterator()
+
++ |
+
+Uses of Pair in jrummikub.view | +
---|
+ +
Method parameters in jrummikub.view with type arguments of type Pair | +|
---|---|
+ void |
+IHandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ Set the player's stones to display on the board |
+
+ void |
+ITablePanel.setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
++ Sets the stone sets lying on the table |
+
+Uses of Pair in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return Pair | +|
---|---|
+protected Pair<java.lang.Integer,java.lang.Integer> |
+StoneCollectionPanel.getTranslation()
+
++ |
+
+protected Pair<java.lang.Integer,java.lang.Integer> |
+TablePanel.getTranslation()
+
++ |
+
+protected Pair<java.lang.Integer,java.lang.Integer> |
+AbstractStonePanel.getTranslation()
+
++ Returns the translation in pixels the stones in this panel are painted with |
+
+ +
Methods in jrummikub.view.impl that return types with arguments of type Pair | +|
---|---|
+protected java.lang.Iterable<Pair<Stone,Position>> |
+AbstractStonePanel.getStones()
+
++ Returns the list of stones and positions currently set |
+
+ +
Method parameters in jrummikub.view.impl with type arguments of type Pair | +|
---|---|
+ void |
+HandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ |
+
+protected void |
+AbstractStonePanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
++ Sets the list of stones that can be clicked on |
+
+ void |
+TablePanel.setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Interfaces
+
+ +Connection + +IEvent + +IEvent1 + +IEvent2 + +IListener + +IListener1 + +IListener2 |
+
+Classes
+
+ +Event + +Event1 + +Event2 + +Pair |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Interface Summary | +|
---|---|
Connection | +A Connection object can be used to remove a listener from a event | +
IEvent | +Interface for classes that can generate parameterless events | +
IEvent1<T> | +Interface for classes that can generate events having a single parameter | +
IEvent2<T1,T2> | +Interface for classes that can generate events having a two parameters | +
IListener | +Interface for classes that can receive parameterless events | +
IListener1<T> | +Interface for classes that can receive parameterless events having a single + parameter | +
IListener2<T1,T2> | +Interface for classes that can receive parameterless events having a two + parameters | +
+ +
+Class Summary | +|
---|---|
Event | +Simple parameterless event generator | +
Event1<T> | +Simple single parameter event generator | +
Event2<T1,T2> | +Simple single parameter event generator | +
Pair<T1,T2> | +A pair of objects | +
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use jrummikub.util | +|
---|---|
jrummikub.control | ++ |
jrummikub.model | ++ |
jrummikub.util | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Classes in jrummikub.util used by jrummikub.control | +|
---|---|
IEvent
+
+ + Interface for classes that can generate parameterless events |
+|
Pair
+
+ + A pair of objects |
+
+Classes in jrummikub.util used by jrummikub.model | +|
---|---|
Pair
+
+ + A pair of objects |
+
+Classes in jrummikub.util used by jrummikub.util | +|
---|---|
Connection
+
+ + A Connection object can be used to remove a listener from a event |
+|
IEvent
+
+ + Interface for classes that can generate parameterless events |
+|
IEvent1
+
+ + Interface for classes that can generate events having a single parameter |
+|
IEvent2
+
+ + Interface for classes that can generate events having a two parameters |
+|
IListener
+
+ + Interface for classes that can receive parameterless events |
+|
IListener1
+
+ + Interface for classes that can receive parameterless events having a single + parameter |
+|
IListener2
+
+ + Interface for classes that can receive parameterless events having a two + parameters |
+
+Classes in jrummikub.util used by jrummikub.view | +|
---|---|
Event1
+
+ + Simple single parameter event generator |
+|
IEvent
+
+ + Interface for classes that can generate parameterless events |
+|
IEvent1
+
+ + Interface for classes that can generate events having a single parameter |
+|
IEvent2
+
+ + Interface for classes that can generate events having a two parameters |
+|
Pair
+
+ + A pair of objects |
+
+Classes in jrummikub.util used by jrummikub.view.impl | +|
---|---|
Event1
+
+ + Simple single parameter event generator |
+|
Event2
+
+ + Simple single parameter event generator |
+|
IEvent
+
+ + Interface for classes that can generate parameterless events |
+|
IEvent1
+
+ + Interface for classes that can generate events having a single parameter |
+|
Pair
+
+ + A pair of objects |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
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 | +
---|
+IEvent1<Position> getClickEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IHandPanel
+The view for a player's hand that displays his stones +
+ +
+
+Method Summary | +|
---|---|
+ void |
+setHandHeight(int height)
+
++ Set the number of stones that fit on the hand vertically |
+
+ void |
+setHandWidth(int width)
+
++ Set the number of stones that fit on the hand horizontally |
+
+ void |
+setStones(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 | +
---|
+void setStones(java.lang.Iterable<Pair<Stone,Position>> stones)+
+
stones
- the stones+void setHandWidth(int width)+
+
width
- number of stones+void setHandHeight(int height)+
+
height
- number of stones
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IPlayerPanel
+The player panel that contains a player's board and other user interfaces +
+ +
+
+Method Summary | +|
---|---|
+ IEvent |
+getEndTurnEvent()
+
++ The end turn event is emitted when the player wants to end his turn |
+
+ IHandPanel |
+getHandPanel()
+
++ |
+
+ IEvent |
+getSortByGroupsEvent()
+
++ The sort by groups event is emitted when the player wants to sort his + stones by groups |
+
+ IEvent |
+getSortByRunsEvent()
+
++ The sort by runs event is emitted when the player wants to sort his stones + by runs |
+
+ void |
+setTimeLeft(int time)
+
++ Sets the time the player has left for his turn |
+
+Method Detail | +
---|
+IHandPanel getHandPanel()+
+void setTimeLeft(int time)+
+
time
- the time left+IEvent getSortByGroupsEvent()+
+
+IEvent getSortByRunsEvent()+
+
+IEvent getEndTurnEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IStoneCollectionPanel
+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 |
+
+ +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
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 | +
---|
+IEvent2<Stone,java.lang.Boolean> getStoneClickEvent()+
+
+IEvent2<Stone,java.lang.Boolean> getRangeClickEvent()+
+
+IEvent2<Stone,java.lang.Boolean> getSetClickEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface ITablePanel
+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 . |
+
+ IStoneCollectionPanel |
+getStoneCollectionPanel()
+
++ Returns the stone collection (the panel showing the stones currently + selected) |
+
+ void |
+setLeftPlayerName(java.lang.String playerName)
+
++ Sets the player name on the left label |
+
+ void |
+setRightPlayerName(java.lang.String playerName)
+
++ Sets the player name on the right label |
+
+ void |
+setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
++ Sets the stone sets lying on the table |
+
+ void |
+setTopPlayerName(java.lang.String playerName)
+
++ Sets the player name on the top label |
+
Methods inherited from interface jrummikub.view.IStonePanel | +
---|
getRangeClickEvent, getSetClickEvent, getStoneClickEvent |
+
Methods inherited from interface jrummikub.view.IClickable | +
---|
getClickEvent |
+
+Method Detail | +
---|
+void setLeftPlayerName(java.lang.String playerName)+
+
playerName
- the name to set+void setTopPlayerName(java.lang.String playerName)+
+
playerName
- the name to set+void setRightPlayerName(java.lang.String playerName)+
+
playerName
- the name to set+void setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)+
+
stoneSets
- set stone sets on the table+IStoneCollectionPanel getStoneCollectionPanel()+
+
+Event1<StoneSet> getLeftConnectorClickEvent()+
+
+Event1<StoneSet> getRightConnectorClickEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IView
+The top-level view interface +
+ +
+
+Method Summary | +|
---|---|
+ void |
+enableStartTurnPanel(boolean enable)
+
++ Enables or disables the player's StartTurnPanel |
+
+ void |
+enableWinPanel(boolean enable)
+
++ Enables or disables the panel shown when a player has won |
+
+ IEvent |
+getNewGameEvent()
+
++ The new game event is emitted when the player wants to start a new game |
+
+ IPlayerPanel |
+getPlayerPanel()
+
++ Returns the player panel |
+
+ IEvent |
+getQuitEvent()
+
++ The quit event is emitted when the player wants to quit the game |
+
+ IEvent |
+getStartTurnEvent()
+
++ The start turn event is emitted when the player wants to start his turn |
+
+ ITablePanel |
+getTablePanel()
+
++ Returns the table |
+
+ void |
+setCurrentPlayerName(java.lang.String playerName)
+
++ Sets the current player's name |
+
+ void |
+setSelectedStones(java.util.Collection<Stone> stones)
+
++ Sets the stones that are to be painted selected |
+
+Method Detail | +
---|
+ITablePanel getTablePanel()+
+
+IPlayerPanel getPlayerPanel()+
+
+void setCurrentPlayerName(java.lang.String playerName)+
+
playerName
- the player name+void setSelectedStones(java.util.Collection<Stone> stones)+
+
stones
- the stones to be painted selected+void enableStartTurnPanel(boolean enable)+
+
enable
- enable/disable+IEvent getStartTurnEvent()+
+
+void enableWinPanel(boolean enable)+
+
enable
- enable/disable+IEvent getQuitEvent()+
+
+IEvent getNewGameEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IClickable | +|
---|---|
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of IClickable in jrummikub.view | +
---|
+ +
Subinterfaces of IClickable in jrummikub.view | +|
---|---|
+ interface |
+IHandPanel
+
++ The view for a player's hand that displays his stones |
+
+ interface |
+ITablePanel
+
++ 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) class |
+AbstractStonePanel
+
++ Base class for panels that draw stones |
+
+(package private) class |
+HandPanel
+
++ Implementation of the board |
+
+(package private) class |
+StoneCollectionPanel
+
++ Implementation of the stone collection (selection) |
+
+(package private) class |
+TablePanel
+
++ The implementation of the table |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IHandPanel | +|
---|---|
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of IHandPanel in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return IHandPanel | +|
---|---|
+ IHandPanel |
+IPlayerPanel.getHandPanel()
+
++ |
+
+Uses of IHandPanel in jrummikub.view.impl | +
---|
+ +
Classes in jrummikub.view.impl that implement IHandPanel | +|
---|---|
+(package private) class |
+HandPanel
+
++ Implementation of the board |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IPlayerPanel | +|
---|---|
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of IPlayerPanel in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return IPlayerPanel | +|
---|---|
+ IPlayerPanel |
+IView.getPlayerPanel()
+
++ Returns the player panel |
+
+Uses of IPlayerPanel in jrummikub.view.impl | +
---|
+ +
Classes in jrummikub.view.impl that implement IPlayerPanel | +|
---|---|
+(package private) class |
+PlayerPanel
+
++ Implementation of the player panel |
+
+ +
Methods in jrummikub.view.impl that return IPlayerPanel | +|
---|---|
+ IPlayerPanel |
+View.getPlayerPanel()
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IStoneCollectionPanel | +|
---|---|
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of IStoneCollectionPanel in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return IStoneCollectionPanel | +|
---|---|
+ IStoneCollectionPanel |
+ITablePanel.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) class |
+StoneCollectionPanel
+
++ Implementation of the stone collection (selection) |
+
+ +
Methods in jrummikub.view.impl that return IStoneCollectionPanel | +|
---|---|
+ IStoneCollectionPanel |
+TablePanel.getStoneCollectionPanel()
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use IStonePanel | +|
---|---|
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of IStonePanel in jrummikub.view | +
---|
+ +
Subinterfaces of IStonePanel in jrummikub.view | +|
---|---|
+ interface |
+IHandPanel
+
++ The view for a player's hand that displays his stones |
+
+ interface |
+IStoneCollectionPanel
+
++ The view of the collection that shows the stones a player has selected |
+
+ interface |
+ITablePanel
+
++ 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) class |
+AbstractStonePanel
+
++ Base class for panels that draw stones |
+
+(package private) class |
+HandPanel
+
++ Implementation of the board |
+
+(package private) class |
+StoneCollectionPanel
+
++ Implementation of the stone collection (selection) |
+
+(package private) class |
+TablePanel
+
++ The implementation of the table |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use ITablePanel | +|
---|---|
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+Uses of ITablePanel in jrummikub.view | +
---|
+ +
Methods in jrummikub.view that return ITablePanel | +|
---|---|
+ ITablePanel |
+IView.getTablePanel()
+
++ Returns the table |
+
+Uses of ITablePanel in jrummikub.view.impl | +
---|
+ +
Classes in jrummikub.view.impl that implement ITablePanel | +|
---|---|
+(package private) class |
+TablePanel
+
++ The implementation of the table |
+
+ +
Methods in jrummikub.view.impl that return ITablePanel | +|
---|---|
+ ITablePanel |
+View.getTablePanel()
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+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 | +|
---|---|
+ class |
+View
+
++ Implementation of the top-level view interface |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.awt.Component +
java.awt.Container +
javax.swing.JComponent +
javax.swing.JPanel +
jrummikub.view.impl.AbstractStonePanel +
abstract class AbstractStonePanel
+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 void |
+clickAt(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 Stone |
+getHoveredStone()
+
++ 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 StonePainter |
+getStonePainter()
+
++ |
+
+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 boolean |
+handleOtherClickEvent(Position pos)
+
++ Overwrite this method to signal if special zone was clicked |
+
+protected void |
+handleOtherMoveEvent(Position pos)
+
++ Overwrite this method to signal if special zone was hovered |
+
+protected void |
+setStones(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 | +
---|
+public AbstractStonePanel()+
+
+public AbstractStonePanel(float scale)+
+
scale
- the grid scale+Method Detail | +
---|
+protected StonePainter getStonePainter()+
+protected void clickAt(java.awt.Point p, + int clickCount, + boolean shift, + boolean control, + boolean alt)+
+
p
- the point in component coordinatesclickCount
- the click countshift
- is shift down?control
- is control down?alt
- is alt down?+protected Stone getHoveredStone()+
+
+protected boolean handleOtherClickEvent(Position pos)+
+
pos
- the clicked position
++protected void handleOtherMoveEvent(Position pos)+
+
pos
- the hovered position+protected void setStones(java.lang.Iterable<Pair<Stone,Position>> stones)+
+
stones
- the stones and positions+protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()+
+
+protected java.lang.Iterable<Pair<Stone,Position>> getStones()+
+
+public Event1<Position> getClickEvent()+
IClickable
+
getClickEvent
in interface IClickable
+public Event2<Stone,java.lang.Boolean> getStoneClickEvent()+
IStonePanel
+
getStoneClickEvent
in interface IStonePanel
+public Event2<Stone,java.lang.Boolean> getRangeClickEvent()+
IStonePanel
+
getRangeClickEvent
in interface IStonePanel
+public Event2<Stone,java.lang.Boolean> getSetClickEvent()+
IStonePanel
+
getSetClickEvent
in interface IStonePanel
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.awt.Component +
java.awt.Container +
javax.swing.JComponent +
javax.swing.JPanel +
jrummikub.view.impl.AbstractStonePanel +
jrummikub.view.impl.HandPanel +
class HandPanel
+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 void |
+paintComponent(java.awt.Graphics g1)
+
++ |
+
+ void |
+setHandHeight(int height)
+
++ Set the number of stones that fit on the hand vertically |
+
+ void |
+setHandWidth(int width)
+
++ Set the number of stones that fit on the hand horizontally |
+
+(package private) void |
+setSelectedStones(java.util.Collection<Stone> stones)
+
++ Sets the stones that are to be painted selected |
+
+ void |
+setStones(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()+
+
+Method Detail | +
---|
+public void setHandWidth(int width)+
IHandPanel
+
setHandWidth
in interface IHandPanel
width
- number of stones+public void setHandHeight(int height)+
IHandPanel
+
setHandHeight
in interface IHandPanel
height
- number of stones+protected void paintComponent(java.awt.Graphics g1)+
paintComponent
in class javax.swing.JComponent
+public void setStones(java.lang.Iterable<Pair<Stone,Position>> stones)+
AbstractStonePanel
+
setStones
in interface IHandPanel
setStones
in class AbstractStonePanel
stones
- the stones and positions+void setSelectedStones(java.util.Collection<Stone> stones)+
+
stones
- the selected stones
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.awt.Component +
java.awt.Container +
javax.swing.JComponent +
javax.swing.JPanel +
jrummikub.view.impl.PlayerPanel +
class PlayerPanel
+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 | +|
---|---|
+ IEvent |
+getEndTurnEvent()
+
++ The end turn event is emitted when the player wants to end his turn |
+
+ HandPanel |
+getHandPanel()
+
++ |
+
+ IEvent |
+getSortByGroupsEvent()
+
++ The sort by groups event is emitted when the player wants to sort his + stones by groups |
+
+ IEvent |
+getSortByRunsEvent()
+
++ The sort by runs event is emitted when the player wants to sort his stones + by runs |
+
+(package private) void |
+setCurrentPlayerName(java.lang.String playerName)
+
++ Sets the current player name |
+
+ void |
+setTimeLeft(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()+
+
+Method Detail | +
---|
+public HandPanel getHandPanel()+
getHandPanel
in interface IPlayerPanel
+void setCurrentPlayerName(java.lang.String playerName)+
+
playerName
- the player name+public void setTimeLeft(int time)+
IPlayerPanel
+
setTimeLeft
in interface IPlayerPanel
time
- the time left+public IEvent getSortByGroupsEvent()+
IPlayerPanel
+
getSortByGroupsEvent
in interface IPlayerPanel
+public IEvent getSortByRunsEvent()+
IPlayerPanel
+
getSortByRunsEvent
in interface IPlayerPanel
+public IEvent getEndTurnEvent()+
IPlayerPanel
+
getEndTurnEvent
in interface IPlayerPanel
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.awt.Component +
java.awt.Container +
javax.swing.JComponent +
javax.swing.JPanel +
jrummikub.view.impl.StartTurnPanel +
class StartTurnPanel
+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) IEvent |
+getStartTurnEvent()
+
++ The start turn event is emitted when the current player has clicked the + start turn button |
+
+(package private) void |
+setCurrentPlayerName(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()+
+
+Method Detail | +
---|
+void setCurrentPlayerName(java.lang.String playerName)+
+
playerName
- the player name+IEvent getStartTurnEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.awt.Component +
java.awt.Container +
javax.swing.JComponent +
javax.swing.JPanel +
jrummikub.view.impl.AbstractStonePanel +
jrummikub.view.impl.StoneCollectionPanel +
class StoneCollectionPanel
+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 boolean |
+handleOtherClickEvent(Position pos)
+
++ Overwrite this method to signal if special zone was clicked |
+
+ void |
+paintComponent(java.awt.Graphics g1)
+
++ |
+
+(package private) void |
+setSelectedStones(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()+
+
+Method Detail | +
---|
+void setSelectedStones(java.util.Collection<Stone> selectedStones)+
+
selectedStones
- the selected stones+protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()+
AbstractStonePanel
+
getTranslation
in class AbstractStonePanel
+IEvent1<java.awt.Point> getOtherClickEvent()+
+
+protected boolean handleOtherClickEvent(Position pos)+
AbstractStonePanel
+
handleOtherClickEvent
in class AbstractStonePanel
pos
- the clicked position
++public void paintComponent(java.awt.Graphics g1)+
paintComponent
in class javax.swing.JComponent
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++jrummikub.view.impl.StonePainter +
class StonePainter
+The StonePainter paints stones and converts between pixel and grid + coordinates +
+ +
+
+Field Summary | +|
---|---|
+static float |
+HEIGHT_SCALE
+
++ The height of one pixel in the scale of 1.0 |
+
+static float |
+WIDTH_SCALE
+
++ The width of one pixel in the scale of 1.0 |
+
+Constructor Summary | +|
---|---|
StonePainter(float scale)
+
++ |
+
+Method Summary | +|
---|---|
+ Position |
+calculatePosition(int x,
+ int y)
+
++ |
+
+ int |
+getStoneHeight()
+
++ |
+
+ int |
+getStoneWidth()
+
++ |
+
+ void |
+paintStone(java.awt.Graphics2D g,
+ Stone stone,
+ Position p,
+ boolean selected,
+ boolean hovered)
+
++ Paints a stone |
+
+ void |
+setScale(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 | +
---|
+public static final float WIDTH_SCALE+
+
+public static final float HEIGHT_SCALE+
+
+Constructor Detail | +
---|
+StonePainter(float scale)+
scale
- the scaling factor for the grid coordinates+Method Detail | +
---|
+public void setScale(float scale)+
+
scale
- the new scale+public Position calculatePosition(int x, + int y)+
x
- x position in screen coordinatesy
- y position in screen coordinates
++public int getStoneWidth()+
+public int getStoneHeight()+
+public void paintStone(java.awt.Graphics2D g, + Stone stone, + Position p, + boolean selected, + boolean hovered)+
+
g
- the graphics context to paint the stone onstone
- the stone to paintp
- the position of the stoneselected
- if selected is true the stone will be painted darkerhovered
- if hovered is true the stone will be painted brighter
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.awt.Component +
java.awt.Container +
javax.swing.JComponent +
javax.swing.JPanel +
jrummikub.view.impl.AbstractStonePanel +
jrummikub.view.impl.TablePanel +
class TablePanel
+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 . |
+
+ IStoneCollectionPanel |
+getStoneCollectionPanel()
+
++ 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 boolean |
+handleOtherClickEvent(Position pos)
+
++ Overwrite this method to signal if special zone was clicked |
+
+protected void |
+handleOtherMoveEvent(Position pos)
+
++ Overwrite this method to signal if special zone was hovered |
+
+protected void |
+paintComponent(java.awt.Graphics g1)
+
++ |
+
+ void |
+setLeftPlayerName(java.lang.String playerName)
+
++ Sets the player name on the left label |
+
+ void |
+setRightPlayerName(java.lang.String playerName)
+
++ Sets the player name on the right label |
+
+(package private) void |
+setSelectedStones(java.util.Collection<Stone> stones)
+
++ Sets the currently selected stones |
+
+ void |
+setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
++ Sets the stone sets lying on the table |
+
+ void |
+setTopPlayerName(java.lang.String playerName)
+
++ Sets the player name on the top label |
+
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()+
+
+Method Detail | +
---|
+public void setLeftPlayerName(java.lang.String playerName)+
ITablePanel
+
setLeftPlayerName
in interface ITablePanel
playerName
- the name to set+public void setTopPlayerName(java.lang.String playerName)+
ITablePanel
+
setTopPlayerName
in interface ITablePanel
playerName
- the name to set+public void setRightPlayerName(java.lang.String playerName)+
ITablePanel
+
setRightPlayerName
in interface ITablePanel
playerName
- the name to set+public Event1<StoneSet> getLeftConnectorClickEvent()+
ITablePanel
+
getLeftConnectorClickEvent
in interface ITablePanel
+public Event1<StoneSet> getRightConnectorClickEvent()+
ITablePanel
+
getRightConnectorClickEvent
in interface ITablePanel
+public void setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)+
ITablePanel
+
setStoneSets
in interface ITablePanel
stoneSets
- set stone sets on the table+public IStoneCollectionPanel getStoneCollectionPanel()+
ITablePanel
+
getStoneCollectionPanel
in interface ITablePanel
+void setSelectedStones(java.util.Collection<Stone> stones)+
+
stones
- the selected stones+protected boolean handleOtherClickEvent(Position pos)+
AbstractStonePanel
+
handleOtherClickEvent
in class AbstractStonePanel
pos
- the clicked position
++protected void handleOtherMoveEvent(Position pos)+
AbstractStonePanel
+
handleOtherMoveEvent
in class AbstractStonePanel
pos
- the hovered position+protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()+
AbstractStonePanel
+
getTranslation
in class AbstractStonePanel
+protected void paintComponent(java.awt.Graphics g1)+
paintComponent
in class javax.swing.JComponent
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.awt.Component +
java.awt.Container +
java.awt.Window +
java.awt.Frame +
javax.swing.JFrame +
jrummikub.view.impl.View +
public class View
+Implementation of the top-level view interface +
+ +
+
+Nested Class Summary | +
---|
Nested classes/interfaces inherited from class javax.swing.JFrame | +
---|
javax.swing.JFrame.AccessibleJFrame |
+
Nested classes/interfaces inherited from class java.awt.Frame | +
---|
java.awt.Frame.AccessibleAWTFrame |
+
Nested classes/interfaces inherited from class java.awt.Window | +
---|
java.awt.Window.AccessibleAWTWindow |
+
Nested classes/interfaces inherited from class java.awt.Container | +
---|
java.awt.Container.AccessibleAWTContainer |
+
Nested classes/interfaces inherited from class java.awt.Component | +
---|
java.awt.Component.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 | +|
---|---|
+ void |
+enableStartTurnPanel(boolean enable)
+
++ Enables or disables the player's StartTurnPanel |
+
+ void |
+enableWinPanel(boolean enable)
+
++ Enables or disables the panel shown when a player has won |
+
+ IEvent |
+getNewGameEvent()
+
++ The new game event is emitted when the player wants to start a new game |
+
+ IPlayerPanel |
+getPlayerPanel()
+
++ Returns the player panel |
+
+ IEvent |
+getQuitEvent()
+
++ The quit event is emitted when the player wants to quit the game |
+
+ IEvent |
+getStartTurnEvent()
+
++ The start turn event is emitted when the player wants to start his turn |
+
+ ITablePanel |
+getTablePanel()
+
++ Returns the table |
+
+ void |
+setCurrentPlayerName(java.lang.String playerName)
+
++ Sets the current player's name |
+
+ void |
+setSelectedStones(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 | +
---|
+public View()+
+
+Method Detail | +
---|
+public ITablePanel getTablePanel()+
IView
+
getTablePanel
in interface IView
+public IPlayerPanel getPlayerPanel()+
IView
+
getPlayerPanel
in interface IView
+public void setSelectedStones(java.util.Collection<Stone> stones)+
IView
+
setSelectedStones
in interface IView
stones
- the stones to be painted selected+public void enableStartTurnPanel(boolean enable)+
IView
+
enableStartTurnPanel
in interface IView
enable
- enable/disable+public void enableWinPanel(boolean enable)+
IView
+
enableWinPanel
in interface IView
enable
- enable/disable+public void setCurrentPlayerName(java.lang.String playerName)+
IView
+
setCurrentPlayerName
in interface IView
playerName
- the player name+public IEvent getStartTurnEvent()+
IView
+
getStartTurnEvent
in interface IView
+public IEvent getNewGameEvent()+
IView
+
getNewGameEvent
in interface IView
+public IEvent getQuitEvent()+
IView
+
getQuitEvent
in interface IView
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++java.awt.Component +
java.awt.Container +
javax.swing.JComponent +
javax.swing.JPanel +
jrummikub.view.impl.WinPanel +
class WinPanel
+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) IEvent |
+getNewGameEvent()
+
++ The new game event is emitted when the player wants to start a new game |
+
+(package private) IEvent |
+getQuitEvent()
+
++ The quit event is emitted when the player wants to quit the program |
+
+(package private) void |
+setCurrentPlayerName(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()+
+
+Method Detail | +
---|
+void setCurrentPlayerName(java.lang.String name)+
+
name
- the player name+IEvent getNewGameEvent()+
+
+IEvent getQuitEvent()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use AbstractStonePanel | +|
---|---|
jrummikub.view.impl | ++ |
+Uses of AbstractStonePanel in jrummikub.view.impl | +
---|
+ +
Subclasses of AbstractStonePanel in jrummikub.view.impl | +|
---|---|
+(package private) class |
+HandPanel
+
++ Implementation of the board |
+
+(package private) class |
+StoneCollectionPanel
+
++ Implementation of the stone collection (selection) |
+
+(package private) class |
+TablePanel
+
++ The implementation of the table |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use HandPanel | +|
---|---|
jrummikub.view.impl | ++ |
+Uses of HandPanel in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return HandPanel | +|
---|---|
+ HandPanel |
+PlayerPanel.getHandPanel()
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use StonePainter | +|
---|---|
jrummikub.view.impl | ++ |
+Uses of StonePainter in jrummikub.view.impl | +
---|
+ +
Methods in jrummikub.view.impl that return StonePainter | +|
---|---|
+protected StonePainter |
+AbstractStonePanel.getStonePainter()
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Classes
+
+ +AbstractStonePanel + +HandPanel + +PlayerPanel + +StartTurnPanel + +StoneCollectionPanel + +StonePainter + +TablePanel + +View + +WinPanel |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Class Summary | +|
---|---|
AbstractStonePanel | +Base class for panels that draw stones | +
HandPanel | +Implementation of the board | +
PlayerPanel | +Implementation of the player panel | +
StartTurnPanel | +A panel that is displayed before a player's turn | +
StoneCollectionPanel | +Implementation of the stone collection (selection) | +
StonePainter | +The StonePainter paints stones and converts between pixel and grid + coordinates | +
TablePanel | +The implementation of the table | +
View | +Implementation of the top-level view interface | +
WinPanel | +A panel that is displayed when a player has won | +
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+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 |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Interfaces
+
+ +IClickable + +IHandPanel + +IPlayerPanel + +IStoneCollectionPanel + +IStonePanel + +ITablePanel + +IView |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Interface Summary | +|
---|---|
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 | +
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+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 |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+ | +
---|
All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/doc/overview-summary.html b/doc/overview-summary.html new file mode 100644 index 0000000..2ec3c31 --- /dev/null +++ b/doc/overview-summary.html @@ -0,0 +1,171 @@ + + + +
+ +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages | +|
---|---|
jrummikub | ++ |
jrummikub.control | ++ |
jrummikub.model | ++ |
jrummikub.util | ++ |
jrummikub.view | ++ |
jrummikub.view.impl | ++ |
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Package jrummikub.view.impl | +
---|
+Class jrummikub.view.impl.View extends javax.swing.JFrame implements Serializable | +
---|
+Serialized Fields | +
---|
+TablePanel table+
+PlayerPanel playerPanel+
+StartTurnPanel startTurnPanel+
+WinPanel winPanel+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +