Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AnimateEventBoard |
|
| 1.0;1 |
1 | /****************************************************************************** | |
2 | * AnimateBoardLine.java - Encapsulate a "Board" line from fibs. | |
3 | * $Id$ | |
4 | * | |
5 | * BuckoFIBS - Backgammon by BuckoSoft | |
6 | * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp. | |
7 | * | |
8 | * $Log$ | |
9 | * Revision 1.1 2011/05/22 22:56:09 dick | |
10 | * c.b.f.B.g.boardTab.board becomes c.b.f.B.g.boardTab.boardPane . | |
11 | * | |
12 | * Revision 1.3 2011/05/17 22:50:04 dick | |
13 | * AnimateEvent moves to c.b.f.B.g.b.b which is where it is used. | |
14 | * | |
15 | * Revision 1.2 2011/05/16 11:36:43 dick | |
16 | * getTime() becomes getDuration(). | |
17 | * | |
18 | * Revision 1.1 2011/05/15 02:17:54 dick | |
19 | * Move the AnimateEvents to their own package. | |
20 | * | |
21 | * Revision 1.1 2011/05/13 14:51:02 dick | |
22 | * Encapsulate a "Board" line from fibs. | |
23 | * | |
24 | */ | |
25 | ||
26 | /* | |
27 | * This program is free software: you can redistribute it and/or modify | |
28 | * it under the terms of the GNU General Public License as published by | |
29 | * the Free Software Foundation, either version 3 of the License, or | |
30 | * (at your option) any later version. | |
31 | * | |
32 | * This program is distributed in the hope that it will be useful, | |
33 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
34 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
35 | * GNU General Public License for more details. | |
36 | * | |
37 | * You should have received a copy of the GNU General Public License | |
38 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
39 | * | |
40 | * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>. | |
41 | * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp. | |
42 | * | |
43 | */ | |
44 | package com.buckosoft.fibs.BuckoFIBS.gui.boardTab.boardPane; | |
45 | ||
46 | import com.buckosoft.fibs.domain.Board; | |
47 | ||
48 | /** Encapsulate a "Board" line from fibs. | |
49 | * @author Dick Balaska | |
50 | * @since 2011/05/12 | |
51 | * @version $Revision$ <br> $Date$ | |
52 | * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/BuckoFIBS/gui/boardTab/boardPane/AnimateBoardLine.java">cvs AnimateBoardLine.java</a> | |
53 | */ | |
54 | 0 | public class AnimateEventBoard extends AnimateEvent { |
55 | private Board board; | |
56 | ||
57 | /* (non-Javadoc) | |
58 | * @see com.buckosoft.fibs.BuckoFIBS.gui.board.AnimateEvent#getType() | |
59 | */ | |
60 | @Override | |
61 | public Type getType() { | |
62 | 0 | return(Type.Board); |
63 | } | |
64 | ||
65 | /** Board is instantaneous | |
66 | */ | |
67 | @Override | |
68 | public int getDuration() { | |
69 | 0 | return 0; |
70 | } | |
71 | ||
72 | ||
73 | @Override | |
74 | public boolean isGui() { | |
75 | 0 | return false; |
76 | } | |
77 | ||
78 | /** | |
79 | * @return the board | |
80 | */ | |
81 | public Board getBoard() { | |
82 | 0 | return board; |
83 | } | |
84 | ||
85 | /** | |
86 | * @param board the board to set | |
87 | */ | |
88 | public void setBoard(Board board) { | |
89 | 0 | this.board = board; |
90 | 0 | } |
91 | ||
92 | ||
93 | } |