001: /*
002: * Copyright 2006 Pentaho Corporation. All rights reserved.
003: * This software was developed by Pentaho Corporation and is provided under the terms
004: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
005: * this file except in compliance with the license. If you need a copy of the license,
006: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
007: * BI Platform. The Initial Developer is Pentaho Corporation.
008: *
009: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
010: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
011: * the license for the specific language governing your rights and limitations.
012: *
013: * Created Dec 23, 2005
014: * @author wseyler
015: */
016:
017: package org.pentaho.plugin.jfreechart;
018:
019: import java.awt.Font;
020: import java.awt.Image;
021: import java.awt.Paint;
022: import java.util.List;
023:
024: import org.jfree.ui.RectangleEdge;
025:
026: public interface ChartDefinition {
027:
028: public static final String DIAL_CHART_STR = "DialChart"; //$NON-NLS-1$
029:
030: public static final String PIE_CHART_STR = "PieChart"; //$NON-NLS-1$
031:
032: public static final String PIE_GRID_CHART_STR = "PieGrid"; //$NON-NLS-1$
033:
034: public static final String BAR_CHART_STR = "BarChart"; //$NON-NLS-1$
035:
036: public static final String LINE_CHART_STR = "LineChart"; //$NON-NLS-1$
037:
038: public static final String AREA_CHART_STR = "AreaChart"; //$NON-NLS-1$
039:
040: public static final String STEP_CHART_STR = "StepChart"; //$NON-NLS-1$
041:
042: public static final String STEP_AREA_CHART_STR = "StepAreaChart"; //$NON-NLS-1$
043:
044: public static final String DIFFERENCE_CHART_STR = "DifferenceChart"; //$NON-NLS-1$
045:
046: public static final String DOT_CHART_STR = "DotChart"; //$NON-NLS-1$
047:
048: //new chart type
049: public static final String BAR_LINE_CHART_STR = "BarLineChart"; //$NON-NLS-1$
050:
051: public static final String BUBBLE_CHART_STR = "BubbleChart"; //$NON-NLS-1$
052:
053: // end new chart types
054:
055: public static final String XY_SERIES_COLLECTION_STR = "XYSeriesCollection"; //$NON-NLS-1$
056:
057: public static final String XYZ_SERIES_COLLECTION_STR = "XYZSeriesCollection"; //$NON-NLS-1$
058:
059: public static final String TIME_SERIES_COLLECTION_STR = "TimeSeriesCollection"; //$NON-NLS-1$
060:
061: public static final String CATAGORY_DATASET_STR = "CategoryDataset"; //$NON-NLS-1$
062:
063: public static final String DAY_PERIOD_TYPE_STR = "Day"; //$NON-NLS-1$
064:
065: public static final String FIXEDMILLISECOND_PERIOD_TYPE_STR = "FixedMillisecond"; //$NON-NLS-1$
066:
067: public static final String HOUR_PERIOD_TYPE_STR = "Hour"; //$NON-NLS-1$
068:
069: public static final String MILLISECOND_PERIOD_TYPE_STR = "Millisecond"; //$NON-NLS-1$
070:
071: public static final String MINUTE_PERIOD_TYPE_STR = "Minute"; //$NON-NLS-1$
072:
073: public static final String MONTH_PERIOD_TYPE_STR = "Month"; //$NON-NLS-1$
074:
075: public static final String QUARTER_PERIOD_TYPE_STR = "Quarter"; //$NON-NLS-1$
076:
077: public static final String SECOND_PERIOD_TYPE_STR = "Second"; //$NON-NLS-1$
078:
079: public static final String WEEK_PERIOD_TYPE_STR = "Week"; //$NON-NLS-1$
080:
081: public static final String YEAR_PERIOD_TYPE_STR = "Year"; //$NON-NLS-1$
082:
083: public static final String VERTICAL_ORIENTATION = "Vertical"; //$NON-NLS-1$
084:
085: public static final String HORIZONTAL_ORIENTATION = "Horizontal"; //$NON-NLS-1$
086:
087: public static final String TYPE_NODE_NAME = "chart-type"; //$NON-NLS-1$
088:
089: public static final String DATASET_TYPE_NODE_NAME = "dataset-type"; //$NON-NLS-1$
090:
091: public static final String WIDTH_NODE_NAME = "width"; //$NON-NLS-1$
092:
093: public static final String HEIGHT_NODE_NAME = "height"; //$NON-NLS-1$
094:
095: public static final String CHART_BORDER_VISIBLE_NODE_NAME = "border-visible"; //$NON-NLS-1$
096:
097: public static final String CHART_BORDER_PAINT_NODE_NAME = "border-paint"; //$NON-NLS-1$
098:
099: public static final String TITLE_NODE_NAME = "title"; //$NON-NLS-1$
100:
101: public static final String TITLE_FONT_NODE_NAME = "title-font"; //$NON-NLS-1$
102:
103: public static final String TITLE_POSITION_NODE_NAME = "title-position"; //$NON-NLS-1$
104:
105: public static final String SUBTITLE_NODE_NAME = "subtitle"; //$NON-NLS-1$
106:
107: public static final String SUBTITLES_NODE_NAME = "subtitles"; //$NON-NLS-1$
108:
109: public static final String CHART_BACKGROUND_NODE_NAME = "chart-background"; //$NON-NLS-1$
110:
111: public static final String PLOT_BACKGROUND_NODE_NAME = "plot-background"; //$NON-NLS-1$
112:
113: public static final String INCLUDE_LEGEND_NODE_NAME = "include-legend"; //$NON-NLS-1$
114:
115: public static final String LEGEND_FONT_NODE_NAME = "legend-font"; //$NON-NLS-1$
116:
117: public static final String DISPLAY_LEGEND_BORDER_NODE_NAME = "legend-border-visible"; //$NON-NLS-1$
118:
119: public static final String DISPLAY_LABELS_NODE_NAME = "display-labels"; //$NON-NLS-1$
120:
121: public static final String PALETTE_NODE_NAME = "color-palette"; //$NON-NLS-1$
122:
123: public static final String COLOR_NODE_NAME = "color"; //$NON-NLS-1$
124:
125: public static final String THREED_NODE_NAME = "is-3D"; //$NON-NLS-1$
126:
127: public static final String TEXTURE_TYPE_NAME = "texture"; //$NON-NLS-1$
128:
129: public static final String GRADIENT_TYPE_NAME = "gradient"; //$NON-NLS-1$
130:
131: public static final String COLOR_TYPE_NAME = "color"; //$NON-NLS-1$
132:
133: public static final String IMAGE_TYPE_NAME = "image"; //$NON-NLS-1$
134:
135: public static final String BACKGROUND_TYPE_ATTRIBUTE_NAME = "@type"; //$NON-NLS-1$
136:
137: public static final String DOT_HEIGHT_NODE_NAME = "dot-height"; //$NON-NLS-1$
138:
139: public static final String DOT_WIDTH_NODE_NAME = "dot-width"; //$NON-NLS-1$
140:
141: public static final String LINE_STYLE_NODE_NAME = "line-style"; //$NON-NLS-1$
142:
143: public static final String LINE_WIDTH_NODE_NAME = "line-width"; //$NON-NLS-1$
144:
145: public static final String MARKER_VISIBLE_NODE_NAME = "markers-visible"; //$NON-NLS-1$
146:
147: public static final String STACKED_NODE_NAME = "is-stacked"; //$NON-NLS-1$
148:
149: public static final String LINE_STYLE_SOLID_STR = "solid"; //$NON-NLS-1$
150:
151: public static final String LINE_STYLE_DASH_STR = "dash"; //$NON-NLS-1$
152:
153: public static final String LINE_STYLE_DOT_STR = "dot"; //$NON-NLS-1$
154:
155: public static final String LINE_STYLE_DASHDOT_STR = "dashdot"; //$NON-NLS-1$
156:
157: public static final String LINE_STYLE_DASHDOTDOT_STR = "dashdotdot"; //$NON-NLS-1$
158:
159: public int getHeight();
160:
161: public int getWidth();
162:
163: public String getTitle();
164:
165: // Chart Methods
166: public Font getTitleFont();
167:
168: public List getSubtitles();
169:
170: public Paint getChartBackgroundPaint();
171:
172: public Image getChartBackgroundImage();
173:
174: public boolean isBorderVisible();
175:
176: public Paint getBorderPaint();
177:
178: public Font getLegendFont();
179:
180: public boolean isLegendBorderVisible();
181:
182: // Plot methods
183: public RectangleEdge getTitlePosition();
184:
185: public Paint[] getPaintSequence();
186:
187: public Paint getPlotBackgroundPaint();
188:
189: public Image getPlotBackgroundImage();
190:
191: public boolean isLegendIncluded();
192:
193: public boolean isThreeD();
194:
195: public boolean isDisplayLabels();
196:
197: public String getNoDataMessage();
198: }
|