All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.github.abel533.echarts.data.Data Maven / Gradle / Ivy
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 [email protected]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.github.abel533.echarts.data;
import com.github.abel533.echarts.Tooltip;
/**
* 通用的Data对象...和Data接口同名,Data接口中的data使用的就是这里的Data..
*
* @author liuzh
*/
public class Data extends BasicData {
/**
* 可以通过valueIndex:0指定为横轴特殊点
*/
private Integer valueIndex;
private Object min;
private Object max;
/**
* 图标
*/
private String icon;
private Boolean selected;
private Tooltip tooltip;
/**
* 平滑曲线弧度,smooth为true时有效,指定平滑曲线弧度
*/
private Double smoothRadian;
/**
* 构造函数
*/
public Data() {
}
/**
* 构造函数,参数:name
*
* @param name
*/
public Data(String name) {
super(name);
}
/**
* 构造函数,参数:name,value
*
* @param name
* @param value
*/
public Data(String name, Object value) {
super(name, value);
}
/**
* 构造函数,参数:name,symbol,symbolSize
*
* @param name
* @param symbol
* @param symbolSize
*/
public Data(String name, Object symbol, Object symbolSize) {
super(name, symbol, symbolSize);
}
/**
* 构造函数,参数:value,symbol
*
* @param value
* @param symbol
*/
public Data(Object value, Object symbol) {
super(value, symbol);
}
/**
* 构造函数,参数:value,symbol,symbolSize
*
* @param value
* @param symbol
* @param symbolSize
*/
public Data(Object value, Object symbol, Object symbolSize) {
super(value, symbol, symbolSize);
}
/**
* 获取平滑曲线弧度
*/
public Double smoothRadian() {
return this.smoothRadian;
}
/**
* 设置平滑曲线弧度
*
* @param smoothRadian
*/
public Data smoothRadian(Double smoothRadian) {
this.smoothRadian = smoothRadian;
return this;
}
/**
* 获取tooltip值
*/
public Tooltip tooltip() {
if (this.tooltip == null) {
this.tooltip = new Tooltip();
}
return this.tooltip;
}
/**
* 设置tooltip值
*
* @param tooltip
*/
public Data tooltip(Tooltip tooltip) {
this.tooltip = tooltip;
return this;
}
/**
* 获取selected值
*/
public Boolean selected() {
return this.selected;
}
/**
* 设置selected值
*
* @param selected
*/
public Data selected(Boolean selected) {
this.selected = selected;
return this;
}
/**
* 获取icon值
*/
public String icon() {
return this.icon;
}
/**
* 设置icon值
*
* @param icon
*/
public Data icon(String icon) {
this.icon = icon;
return this;
}
/**
* 获取min值
*/
public Object min() {
return this.min;
}
/**
* 设置min值
*
* @param min
*/
public Data min(Object min) {
this.min = min;
return this;
}
/**
* 获取max值
*/
public Object max() {
return this.max;
}
/**
* 设置max值
*
* @param max
*/
public Data max(Object max) {
this.max = max;
return this;
}
/**
* 获取valueIndex值
*/
public Integer valueIndex() {
return this.valueIndex;
}
/**
* 设置valueIndex值
*
* @param valueIndex
*/
public Data valueIndex(Integer valueIndex) {
this.valueIndex = valueIndex;
return this;
}
/**
* 获取valueIndex值
*/
public Integer getValueIndex() {
return valueIndex;
}
/**
* 设置valueIndex值
*
* @param valueIndex
*/
public Data setValueIndex(Integer valueIndex) {
this.valueIndex = valueIndex;
return this;
}
/**
* 获取min值
*/
public Object getMin() {
return min;
}
/**
* 设置min值
*
* @param min
*/
public void setMin(Object min) {
this.min = min;
}
/**
* 获取max值
*/
public Object getMax() {
return max;
}
/**
* 设置max值
*
* @param max
*/
public void setMax(Object max) {
this.max = max;
}
/**
* 获取icon值
*/
public String getIcon() {
return icon;
}
/**
* 设置icon值
*
* @param icon
*/
public void setIcon(String icon) {
this.icon = icon;
}
/**
* 获取selected值
*/
public Boolean getSelected() {
return selected;
}
/**
* 设置selected值
*
* @param selected
*/
public void setSelected(Boolean selected) {
this.selected = selected;
}
/**
* 获取tooltip值
*/
public Tooltip getTooltip() {
return tooltip;
}
/**
* 设置tooltip值
*
* @param tooltip
*/
public void setTooltip(Tooltip tooltip) {
this.tooltip = tooltip;
}
/**
* 获取smoothRadian值
*/
public Double getSmoothRadian() {
return smoothRadian;
}
/**
* 设置smoothRadian值
*
* @param smoothRadian
*/
public void setSmoothRadian(Double smoothRadian) {
this.smoothRadian = smoothRadian;
}
}