2 * ================================================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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 * ================================================================================
20 package org.openecomp.portalsdk.analytics.model.runtime;
22 class RangeColorJSON extends IndexValueJSON {}
23 class RangeAxisLabelJSON extends IndexValueJSON {}
24 class RangeLineTypeJSON extends IndexValueJSON {}
26 public class RangeAxisJSON {
28 private RangeAxisLabelJSON rangeAxisLabelJSON;
29 private RangeColorJSON rangeColorJSON;
30 private RangeLineTypeJSON rangeLineTypeJSON;
31 private String rangeChartGroup;
32 private String rangeYAxis;
33 private boolean showAsArea;
35 public RangeAxisLabelJSON getRangeAxisLabelJSON() {
36 return rangeAxisLabelJSON;
38 public void setRangeAxisLabelJSON(RangeAxisLabelJSON rangeAxisLabelJSON) {
39 this.rangeAxisLabelJSON = rangeAxisLabelJSON;
41 public RangeColorJSON getRangeColorJSON() {
42 return rangeColorJSON;
44 public void setRangeColorJSON(RangeColorJSON rangeColorJSON) {
45 this.rangeColorJSON = rangeColorJSON;
47 public RangeLineTypeJSON getRangeLineTypeJSON() {
48 return rangeLineTypeJSON;
50 public void setRangeLineTypeJSON(RangeLineTypeJSON rangeLineTypeJSON) {
51 this.rangeLineTypeJSON = rangeLineTypeJSON;
53 public String getRangeChartGroup() {
54 return rangeChartGroup;
56 public void setRangeChartGroup(String rangeChartGroup) {
57 this.rangeChartGroup = rangeChartGroup;
59 public String getRangeYAxis() {
62 public void setRangeYAxis(String rangeYAxis) {
63 this.rangeYAxis = rangeYAxis;
65 public boolean isShowAsArea() {
68 public void setShowAsArea(boolean showAsArea) {
69 this.showAsArea = showAsArea;
72 public String getRangeAxis() {
73 if(getRangeAxisLabelJSON()!=null)
74 return getRangeAxisLabelJSON().getValue();
79 public String getRangeColor(){
80 if(getRangeColorJSON()!=null)
81 return getRangeColorJSON().getValue();
86 public String getRangeLineType(){
87 if(getRangeLineTypeJSON()!=null)
88 return getRangeLineTypeJSON().getValue();