KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > chart > JFreeChartConstants


1 /* ======================================
2  * JFreeChart : a free Java chart library
3  * ======================================
4  *
5  * Project Info: http://www.jfree.org/jfreechart/index.html
6  * Project Lead: David Gilbert (david.gilbert@object-refinery.com);
7  *
8  * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
9  *
10  * This library is free software; you can redistribute it and/or modify it under the terms
11  * of the GNU Lesser General Public License as published by the Free Software Foundation;
12  * either version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License along with this
19  * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20  * Boston, MA 02111-1307, USA.
21  *
22  * ------------------------
23  * JFreeChartConstants.java
24  * ------------------------
25  * (C) Copyright 2002, 2003 by Object Refinery Limited.
26  *
27  * Original Author: David Gilbert (for Object Refinery Limited);
28  * Contributor(s): -;
29  *
30  * $Id: JFreeChartConstants.java,v 1.4 2003/06/13 15:44:45 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 06-Mar-2002 : Version 1 (DG);
35  * 11-Mar-2002 : Moved some constants into JFreeChartInfo.java (DG);
36  * 22-Jan-2003 : Added default background image alignment (DG);
37  *
38  */

39
40 package org.jfree.chart;
41
42 import java.awt.Font JavaDoc;
43 import java.awt.Image JavaDoc;
44 import java.awt.Paint JavaDoc;
45 import java.awt.SystemColor JavaDoc;
46
47 import org.jfree.ui.Align;
48
49 /**
50  * Useful constants relating to the {@link JFreeChart} class.
51  *
52  * @author David Gilbert
53  */

54 public interface JFreeChartConstants {
55
56     /** The default font for titles. */
57     public static final Font JavaDoc DEFAULT_TITLE_FONT = new Font JavaDoc("SansSerif", Font.BOLD, 18);
58
59     /** The default background color. */
60     public static final Paint JavaDoc DEFAULT_BACKGROUND_PAINT = SystemColor.control;
61
62     /** The default background image. */
63     public static final Image JavaDoc DEFAULT_BACKGROUND_IMAGE = null;
64
65     /** The default background image alignment. */
66     public static final int DEFAULT_BACKGROUND_IMAGE_ALIGNMENT = Align.FIT;
67
68     /** The default background image alpha. */
69     public static float DEFAULT_BACKGROUND_IMAGE_ALPHA = 0.5f;
70
71 }
72
Popular Tags