View Javadoc

1   /* $Id: EditorDesktopNone.java 9 2008-07-31 19:19:35Z mihlon $ */
2   
3   //////////////////////////////////////////////////////////////////////////////
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  //////////////////////////////////////////////////////////////////////////////
19  
20  package cs.pancava.caltha.desktop;
21  
22  import javax.swing.JPanel;
23  
24  /**
25   * <p><b>Tato trida definuje prazdnou plochu, jelikoz nebyl vybran zadny editor hry.</b></p>
26   *
27   * @author Milan Vaclavik<br />
28   * @version $Revision: 9 $<br />
29   * $LastChangedBy: mihlon $<br />
30   */
31  public class EditorDesktopNone extends EditorDesktop
32  {
33      /**
34       * Identifikace tridy - datum vzniku tridy :).
35       */
36      private static final long serialVersionUID = 20080731162343L;
37  
38      /**
39       * Konstruktor - vytvori zakladni plochu - jeste jsme nevybrali zadny editor.
40       */
41      public EditorDesktopNone()
42      {
43          super(EditorDesktop.EDITOR_NONE);
44      }
45  
46      /**
47       * Vytvori zakladni plochu pro dany typ editoru.
48       */
49      @Override
50      public final void createDesktop()
51      {
52          // Vytvoreni panelu pro vlozeni jednotlivych oken editoru.
53          this.setMainDesktop(new JPanel());
54          this.getMainDesktop().setOpaque(true);
55      }
56  
57      /**
58       * Jelikoz se nejedna o skutecny editor, tak neni treba implementovat metodu
59       * pro spravne zobrazeni plochy pri zmene velikosti okna programu.
60       */
61      @Override
62      public void resizeWin()
63      {
64      }
65  }