View Javadoc

1   package org.codehaus.mojo.dashboard.report.plugin.utils;
2   
3   /*
4    * Copyright 2006 David Vicente
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  
20  import java.awt.Color;
21  import java.awt.Paint;
22  
23  /**
24   *
25   * @author <a href="dvicente72@gmail.com">David Vicente</a>
26   *
27   */
28  public class ChartUtils
29  {
30  
31      /**
32       * Blue light color.
33       */
34      public static final Paint BLUE_LIGHT = new Color( 65, 105, 225 );
35      public static final Paint BLUE_STEEL1_LIGHT = new Color( 188, 210, 238 );
36      public static final Paint BLUE_STEEL2_LIGHT = new Color( 202, 225, 255 );
37      public static final Paint BLUE_VERY_LIGHT = new Color( 222, 245, 245 );
38  
39  
40  
41      /**
42       * Yellow light color.
43       */
44      public static final Paint YELLOW_LIGHT = new Color( 255, 255, 153 );
45  
46      /**
47       * Standard width of the resulting chart file.
48       */
49      public static final int STANDARD_WIDTH = 800;
50  
51      /**
52       * Standard Height of the resulting chart file.
53       */
54      public static final int STANDARD_HEIGHT = 400;
55  
56      /**
57       * minimum width of the resulting chart file.
58       */
59      public static final int MINIMUM_WIDTH = 600;
60  
61      /**
62       * minimum Height of the resulting chart file.
63       */
64      public static final int MINIMUM_HEIGHT = 300;
65  
66      /**
67       * Standard Height of a single bar chart line.
68       */
69      public static final int STANDARD_BARCHART_ENTRY_HEIGHT = 13;
70  
71      /**
72       * Additional Height of a bar chart.
73       */
74      public static final int STANDARD_BARCHART_ADDITIONAL_HEIGHT = 40;
75  
76      /**
77       * Standard width of a time series chart line.
78       */
79      public static final int STANDARD_TIME_ENTRY_WIDTH = 60;
80  
81      /**
82       * Additional width of a time series chart.
83       */
84      public static final int STANDARD_TIME_ADDITIONAL_WIDTH = 50;
85  
86      /**
87       * Additional width of a time series chart.
88       */
89      public static final int STANDARD_TIME_ADDITIONAL_HEIGHT = 50;
90  
91  }