This project has retired. For details please refer to its Attic page.
SeriesMetaData xref
View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  package org.apache.hadoop.chukwa.hicc.bean;
19  
20  import java.net.URI;
21  import java.util.ArrayList;
22  
23  import javax.xml.bind.annotation.XmlElement;
24  import javax.xml.bind.annotation.XmlRootElement;
25  
26  @XmlRootElement
27  public class SeriesMetaData implements Cloneable {
28  
29    @XmlElement
30    public URI url;
31    @XmlElement
32    public String color;
33    @XmlElement
34    public String label;
35    @XmlElement
36    public LineOptions lines;
37    @XmlElement
38    public BarOptions bars;
39    @XmlElement
40    public PointOptions points;
41    @XmlElement
42    public int xaxis;
43    @XmlElement
44    public int yaxis;
45    @XmlElement
46    public boolean clickable;
47    @XmlElement
48    public boolean hoverable;
49    @XmlElement
50    public int shadowSize;
51    @XmlElement
52    public int highlightColor;
53    public ArrayList<ArrayList<Number>> data = null;
54    
55    public SeriesMetaData() {
56      
57    }
58  
59    public void setUrl(URI url) {
60      this.url = url;
61    }
62    
63    public URI getUrl() {
64      return url;
65    }
66    
67    public void setLineOptions(LineOptions lines) {
68      this.lines = lines;
69      
70    }
71    
72    public LineOptions getLineOptions() {
73      return lines;
74    }
75    
76    public void setBarOptions(BarOptions bars) {
77      this.bars = bars;
78    }
79    
80    public BarOptions getBarOptions() {
81      return bars;
82    }
83    
84    public void setPointOptions(PointOptions points) {
85      this.points = points;
86    }
87    
88    public PointOptions getPointOptions() {
89      return points;
90    }
91    
92    public void setColor(String color) {
93      this.color = color;
94    }
95    
96    public String getColor() {
97      return color;
98    }
99  
100   public void setData(ArrayList<ArrayList<Number>> data) {
101     this.data = data;
102   }
103   
104   public ArrayList<ArrayList<Number>> getData() {
105     return data;
106   }
107 
108   public void setLabel(String label) {
109     this.label = label;
110   }
111   
112   public String getLabel() {
113     return label;
114   }
115 
116   @Override
117   public Object clone()throws CloneNotSupportedException{  
118     return super.clone();  
119   }
120 }