[Picross-commit] SF.net SVN: picross: [74] trunk/src/picross/grid
Status: Pre-Alpha
Brought to you by:
yvan_norsa
From: <yva...@us...> - 2008-05-05 08:54:17
|
Revision: 74 http://picross.svn.sourceforge.net/picross/?rev=74&view=rev Author: yvan_norsa Date: 2008-05-05 01:54:15 -0700 (Mon, 05 May 2008) Log Message: ----------- code clean-up Modified Paths: -------------- trunk/src/picross/grid/GridController.java trunk/src/picross/grid/GridMediator.java Modified: trunk/src/picross/grid/GridController.java =================================================================== --- trunk/src/picross/grid/GridController.java 2008-05-05 08:53:08 UTC (rev 73) +++ trunk/src/picross/grid/GridController.java 2008-05-05 08:54:15 UTC (rev 74) @@ -78,12 +78,6 @@ /** Command asking to enable the Erase mode. */ static final String ERASE_MODE_CMD = "ERASE_MODE_CMD"; - /** Checking a box. */ - //static final int CHECK_ACTION = 0; - - /** Crossing a box. */ - //static final int CROSS_ACTION = 1; - /*** Static field ***/ /** The class' logger. */ @@ -224,7 +218,6 @@ if (this.eraseMode) { type = GridAction.EMPTY; } else { - //int type = GridController.modifiersToType(modifiers); type = GridController.modifiersToType(modifiers); } @@ -245,19 +238,15 @@ * @param modifiers mouse event modifiers * @return corresponding action, or -1 */ - //private static int modifiersToType(int modifiers) { private static GridAction modifiersToType(int modifiers) { switch (modifiers) { case MouseEvent.BUTTON1_MASK: - //return GridController.CHECK_ACTION; return GridAction.CHECK; case MouseEvent.BUTTON3_MASK: - //return GridController.CROSS_ACTION; return GridAction.CROSS; default: - //return -1; return GridAction.UNKNOWN; } } Modified: trunk/src/picross/grid/GridMediator.java =================================================================== --- trunk/src/picross/grid/GridMediator.java 2008-05-05 08:53:08 UTC (rev 73) +++ trunk/src/picross/grid/GridMediator.java 2008-05-05 08:54:15 UTC (rev 74) @@ -141,29 +141,28 @@ /*** Methods implanted from the interface IGridMediator ***/ - /** Tells the application mediator the grid has been filled. */ + /** {@inheritDoc} */ + @Override public void congratulations() { this.fireEventPerformed(GridController.GRID_FILLED_CMD); } - /** - * Asks to repaint a box. - * - * @param row row number of the box - * @param column column number of the box - */ + /** {@inheritDoc} */ + @Override public void repaint(int row, int column) { this.fireEventPerformed(GridController.PAINT_CMD, new PaintCommand(row, column)); } - /** Asks to repaint the column hints. */ + /** {@inheritDoc} */ + @Override public void repaintColHints(int column) { this.fireEventPerformed(//GridController.REPAINT_TOP_HINTS_CMD); new RepaintTopHintsCommand(column)); } - /** Asks to repaint the row hints. */ + /** {@inheritDoc} */ + @Override public void repaintRowHints(int row) { this.fireEventPerformed(//GridController.REPAINT_LEFT_HINTS_CMD); new RepaintLeftHintsCommand(row)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |