public class DataSeries<T extends DataPoint> extends SpecialGlyph implements Result
限定符和类型 | 字段和说明 |
---|---|
protected ChartStyle |
dataSeriesStyle |
protected Glyph |
drawImpl |
构造器和说明 |
---|
DataSeries() |
DataSeries(int seriesIndex)
构造一个指定序号的系列
|
限定符和类型 | 方法和说明 |
---|---|
void |
addDataPoint(T point)
添加一个数据点到系列中
|
void |
addTrendLineGlyph(TrendLineGlyph trendLineGlyph)
给系列添加一个趋势线图像
|
void |
clearTrendLineGlyph()
清除系列中所有的趋势线图像
|
void |
draw(java.awt.Graphics g,
int resolution)
画系列背景、形状等.
|
void |
drawChartStyle(java.awt.Graphics g) |
void |
drawLabel(java.awt.Graphics g,
int resolution)
画系列标签内容
|
void |
drawTrendLine(java.awt.Graphics g,
int resolution)
画趋势线
|
boolean |
equals(java.lang.Object ob) |
boolean |
evalWithCondition(Condition condition,
Calculator c)
处理条件属性
|
DataPoint |
getDataPoint(int categoryIndex)
获取系列中指定位置的数据点,如果该位置没有数据点,则返回一个默认的数据点对象
|
int |
getDataPointCount()
获取系列中数据点的数量
|
ChartStyle |
getDataSeriesStyle() |
java.util.List<T> |
getPoints() |
int |
getSeriesIndex()
获取系列的序号
|
java.lang.String |
getSeriesName()
获取系列名
|
java.awt.Shape |
getShape()
返回系列的外形
|
TrendLineGlyph |
getTrendLineGlyph(int index)
获取系列中指定位置的趋势线图像
|
int |
getTrendLineGlyphSize()
系列中趋势线图像的数量
|
protected java.lang.String |
getType() |
boolean |
isCompositeSeries()
是否是复合的系列
|
boolean |
isSeriesDragEnable()
可以进行系列拖拽
|
boolean |
isSeriesNullType4Gantt(int valueType)
是否系列为空值类型 (甘特图系列)
|
protected void |
putLabelSeriesConditionAttr(ConditionCollection conditionCollection,
JSONObject jo,
Repository repo,
java.lang.String extraValue) |
protected void |
putSeriesConditionAttr(ConditionCollection conditionCollection,
java.lang.Class target,
JSONObject jo,
Repository repo) |
protected void |
putSeriesConditionAttr(ConditionCollection conditionCollection,
java.lang.Class target,
JSONObject jo,
java.lang.String key,
Repository repo) |
protected void |
putSeriesConditionAttrWidthDefault(ConditionCollection conditionCollection,
java.lang.Class target,
JSONObject jo,
Repository repo) |
void |
removeDataPoint(T point)
删除指定的DataPoint
|
void |
setCompositeSeries(boolean isCompositeSeries)
设置是否是复合的系列
|
void |
setDataSeriesStyle(ChartStyle dataSeriesStyle) |
void |
setDrawImpl(Glyph drawImpl)
设置用来画系列的相关的图像对象
|
void |
setSeriesDragEnable(boolean seriesDragEnable)
设置是否可以进行系列拖拽
|
void |
setSeriesName(java.lang.String seriesName)
设置系列名
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
java.lang.Object |
toOldResult(CommonCondition cc)
已过时。
|
java.lang.Object |
toResult(CommonCondition cc)
根据条件的内容生成合适的结果
|
JSONObject |
toVanJSONObject(ConditionCollection conditionCollection,
ConditionCollection customCondition,
double unitLeft,
double unitRight,
Repository repo) |
JSONObject |
toVanJSONObject(ConditionCollection conditionCollection,
double xUnit,
double yUnit,
Repository repo) |
JSONObject |
toVanJSONObject(ConditionCollection conditionCollection,
double xUnit,
double yUnit,
Repository repo,
java.lang.String extraValue) |
clone, selectableChildren
protected Glyph drawImpl
protected ChartStyle dataSeriesStyle
public DataSeries()
public DataSeries(int seriesIndex)
seriesIndex
- 系列序号public int getSeriesIndex()
getSeriesIndex
在接口中 Result
public void setSeriesName(java.lang.String seriesName)
seriesName
- 系列的名字public java.lang.String getSeriesName()
public void addTrendLineGlyph(TrendLineGlyph trendLineGlyph)
trendLineGlyph
- 添加的图像public int getTrendLineGlyphSize()
public TrendLineGlyph getTrendLineGlyph(int index)
index
- 要回去的趋势线图像的索引public void clearTrendLineGlyph()
public void setDrawImpl(Glyph drawImpl)
drawImpl
- 画系列的图像对象public void addDataPoint(T point)
point
- 要添加的数据点public void removeDataPoint(T point)
point
- 系列点.public int getDataPointCount()
public DataPoint getDataPoint(int categoryIndex)
categoryIndex
- 数据点的索引位置public java.util.List<T> getPoints()
public void setCompositeSeries(boolean isCompositeSeries)
isCompositeSeries
- 否是复合的系列public boolean isCompositeSeries()
public void draw(java.awt.Graphics g, int resolution)
public void drawChartStyle(java.awt.Graphics g)
public void setDataSeriesStyle(ChartStyle dataSeriesStyle)
public ChartStyle getDataSeriesStyle()
public void drawLabel(java.awt.Graphics g, int resolution)
g
- 图形对象resolution
- 分辨率public void drawTrendLine(java.awt.Graphics g, int resolution)
g
- 图形对象resolution
- 分辨率public boolean isSeriesNullType4Gantt(int valueType)
valueType
- 值类型public boolean evalWithCondition(Condition condition, Calculator c)
evalWithCondition
在接口中 Result
c
- 计算器condition
- 条件属性.public java.lang.Object toResult(CommonCondition cc)
Result
@Deprecated public java.lang.Object toOldResult(CommonCondition cc)
cc
- 条件属性.public boolean equals(java.lang.Object ob)
equals
在类中 java.lang.Object
protected java.lang.String getType()
public void setSeriesDragEnable(boolean seriesDragEnable)
seriesDragEnable
- 设置是否可以进行系列拖拽public boolean isSeriesDragEnable()
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 SpecialGlyph
repo
- 请求JSONException
- 抛错protected void putSeriesConditionAttrWidthDefault(ConditionCollection conditionCollection, java.lang.Class target, JSONObject jo, Repository repo) throws JSONException
JSONException
protected void putSeriesConditionAttr(ConditionCollection conditionCollection, java.lang.Class target, JSONObject jo, Repository repo) throws JSONException
JSONException
protected void putSeriesConditionAttr(ConditionCollection conditionCollection, java.lang.Class target, JSONObject jo, java.lang.String key, Repository repo) throws JSONException
JSONException
protected void putLabelSeriesConditionAttr(ConditionCollection conditionCollection, JSONObject jo, Repository repo, java.lang.String extraValue) throws JSONException
JSONException
public JSONObject toVanJSONObject(ConditionCollection conditionCollection, ConditionCollection customCondition, double unitLeft, double unitRight, Repository repo) throws JSONException
JSONException
public JSONObject toVanJSONObject(ConditionCollection conditionCollection, double xUnit, double yUnit, Repository repo) throws JSONException
JSONException
public JSONObject toVanJSONObject(ConditionCollection conditionCollection, double xUnit, double yUnit, Repository repo, java.lang.String extraValue) throws JSONException
JSONException