9b5bf8d8ff85a5b2400f40b3c7ff4126b6335447
[portal/sdk.git] /
1 /*-
2  * ================================================================================
3  * eCOMP Portal SDK
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ================================================================================
19  */
20 package org.openecomp.portalsdk.analytics.model.runtime;
21
22 class RangeColorJSON            extends IndexValueJSON {}
23 class RangeAxisLabelJSON        extends IndexValueJSON {}
24 class RangeLineTypeJSON         extends IndexValueJSON {}
25
26 public class RangeAxisJSON {
27
28         private RangeAxisLabelJSON rangeAxisLabelJSON;
29         private RangeColorJSON rangeColorJSON;
30         private RangeLineTypeJSON rangeLineTypeJSON;
31         private String rangeChartGroup;
32         private String rangeYAxis;
33         private boolean showAsArea;
34         
35         public RangeAxisLabelJSON getRangeAxisLabelJSON() {
36                 return rangeAxisLabelJSON;
37         }
38         public void setRangeAxisLabelJSON(RangeAxisLabelJSON rangeAxisLabelJSON) {
39                 this.rangeAxisLabelJSON = rangeAxisLabelJSON;
40         }
41         public RangeColorJSON getRangeColorJSON() {
42                 return rangeColorJSON;
43         }
44         public void setRangeColorJSON(RangeColorJSON rangeColorJSON) {
45                 this.rangeColorJSON = rangeColorJSON;
46         }
47         public RangeLineTypeJSON getRangeLineTypeJSON() {
48                 return rangeLineTypeJSON;
49         }
50         public void setRangeLineTypeJSON(RangeLineTypeJSON rangeLineTypeJSON) {
51                 this.rangeLineTypeJSON = rangeLineTypeJSON;
52         }
53         public String getRangeChartGroup() {
54                 return rangeChartGroup;
55         }
56         public void setRangeChartGroup(String rangeChartGroup) {
57                 this.rangeChartGroup = rangeChartGroup;
58         }
59         public String getRangeYAxis() {
60                 return rangeYAxis;
61         }
62         public void setRangeYAxis(String rangeYAxis) {
63                 this.rangeYAxis = rangeYAxis;
64         }
65         public boolean isShowAsArea() {
66                 return showAsArea;
67         }
68         public void setShowAsArea(boolean showAsArea) {
69                 this.showAsArea = showAsArea;
70         }       
71         
72         public String getRangeAxis() {
73                 if(getRangeAxisLabelJSON()!=null)
74                         return getRangeAxisLabelJSON().getValue();
75                 else
76                         return "";
77         }
78         
79         public String getRangeColor(){
80                 if(getRangeColorJSON()!=null)
81                         return getRangeColorJSON().getValue();
82                 else
83                         return "";
84         }
85
86         public String getRangeLineType(){
87                 if(getRangeLineTypeJSON()!=null)
88                         return getRangeLineTypeJSON().getValue();
89                 else
90                         return "";
91         }
92
93 }