com.github.avarabyeu.jashing.events.ComplexGraphEvent Maven / Gradle / Ivy
package com.github.avarabyeu.jashing.events;
import com.github.avarabyeu.jashing.core.JashingEvent;
import java.util.List;
/**
* Complex Graph event for RickshawGraph widget
* @author Andrei Varabyeu
*/
public class ComplexGraphEvent extends JashingEvent {
private List series;
private String displayedValue;
public ComplexGraphEvent(List series) {
this.series = series;
}
public ComplexGraphEvent(List series, String displayedValue) {
this.series = series;
this.displayedValue = displayedValue;
}
public List getSeries() {
return series;
}
public void setSeries(List series) {
this.series = series;
}
public String getDisplayedValue() {
return displayedValue;
}
public static class Series {
private String name;
private List data;
public Series(String name, List data) {
this.name = name;
this.data = data;
}
public String getName() {
return name;
}
public List getData() {
return data;
}
}
public static class Point {
private Long x;
private Long y;
public Point(Long x, Long y) {
this.x = x;
this.y = y;
}
public Long getX() {
return x;
}
public void setX(Long x) {
this.x = x;
}
public Long getY() {
return y;
}
public void setY(Long y) {
this.y = y;
}
}
}