001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)ChartConstants.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package org.openesb.tools.extchart.property;
030:
031: /**
032: * ChartConstants.java
033: *
034: * @author Wei
035: * @version :$Revision: 1.1 $
036: */
037:
038: public interface ChartConstants {
039: /** IS_3D_KEY is a key to a default. */
040: public static final String IS_3D_KEY = "cd_is3d";
041:
042: /** IS_INCLUDE_LEGEND_KEY is a key to a default. */
043: public static final String IS_INCLUDE_LEGEND_KEY = "cd_includeLegend";
044:
045: /** IMAGE_WIDTH_KEY is a key to a default. */
046: public static final String IMAGE_WIDTH_KEY = "cd_imageWidth";
047:
048: /** IMAGE_HEIGHT_KEY is a key to a default. */
049: public static final String IMAGE_HEIGHT_KEY = "cd_imageHeight";
050:
051: /** REPORT_WIDTH_KEY is a key to a default. */
052: public static final String REPORT_WIDTH_KEY = "cd_reportWidth";
053:
054: /** REPORT_HEIGHT_KEY is a key to a default. */
055: public static final String REPORT_HEIGHT_KEY = "cd_reportHeight";
056:
057: /** Key for legend anchor */
058: public static final String LEGEND_ANCHOR_KEY = "legend-anchor";
059:
060: /** Key for 3D depth factor */
061: public static final String DEPTH_FACTOR_KEY = "depth-factor";
062:
063: /** Key for Circular property */
064: public static final String CIRCULAR_KEY = "circular";
065:
066: /** Key for Direction */
067: public static final String DIRECTION_KEY = "direction";
068:
069: /** Key for InteriorGap */
070: public static final String INTERIOR_GAP_KEY = "interior-gap";
071:
072: /** Key for determining if drilldown is enabled */
073: public static final String DRILLDOWN_IS_ENABLED_KEY = "cd_drilldown_is_enabled";
074:
075: /** Key for determining chart creation format */
076: public static final String CHART_FILE_CREATION_FORMAT_TYPE_KEY = "cd_chart_file_creation_format_type";
077:
078: /** Key for standard url */
079: public static final String DRILLDOWN_CHART_NAME_KEY = "cd_drilldown_chart_name";
080:
081: /** Key for display of navigation buttons */
082: public static final String DISPLAY_NAVIGATION_BUTTONS_KEY = "cd_display_navigation_buttons";
083:
084: /** Key for standard url */
085: public static final String NAVIGATION_CHART_NAME_KEY = "cd_navigation_chart_name";
086:
087: /** servlet parameter for display of navigation buttons */
088: public static final String NAVIGATION_BUTTONS = "displayNavigationButtons";
089: /** Key for generation type * /
090: public static final String DRILLDOWN_URL_TYPE_KEY = "cd_drilldown_url_type";
091: */
092: /** Key for letting null custom urls default to standard url * /
093: public static final String DRILLDOWN_MULTIPLE_URL_DEFAULTS_TO_SINGLE_URL_KEY = "cd_drilldown_multiple_url_defaults_to_single_url";
094: */
095:
096: /** DEFAULT_3D is used as a hard default. */
097: public static final boolean DEFAULT_3D = true;
098:
099: /** DEFAULT_INCLUDE_LEGEND is used as a hard default. */
100: public static final boolean DEFAULT_INCLUDE_LEGEND = false;
101:
102: /** DEFAULT_CHART_TITLE is used as a hard default. */
103: public static final String DEFAULT_CHART_TITLE = "Chart";
104:
105: /** DEFAULT_IMAGE_WIDTH is used as a hard default. */
106: public static final int DEFAULT_IMAGE_WIDTH = 680;
107:
108: /** DEFAULT_IMAGE_HEIGHT is used as a hard default. */
109: public static final int DEFAULT_IMAGE_HEIGHT = 420;
110:
111: /** DEFAULT_REPORT_WIDTH is used as a hard default. */
112: public static final int DEFAULT_REPORT_WIDTH = 680;
113:
114: /** DEFAULT_REPORT_HEIGHT is used as a hard default. */
115: public static final int DEFAULT_REPORT_HEIGHT = 420;
116:
117: /** DEFAULT_MINIMUM_IMAGE_WIDTH is used as a hard default. */
118: public static final int DEFAULT_MINIMUM_IMAGE_WIDTH = 10;
119:
120: /** DEFAULT_MAXIMUM_IMAGE_WIDTH is used as a hard default. */
121: public static final int DEFAULT_MAXIMUM_IMAGE_WIDTH = 2000;
122:
123: /** DEFAULT_MINIMUM_IMAGE_HEIGHT is used as a hard default. */
124: public static final int DEFAULT_MINIMUM_IMAGE_HEIGHT = 10;
125:
126: /** DEFAULT_MAXIMUM_IMAGE_HEIGHT is used as a hard default. */
127: public static final int DEFAULT_MAXIMUM_IMAGE_HEIGHT = 2000;
128:
129: /** DEFAULT_MINIMUM_REPORT_WIDTH is used as a hard default. */
130: public static final int DEFAULT_MINIMUM_REPORT_WIDTH = 10;
131:
132: /** DEFAULT_MAXIMUM_REPORT_WIDTH is used as a hard default. */
133: public static final int DEFAULT_MAXIMUM_REPORT_WIDTH = 2000;
134:
135: /** DEFAULT_MINIMUM_REPORT_HEIGHT is used as a hard default. */
136: public static final int DEFAULT_MINIMUM_REPORT_HEIGHT = 10;
137:
138: /** DEFAULT_MAXIMUM_REPORT_HEIGHT is used as a hard default. */
139: public static final int DEFAULT_MAXIMUM_REPORT_HEIGHT = 2000;
140:
141: /** Default 3D depth factor */
142: public static final double DEFAULT_DEPTH_FACTOR = 0.3;
143:
144: /** Anchor south */
145: public static final int ANCHOR_SOUTH = 0;
146:
147: /** Anchor north */
148: public static final int ANCHOR_NORTH = 1;
149:
150: /** Anchor west */
151: public static final int ANCHOR_WEST = 2;
152:
153: /** Anchor east */
154: public static final int ANCHOR_EAST = 3;
155:
156: /** Direction - clockwise */
157: public static final int CLOCKWISE = 0;
158:
159: /** Direction - anticlockwise */
160: public static final int ANTICLOCKWISE = 1;
161:
162: /** Default legend anchor */
163: public static final int DEFAULT_LEGEND_ANCHOR = ANCHOR_SOUTH;
164:
165: /** CHART_FILE_CREATION_FORMAT_JPEG_TYPE is a format for JPEG chart generation */
166: public static final int CHART_FILE_CREATION_FORMAT_JPEG_TYPE = 0;
167: /** CHART_FILE_CREATION_FORMAT_SVG_TYPE is a format for SVG chart generation */
168: public static final int CHART_FILE_CREATION_FORMAT_SVG_TYPE = 1;
169: /** CHART_FILE_CREATION_FORMAT_PNG_TYPE is a format for PNG chart generation */
170: public static final int CHART_FILE_CREATION_FORMAT_PNG_TYPE = 2;
171: /** CHART_FILE_CREATION_FORMAT_TYPES is used as a list of supported chart generations formats */
172: public static int[] CHART_FILE_CREATION_FORMAT_TYPES = {
173: CHART_FILE_CREATION_FORMAT_JPEG_TYPE,
174: CHART_FILE_CREATION_FORMAT_SVG_TYPE,
175: CHART_FILE_CREATION_FORMAT_PNG_TYPE };
176: /** DEFAULT_CHART_FILE_CREATION_FORMAT_TYPE is the default file creation format for a chart */
177: public static final int DEFAULT_CHART_FILE_CREATION_FORMAT_TYPE = CHART_FILE_CREATION_FORMAT_JPEG_TYPE;
178:
179: /** DEFAULT_DRILLDOWN_IS_ENABLED is the default for drilldown to be used */
180: public static final boolean DEFAULT_DRILLDOWN_IS_ENABLED = true;
181: /** DEFAULT_DRILLDOWN_CHART_NAME is the default drilldown chart to be used */
182: public static final String DEFAULT_DRILLDOWN_CHART_NAME = "";//null;
183: /** DEFAULT_DISPLAY_NAVIGATION_BUTTONS is a default */
184: public static final boolean DEFAULT_DISPLAY_NAVIGATION_BUTTONS = false;
185: /** DEFAULT_NAVIGATION_CHART_NAME is the default navigation chart to be used */
186: public static final String DEFAULT_NAVIGATION_CHART_NAME = "";//null;
187:
188: /** DRILLDOWN_URL_SINGLE_TYPE is for single specified url, JFreeChart default * /
189: public static final int DRILLDOWN_URL_SINGLE_TYPE = 0;
190: /** DRILLDOWN_URL_MULTIPLE_TYPE is for multiple specified url * /
191: public static final int DRILLDOWN_URL_MULTIPLE_TYPE = 1;
192: /** DEFAULT_DRILLDOWN_URL_TYPE is the default type of URL generation to be used * /
193: public static final int DEFAULT_DRILLDOWN_URL_TYPE = DRILLDOWN_URL_SINGLE_TYPE;
194: /** DEFAULT_DRILLDOWN_MULTIPLE_URL_DEFAULTS_TO_SINGLE_URL is the default URL to be used * /
195: public static final boolean DEFAULT_DRILLDOWN_MULTIPLE_URL_DEFAULTS_TO_SINGLE_URL = true;
196: */
197: }
|