View Javadoc

1   package net.sf.mmapps.applications.developer.plaf;
2   
3   import javax.swing.plaf.ColorUIResource;
4   import javax.swing.plaf.metal.DefaultMetalTheme;
5   /***
6    * minimal theme for MMBase developer based onn 
7    * {@url http://www.codeproject.com/useritems/theme.asp}
8    * @author Kees Jongenburger
9    * @version $Id: MMBaseTheme.java,v 1.1.1.1 2004/02/06 08:44:08 keesj Exp $
10   **/
11  public class MMBaseTheme extends DefaultMetalTheme{
12      public String getName() { return "MMBase Developer Theme";};
13      private final ColorUIResource primary1     = new ColorUIResource(0x00, 0x00, 0x00);
14      private final ColorUIResource primary2     = new ColorUIResource(0x41, 0xBE, 0xB4);
15      private final ColorUIResource primary3     = new ColorUIResource(0x41, 0xBE, 0xB4);
16      
17      private final ColorUIResource secondary1   = new ColorUIResource(0x41, 0xBE, 0xB4);
18      private final ColorUIResource secondary2   = new ColorUIResource(0x41, 0xBE, 0xB4); // niet actief ???
19      private final ColorUIResource secondary3   = new ColorUIResource(0x00, 0x40, 0x5A);
20      
21      // the functions overridden from the base class => DefaultMetalTheme
22      
23      protected ColorUIResource getPrimary1() { return primary1; }
24      protected ColorUIResource getPrimary2() { return primary2; }
25      protected ColorUIResource getPrimary3() { return primary3; }
26      
27      protected ColorUIResource getSecondary1() { return secondary1; }
28      protected ColorUIResource getSecondary2() { return secondary2; }
29      protected ColorUIResource getSecondary3() { return secondary3; }
30  
31      protected ColorUIResource getBlack() { return new ColorUIResource(0xFF, 0xFF, 0xFF); }
32      protected ColorUIResource getWhite() { return new ColorUIResource(0x00, 0x40, 0x5A); }
33  }