Coverage Report - ar.com.fdvs.dj.domain.DJChartColors
 
Classes in this File Line Coverage Branch Coverage Complexity
DJChartColors
15%
2/13
N/A
1
 
 1  
 /*
 2  
  * DynamicJasper: A library for creating reports dynamically by specifying
 3  
  * columns, groups, styles, etc. at runtime. It also saves a lot of development
 4  
  * time in many cases! (http://sourceforge.net/projects/dynamicjasper)
 5  
  *
 6  
  * Copyright (C) 2008  FDV Solutions (http://www.fdvsolutions.com)
 7  
  *
 8  
  * This library is free software; you can redistribute it and/or
 9  
  * modify it under the terms of the GNU Lesser General Public
 10  
  *
 11  
  * License as published by the Free Software Foundation; either
 12  
  *
 13  
  * version 2.1 of the License, or (at your option) any later version.
 14  
  *
 15  
  * This library is distributed in the hope that it will be useful,
 16  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 17  
  *
 18  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 19  
  *
 20  
  * Lesser General Public License for more details.
 21  
  *
 22  
  * You should have received a copy of the GNU Lesser General Public
 23  
  * License along with this library; if not, write to the Free Software
 24  
  *
 25  
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 26  
  *
 27  
  *
 28  
  */
 29  
 
 30  
 package ar.com.fdvs.dj.domain;
 31  
 
 32  
 import java.awt.Color;
 33  
 import java.util.Arrays;
 34  
 import java.util.List;
 35  
 
 36  
 import ar.com.fdvs.dj.domain.entities.Entity;
 37  
 
 38  
 /**
 39  
  * Some color templates to be used by charts.
 40  
  *
 41  
  * @author msimone
 42  
  */
 43  0
 public class DJChartColors extends DJBaseElement {
 44  
 
 45  
         private static final long serialVersionUID = Entity.SERIAL_VERSION_UID;
 46  
         
 47  
         public static List pale() {
 48  0
                 Color[] colors = { new Color(0xFFA07A), new Color(0xD2B48C),
 49  
                                 new Color(0xFFD700), new Color(0xFFE4E1), new Color(0xE0FFFF),
 50  
                                 new Color(0x90EE90) };
 51  0
                 return Arrays.asList(colors);
 52  
         }
 53  
 
 54  
         public static List msOfficePurples() {
 55  0
                 Color[] colors = { new Color(0x660066), new Color(0xFF8080),
 56  
                                 new Color(0x9999FF), new Color(0x993366), new Color(0xFFFFCC),
 57  
                                 new Color(0xCCFFFF) };
 58  0
                 return Arrays.asList(colors);
 59  
         }
 60  
 
 61  
         public static List simpleColors() {
 62  0
                 Color[] colors = { new Color(0xFD0100), new Color(0x32CB32),
 63  
                                 new Color(0x007EF8), new Color(0xFFFF01), new Color(0xAF2421),
 64  
                                 new Color(0xFF7F02) };
 65  0
                 return Arrays.asList(colors);
 66  
         }
 67  
 
 68  
         public static List desert() {
 69  0
                 Color[] colors = { new Color(0xFFFFD4), new Color(0xFED98E),
 70  
                                 new Color(0xFE9929), new Color(0xD95F0E), new Color(0xF03B20),
 71  
                                 new Color(0x993404) };
 72  0
                 return Arrays.asList(colors);
 73  
         }
 74  
 
 75  
         public static List justAnotherColorScheme() {
 76  0
                 Color[] colors = { new Color(0xD7191C), new Color(0xFDAE61),
 77  
                                 new Color(0xFFFFBF), new Color(0xABDDA4), new Color(0x2B83BA),
 78  
                                 new Color(0xFF7F02) };
 79  0
                 return Arrays.asList(colors);
 80  
         }
 81  
 
 82  
         public static List googleAnalytics() {
 83  8
                 Color[] colors = { new Color(0x9BBDDE), new Color(0xFFBC46),
 84  
                                 new Color(0xA2C488), new Color(0xCFC29F), new Color(0xD6B9DB),
 85  
                                 new Color(0xDEA19B) };
 86  8
                 return Arrays.asList(colors);
 87  
         }
 88  
 }