01: /*
02: * Copyright 2006-2007 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt.
07: *
08: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
09: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
10: * the license for the specific language governing your rights and limitations.
11: *
12: * Additional Contributor(s): Martin Schmid gridvision engineering GmbH
13: */
14: package org.pentaho.reportdesigner.crm.report.model;
15:
16: import org.jetbrains.annotations.NotNull;
17:
18: /**
19: * User: Martin
20: * Date: 20.03.2007
21: * Time: 17:40:32
22: */
23: public enum ChartType {
24: @NotNull
25: AREA(true, false, false, false), @NotNull
26: BAR(true, false, false, false), @NotNull
27: BAR_LINE(true, false, false, false), @NotNull
28: BUBBLE(false, false, false, true), @NotNull
29: EXTENDED_XY_LINE(false, false, true, false), @NotNull
30: LINE(true, false, false, false), @NotNull
31: MULTI_PIE(true, false, false, false), @NotNull
32: PIE(false, true, false, false), @NotNull
33: RING(false, true, false, false), @NotNull
34: SCATTER_PLOT(false, false, true, false), @NotNull
35: WATERFALL(true, false, false, false), @NotNull
36: XY_AREA(false, false, true, false), @NotNull
37: XY_BAR(false, false, true, false), @NotNull
38: XY_LINE(false, false, true, false);
39:
40: private boolean categorySet;
41: private boolean pieSet;
42: private boolean xySet;
43: private boolean xyzSet;
44:
45: ChartType(boolean categorySet, boolean pieSet, boolean xySet,
46: boolean xyzSet) {
47: this .categorySet = categorySet;
48: this .pieSet = pieSet;
49: this .xySet = xySet;
50: this .xyzSet = xyzSet;
51: }
52:
53: public boolean isCategorySet() {
54: return categorySet;
55: }
56:
57: public boolean isPieSet() {
58: return pieSet;
59: }
60:
61: public boolean isXYSet() {
62: return xySet;
63: }
64:
65: public boolean isXYZSet() {
66: return xyzSet;
67: }
68: }
|