From 6cac00762bce24c3997a9e4958419013b60c4be2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 5 May 2011 00:01:24 +0200 Subject: Added some documentation git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@134 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/ITablePanel.java | 2 -- src/jrummikub/view/IView.java | 16 ++++++++++++++++ src/jrummikub/view/impl/HandPanel.java | 1 - 3 files changed, 16 insertions(+), 3 deletions(-) (limited to 'src/jrummikub') diff --git a/src/jrummikub/view/ITablePanel.java b/src/jrummikub/view/ITablePanel.java index 5c4198c..d146ca3 100644 --- a/src/jrummikub/view/ITablePanel.java +++ b/src/jrummikub/view/ITablePanel.java @@ -1,7 +1,5 @@ package jrummikub.view; -import java.util.Map; - import jrummikub.model.Position; import jrummikub.model.StoneSet; import jrummikub.util.Event1; diff --git a/src/jrummikub/view/IView.java b/src/jrummikub/view/IView.java index 115308d..d69d942 100644 --- a/src/jrummikub/view/IView.java +++ b/src/jrummikub/view/IView.java @@ -54,9 +54,25 @@ public interface IView { */ public IEvent getStartTurnEvent(); + /** + * Enables or disables the panel shown when a player has won + * + * @param enable + * enable/disable + */ void enableWinPanel(boolean enable); + /** + * The quit event is emitted when the player wants to quit the game + * + * @return the event + */ IEvent getQuitEvent(); + /** + * The new game event is emitted when the player wants to start a new game + * + * @return the event + */ IEvent getNewGameEvent(); } diff --git a/src/jrummikub/view/impl/HandPanel.java b/src/jrummikub/view/impl/HandPanel.java index a2d643c..b68a1d5 100644 --- a/src/jrummikub/view/impl/HandPanel.java +++ b/src/jrummikub/view/impl/HandPanel.java @@ -11,7 +11,6 @@ import java.awt.event.ComponentEvent; import java.awt.image.BufferedImage; import java.util.Collection; import java.util.Collections; -import java.util.Map; import javax.swing.ImageIcon; import javax.swing.border.MatteBorder; -- cgit v1.2.3