KickJava   Java API By Example, From Geeks To Geeks.

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


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  * ChartPanel.java
24  * ---------------
25  * (C) Copyright 2002, 2003 by Object Refinery Limited and Contributors.
26  *
27  * Original Author: David Gilbert (for Object Refinery Limited);
28  * Contributors: -;
29  *
30  * $Id: ChartPanelConstants.java,v 1.3 2003/06/05 08:26:04 mungady Exp $
31  *
32  * Changes:
33  * --------
34  * 27-May-2002 : Version 1 (code moved from the ChartPanel class);
35  * 25-Jun-2002 : Increased max draw width and height (DG);
36  *
37  */

38
39 package org.jfree.chart;
40
41 /**
42  * Useful constants for the {@link ChartPanel} class.
43  *
44  * @author David Gilbert
45  */

46 public interface ChartPanelConstants {
47
48     /** Default setting for buffer usage. */
49     boolean DEFAULT_BUFFER_USED = false;
50
51     /** The default panel width. */
52     int DEFAULT_WIDTH = 680;
53
54     /** The default panel height. */
55     int DEFAULT_HEIGHT = 420;
56
57     /** The default limit below which chart scaling kicks in. */
58     int DEFAULT_MINIMUM_DRAW_WIDTH = 300;
59
60     /** The default limit below which chart scaling kicks in. */
61     int DEFAULT_MINIMUM_DRAW_HEIGHT = 200;
62
63     /** The default limit below which chart scaling kicks in. */
64     int DEFAULT_MAXIMUM_DRAW_WIDTH = 800;
65
66     /** The default limit below which chart scaling kicks in. */
67     int DEFAULT_MAXIMUM_DRAW_HEIGHT = 600;
68
69     /** The minimum size required to perform a zoom on a rectangle */
70     int MINIMUM_DRAG_ZOOM_SIZE = 20;
71
72     /** Properties action command. */
73     String JavaDoc PROPERTIES_ACTION_COMMAND = "PROPERTIES";
74
75     /** Save action command. */
76     String JavaDoc SAVE_ACTION_COMMAND = "SAVE";
77
78     /** Print action command. */
79     String JavaDoc PRINT_ACTION_COMMAND = "PRINT";
80
81     /** Zoom in (both axes) action command. */
82     String JavaDoc ZOOM_IN_BOTH_ACTION_COMMAND = "ZOOM_IN_BOTH";
83
84     /** Zoom in (horizontal axis only) action command. */
85     String JavaDoc ZOOM_IN_HORIZONTAL_ACTION_COMMAND = "ZOOM_IN_HORIZONTAL";
86
87     /** Zoom in (vertical axis only) action command. */
88     String JavaDoc ZOOM_IN_VERTICAL_ACTION_COMMAND = "ZOOM_IN_VERTICAL";
89
90     /** Zoom out (both axes) action command. */
91     String JavaDoc ZOOM_OUT_BOTH_ACTION_COMMAND = "ZOOM_OUT_BOTH";
92
93     /** Zoom out (horizontal axis only) action command. */
94     String JavaDoc ZOOM_OUT_HORIZONTAL_ACTION_COMMAND = "ZOOM_HORIZONTAL_BOTH";
95
96     /** Zoom out (vertical axis only) action command. */
97     String JavaDoc ZOOM_OUT_VERTICAL_ACTION_COMMAND = "ZOOM_VERTICAL_BOTH";
98
99     /** Zoom reset (both axes) action command. */
100     String JavaDoc AUTO_RANGE_BOTH_ACTION_COMMAND = "AUTO_RANGE_BOTH";
101
102     /** Zoom reset (horizontal axis only) action command. */
103     String JavaDoc AUTO_RANGE_HORIZONTAL_ACTION_COMMAND = "AUTO_RANGE_HORIZONTAL";
104
105     /** Zoom reset (vertical axis only) action command. */
106     String JavaDoc AUTO_RANGE_VERTICAL_ACTION_COMMAND = "AUTO_RANGE_VERTICAL";
107
108 }
109
Popular Tags