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: * @(#)PieConstants.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.pie;
030:
031: import java.awt.Font;
032:
033: /**
034: * PieConstants.java
035: *
036: * @author Wei
037: * @version :$Revision: 1.1 $
038: */
039:
040: public interface PieConstants {
041: /** RADIUS_KEY is the key for a radius default. */
042: public static final String RADIUS_KEY = "pd_radius";
043:
044: /** SECTION_LABEL_TYPE_KEY is the key for pie chart section labels type. */
045: public static final String SECTION_LABEL_TYPE_KEY = "pd_sectionLabelsType";
046:
047: /** TOOLTIP_LABEL_FORMAT_KEY is the key for pie chart tooltip labels format. */
048: public static final String TOOLTIP_LABEL_FORMAT_KEY = "pd_tooltipLabelsType";
049:
050: /** INDIVIDUAL_SLICE_LABEL_KEY is the key for pie chart labels. */
051: public static final String INDIVIDUAL_SLICE_LABEL_KEY = "pd_label";
052:
053: /** INDIVIDUAL_EXPLODE_SLICE_KEY is the key for pie chart exploded slices on/off. */
054: public static final String INDIVIDUAL_SLICE_IS_EXPLODED_KEY = "pd_isexploded";
055:
056: /** INDIVIDUAL_EXPLOEDED_SLICE_PERCENT_KEY is the key for exploded slices percentage. */
057: public static final String INDIVIDUAL_SLICE_EXPLODE_PERCENT_KEY = "pd_explodepercent";
058:
059: /** Key for SectionLabelFont */
060: public static final String SECTION_LABEL_FONT_KEY = "section-label-font";
061:
062: /** Key for SectionLabelGap */
063: public static final String SECTION_LABEL_GAP_KEY = "section-label-gap";
064:
065: /** Key for SectionLabelPaint */
066: public static final String SECTION_LABEL_PAINT_KEY = "section-label-paint";
067:
068: /** Key for showSeriesLabels */
069: public static final String SHOW_SECTION_LABELS_KEY = "show-section-labels";
070:
071: /** Key for SeriesLabelFont */
072: public static final String SERIES_LABEL_FONT_KEY = "series-label-font";
073:
074: /** Key for SeriesLabelPaint */
075: public static final String SERIES_LABEL_PAINT_KEY = "series-label-paint";
076:
077: /** SECTION_NO_LABELS it the key for no label display. */
078: public static final int SECTION_NO_LABELS = 0;
079:
080: /** SECTION_NAME_LABELS it the key for name label display. */
081: public static final int SECTION_NAME_LABELS = 1;
082:
083: /** SECTION_VALUE_LABELS it the key for value label display. */
084: public static final int SECTION_VALUE_LABELS = 2;
085:
086: /** SECTION_PERCENT_LABELS it the key for percent label display. */
087: public static final int SECTION_PERCENT_LABELS = 3;
088:
089: /** SECTION_NAME_AND_VALUE_LABELS it the key for name/value label display. */
090: public static final int SECTION_NAME_AND_VALUE_LABELS = 4;
091:
092: /** SECTION_NAME_AND_PERCENT_LABELS it the key for name/percent label display. */
093: public static final int SECTION_NAME_AND_PERCENT_LABELS = 5;
094:
095: /** SECTION_VALUE_AND_PERCENT_LABELS it the key for value/percent label display. */
096: public static final int SECTION_VALUE_AND_PERCENT_LABELS = 6;
097:
098: /** SECTION_NAME_VALUE_AND_PERCENT_LABELS it the key for value/percent label display. */
099: public static final int SECTION_NAME_VALUE_AND_PERCENT_LABELS = 7;
100:
101: /** TOOLTIP_NO_LABELS it the key for no label display. */
102: public static final int TOOLTIP_NO_LABELS = 0;
103:
104: /** TOOLTIP_NAME_LABELS it the key for name label display. */
105: public static final int TOOLTIP_NAME_LABELS = 1;
106:
107: /** TOOLTIP_VALUE_LABELS it the key for value label display. */
108: public static final int TOOLTIP_VALUE_LABELS = 2;
109:
110: /** TOOLTIP_PERCENT_LABELS it the key for percent label display. */
111: public static final int TOOLTIP_PERCENT_LABELS = 3;
112:
113: /** TOOLTIP_NAME_AND_VALUE_LABELS it the key for name/value label display. */
114: public static final int TOOLTIP_NAME_AND_VALUE_LABELS = 4;
115:
116: /** TOOLTIP_NAME_AND_PERCENT_LABELS it the key for name/percent label display. */
117: public static final int TOOLTIP_NAME_AND_PERCENT_LABELS = 5;
118:
119: /** TOOLTIP_VALUE_AND_PERCENT_LABELS it the key for value/percent label display. */
120: public static final int TOOLTIP_VALUE_AND_PERCENT_LABELS = 6;
121:
122: /** TOOLTIP_NAME_VALUE_AND_PERCENT_LABELS it the key for value/percent label display. */
123: public static final int TOOLTIP_NAME_VALUE_AND_PERCENT_LABELS = 7;
124:
125: /** DEFAULT_PIE_CHART_TITLE is used as a hard default. */
126: public static final String DEFAULT_PIE_CHART_TITLE = "Pie Chart";
127:
128: /** DEFAULT_RADIUS is used as a hard default. */
129: public static final double DEFAULT_RADIUS = 0.70;
130:
131: /** DEFAULT_IS_EXPLODED is used as a hard default. */
132: public static final boolean DEFAULT_IS_EXPLODED = false;
133:
134: /** DEFAULT_MINIMUM_EXPLODED_PERCENT is used as a hard default. */
135: public static final int DEFAULT_MINIMUM_EXPLODED_PERCENT = 0;
136:
137: /** DEFAULT_MAXIMUM_EXPLODED_PERCENT is used as a hard default. */
138: public static final int DEFAULT_MAXIMUM_EXPLODED_PERCENT = 100;
139:
140: /** DEFAULT_ALL_EXPLODED_PERCENT is used as a hard default. */
141: public static final int DEFAULT_ALL_EXPLODED_PERCENT = 25; // DEFAULT_MINIMUM_EXPLODED_PERCENT;
142:
143: /** SECTION_NO_LABELS_STRING is used for XML persistency. */
144: public static final String SECTION_NO_LABELS_STRING = "None";
145:
146: /** SECTION_NAME_LABELS_STRING is used for XML persistency. */
147: public static final String SECTION_NAME_LABELS_STRING = "Name";
148:
149: /** SECTION_VALUE_LABELS_STRING is used for XML persistency. */
150: public static final String SECTION_VALUE_LABELS_STRING = "Value";
151:
152: /** SECTION_PERCENT_LABELS_STRING is used for XML persistency. */
153: public static final String SECTION_PERCENT_LABELS_STRING = "Percent";
154:
155: /** SECTION_NAME_AND_VALUE_LABELS_STRING is used for XML persistency. */
156: public static final String SECTION_NAME_AND_VALUE_LABELS_STRING = "Name,Value";
157:
158: /** SECTION_NAME_AND_PERCENT_LABELS_STRING is used for XML persistency. */
159: public static final String SECTION_NAME_AND_PERCENT_LABELS_STRING = "Name,Percent";
160:
161: /** SECTION_VALUE_AND_PERCENT_LABELS_STRING is used for XML persistency. */
162: public static final String SECTION_VALUE_AND_PERCENT_LABELS_STRING = "Value,Percent";
163:
164: /** SECTION_NAME_VALUE_AND_PERCENT_LABELS_STRING is used for XML persistency. */
165: public static final String SECTION_NAME_VALUE_AND_PERCENT_LABELS_STRING = "Name,Value,Percent";
166:
167: /** TOOLTIP_NO_LABELS_STRING is used for XML persistency. */
168: public static final String TOOLTIP_NO_LABELS_STRING = "None";
169:
170: /** TOOLTIP_NAME_LABELS_STRING is used for XML persistency. */
171: public static final String TOOLTIP_NAME_LABELS_STRING = "Name";
172:
173: /** TOOLTIP_VALUE_LABELS_STRING is used for XML persistency. */
174: public static final String TOOLTIP_VALUE_LABELS_STRING = "Value";
175:
176: /** TOOLTIP_PERCENT_LABELS_STRING is used for XML persistency. */
177: public static final String TOOLTIP_PERCENT_LABELS_STRING = "Percent";
178:
179: /** TOOLTIP_NAME_AND_VALUE_LABELS_STRING is used for XML persistency. */
180: public static final String TOOLTIP_NAME_AND_VALUE_LABELS_STRING = "Name,Value";
181:
182: /** TOOLTIP_NAME_AND_PERCENT_LABELS_STRING is used for XML persistency. */
183: public static final String TOOLTIP_NAME_AND_PERCENT_LABELS_STRING = "Name,Percent";
184:
185: /** TOOLTIP_VALUE_AND_PERCENT_LABELS_STRING is used for XML persistency. */
186: public static final String TOOLTIP_VALUE_AND_PERCENT_LABELS_STRING = "Value,Percent";
187:
188: /** TOOLTIP_NAME_VALUE_AND_PERCENT_LABELS_STRING is used for XML persistency. */
189: public static final String TOOLTIP_NAME_VALUE_AND_PERCENT_LABELS_STRING = "Name,Value,Percent";
190: public static final int DEFAULT_ALL_FIELDS_FONT_STYLE = Font.PLAIN;
191: public static final int DEFAULT_ALL_FIELDS_FONT_SIZE = 9;
192:
193: }
|