Coverage Report - cs.pancava.caltha.MyTheme
 
Classes in this File Line Coverage Branch Coverage Complexity
MyTheme
0%
0/9
N/A
1
 
 1  
 /* $Id: MyTheme.java 6 2008-06-09 06:22:48Z 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;
 21  
 
 22  
 import javax.swing.plaf.ColorUIResource;
 23  
 import javax.swing.plaf.metal.DefaultMetalTheme;
 24  
 
 25  
 
 26  
 /**
 27  
  * <p><b>Trida popisujici vlastni vzhled - tema Metal.</b></p>
 28  
  *
 29  
  * @author Milan Vaclavik<br />
 30  
  * @version $Revision: 6 $<br />
 31  
  * $LastChangedBy: mihlon $
 32  
  */
 33  
 public class MyTheme extends DefaultMetalTheme
 34  
 {
 35  
     /**
 36  
      * Prvni primarni barvu grafickeho tematu.
 37  
      */
 38  0
     private final ColorUIResource primary1 = new ColorUIResource(255, 255, 0);
 39  
 
 40  
     /**
 41  
      * Druha primarni barvu grafickeho tematu.
 42  
      */
 43  0
     private final ColorUIResource primary2 = new ColorUIResource(0, 255, 255);
 44  
 
 45  
     /**
 46  
      * Treti primarni barvu grafickeho tematu.
 47  
      */
 48  0
     private final ColorUIResource primary3 = new ColorUIResource(255, 0, 255);
 49  
 
 50  
     /**
 51  
      * Prazdny konstruktor. :)
 52  
      */
 53  
     public MyTheme()
 54  0
     {
 55  0
     }
 56  
 
 57  
     /**
 58  
      * Vrati nazet grafickeho tematu.
 59  
      * @return String : Nazev grafickeho tematu.
 60  
      */
 61  
     @Override
 62  
     public final String getName()
 63  
     {
 64  0
         return "MyTheme";
 65  
     }
 66  
 
 67  
     /**
 68  
      * Vrati prvni primarni barvu grafickeho tematu.
 69  
      * @return ColorUIResource : Prvni primarni barva temtu.
 70  
      */
 71  
     @Override
 72  
     protected final ColorUIResource getPrimary1()
 73  
     {
 74  0
         return this.primary1;
 75  
     }
 76  
 
 77  
     /**
 78  
      * Vrati druhou primarni barvu grafickeho tematu.
 79  
      * @return ColorUIResource : Druhou primarni barva temtu.
 80  
      */
 81  
     @Override
 82  
     protected final ColorUIResource getPrimary2()
 83  
     {
 84  0
         return this.primary2;
 85  
     }
 86  
 
 87  
     /**
 88  
      * Vrati treti primarni barvu grafickeho tematu.
 89  
      * @return ColorUIResource : Treti primarni barva temtu.
 90  
      */
 91  
     @Override
 92  
     protected final ColorUIResource getPrimary3()
 93  
     {
 94  0
         return this.primary3;
 95  
     }
 96  
 }