OSDN Git Service

Fixed lots of warnings
[sudokuki/sudokuki.git] / src / classes / net / jankenpoi / sudokuki / model / GridChangedEvent.java
1 /*
2  * Sudokuki - essential sudoku game
3  * Copyright (C) 2007-2012 Sylvain Vedrenne
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  * 
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  * 
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 package net.jankenpoi.sudokuki.model;
19
20 import java.util.EventObject;
21
22 public class GridChangedEvent extends EventObject {
23
24         private static final long serialVersionUID = 1L;
25         private int line;
26         private int column;
27         private short infos;
28
29         public GridChangedEvent(Object source, int li, int co, short infos) {
30                 super(source);
31                 this.line = li;
32                 this.column = co;
33                 this.infos = infos;
34         }
35
36         public Position getPosition() {
37                 return new Position(line, column);
38         }
39
40         public short getInfos() {
41                 return infos;
42         }
43         
44 }