KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > chart > axis > AxisConstants


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  * AxisConstants.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: AxisConstants.java,v 1.5 2003/06/13 15:45:53 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 06-Mar-2002 : Version 1 (DG);
35  * 25-Apr-2002 : Removed redundant HORIZONTAL and VERTICAL constants (DG);
36  * 05-Sep-2002 : Added DEFAULT_TICK_PAINT (DG);
37  * 16-Oct-2002 : Changed default tick paint to light gray (DG);
38  * 08-Nov-2002 : Moved to new package com.jrefinery.chart.axis. Added axis location
39  * constants (DG);
40  * 02-May-2003 : Removed TOP, BOTTOM, LEFT and RIGHT (see AxisLocation) (DG);
41  *
42  */

43
44 package org.jfree.chart.axis;
45
46 import java.awt.BasicStroke JavaDoc;
47 import java.awt.Color JavaDoc;
48 import java.awt.Font JavaDoc;
49 import java.awt.Insets JavaDoc;
50 import java.awt.Paint JavaDoc;
51 import java.awt.Stroke JavaDoc;
52
53 /**
54  * Useful constants for the {@link Axis} class and its subclasses.
55  *
56  * @author David Gilbert
57  */

58 public interface AxisConstants {
59
60     /** The default axis visibility. */
61     public static final boolean DEFAULT_AXIS_VISIBLE = true;
62
63     /** The default axis label font. */
64     public static final Font JavaDoc DEFAULT_AXIS_LABEL_FONT = new Font JavaDoc("SansSerif", Font.PLAIN, 12);
65
66     /** The default axis label paint. */
67     public static final Paint JavaDoc DEFAULT_AXIS_LABEL_PAINT = Color.black;
68
69     /** The default axis label insets. */
70     public static final Insets JavaDoc DEFAULT_AXIS_LABEL_INSETS = new Insets JavaDoc(3, 3, 3, 3);
71
72     /** The default tick labels visibility. */
73     public static final boolean DEFAULT_TICK_LABELS_VISIBLE = true;
74
75     /** The default tick label font. */
76     public static final Font JavaDoc DEFAULT_TICK_LABEL_FONT = new Font JavaDoc("SansSerif", Font.PLAIN, 10);
77
78     /** The default tick label paint. */
79     public static final Paint JavaDoc DEFAULT_TICK_LABEL_PAINT = Color.black;
80
81     /** The default tick label insets. */
82     public static final Insets JavaDoc DEFAULT_TICK_LABEL_INSETS = new Insets JavaDoc(2, 4, 2, 4);
83
84     /** The default tick marks visible. */
85     public static final boolean DEFAULT_TICK_MARKS_VISIBLE = true;
86
87     /** The default tick stroke. */
88     public static final Stroke JavaDoc DEFAULT_TICK_MARK_STROKE = new BasicStroke JavaDoc(1);
89
90     /** The default tick paint. */
91     public static final Paint JavaDoc DEFAULT_TICK_MARK_PAINT = Color.gray;
92
93     /** The default tick mark inside length. */
94     public static final float DEFAULT_TICK_MARK_INSIDE_LENGTH = 0.0f;
95
96     /** The default tick mark outside length. */
97     public static final float DEFAULT_TICK_MARK_OUTSIDE_LENGTH = 2.0f;
98
99 }
100
Popular Tags