BrightSide Workbench Full Report + Source Code
Series.java
Go to the documentation of this file.
1
/*
2
* TurrĂ³ i Cutiller Foundation. License notice.
3
* Copyright (C) 2015 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Affero General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Affero General Public License for more details.
14
*
15
* You should have received a copy of the GNU Affero General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
package
org.turro.charts;
20
21
import
java.util.ArrayList;
22
27
public
class
Series
{
28
29
protected
String
name
, link;
30
protected
ArrayList<Data>
data
;
31
32
public
Series
(String
name
) {
33
this.name =
name
;
34
this.data =
new
ArrayList<>();
35
}
36
37
public
String
getName
() {
38
return
name
;
39
}
40
41
public
String
getLink
() {
42
return
link;
43
}
44
45
public
void
setLink
(String link) {
46
this.link = link;
47
}
48
49
public
ArrayList<Data>
getData
() {
50
return
data
;
51
}
52
53
public
Data
addData
(String
name
) {
54
Data
d =
new
Data
(
name
);
55
if
(
data
.add(d)) {
56
return
d;
57
}
58
return
null
;
59
}
60
61
}
org.turro.charts.Data
Definition:
Data.java:28
org.turro.charts.Series
Definition:
Series.java:27
org.turro.charts.Series.getName
String getName()
Definition:
Series.java:37
org.turro.charts.Series.name
String name
Definition:
Series.java:29
org.turro.charts.Series.getLink
String getLink()
Definition:
Series.java:41
org.turro.charts.Series.Series
Series(String name)
Definition:
Series.java:32
org.turro.charts.Series.data
ArrayList< Data > data
Definition:
Series.java:30
org.turro.charts.Series.setLink
void setLink(String link)
Definition:
Series.java:45
org.turro.charts.Series.addData
Data addData(String name)
Definition:
Series.java:53
org.turro.charts.Series.getData
ArrayList< Data > getData()
Definition:
Series.java:49
TurroProjects
Public
Elephant
elephant
src
main
java
org
turro
charts
Series.java
Generated on Tue Mar 12 2024 07:01:21 for BrightSide by
1.9.1