public class CustomAttr extends ConditionAttr
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
XML_TAG |
构造器和说明 |
---|
CustomAttr()
构造默认柱形系列类型的组合条件
|
CustomAttr(ChartCustomRendererType render) |
CustomAttr(int renderer)
构造系列类型为renderer的组合条件
|
限定符和类型 | 方法和说明 |
---|---|
void |
changeTo3DRenderer()
改成把useRender改成对应的三维的render
|
java.lang.Object |
clone() |
CustomAttr |
createSimpleCustomAttr()
创建比较简单的条件显示,只有三个,背景色,标签内容,和不透明度
|
CustomAttr |
createTypeConditionAttr()
创建兼容出来的类型的CustoAttr
|
boolean |
equals(java.lang.Object ob) |
JSONObject |
exportConditionConfig()
输出条件属性
|
ChartAxisPosition |
getAxisPosition() |
java.lang.String |
getConditionAttrType()
用于JS得到SeriesAttr的类型.
|
CustomAttr |
getNormalConditionAttr()
将定义系列的customAttr转化为正常的条件显示的东西
|
ChartCustomRendererType |
getRenderer()
返回组合条件中的系列类型
|
java.lang.Integer[] |
getStackedSeriesList(int seriesSize) |
java.lang.Integer[] |
getStackedSeriesList(java.util.List series) |
ChartCustomRendererType |
getUseRenderer() |
boolean |
has3DShape()
是否有3D的形状
|
boolean |
is2DBarShapeRender()
真正使用的是否是2维形状的系列
|
boolean |
isBarShapeRender()
判断是否是柱子的形状,包括2维和3维
|
boolean |
isStackedBarShape()
判断是否是堆积的形状,2维和3维
|
boolean |
needTransformToNormalCondition()
是否需要转成一些条件显示控制的内容
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setRenderer(ChartCustomRendererType renderer) |
void |
setRenderer(int renderer)
设置组合条件中的系列类型
|
void |
setUseRenderer(ChartCustomRendererType useRenderer) |
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
addDataSeriesCondition, buidExecuteSequenceList, combineConditionAttrs, conditionEqualsTo, dealFormula, dependence, eval, getAttributeList2Change, getCondition, getConditionInType, getConditionIterator, getDataSeriesCondition, getDataSeriesConditionCount, getExisted, getName, modFormulaString, remove, remove, removeAll, setCondition, setName, toJSONObject
public static final java.lang.String XML_TAG
public CustomAttr()
public CustomAttr(int renderer)
public CustomAttr(ChartCustomRendererType render)
public void setRenderer(int renderer)
renderer
- 系列类型public void setRenderer(ChartCustomRendererType renderer)
public ChartCustomRendererType getUseRenderer()
public void setUseRenderer(ChartCustomRendererType useRenderer)
public ChartCustomRendererType getRenderer()
public void writeXML(XMLPrintWriter writer)
XMLWriter
writeXML
在接口中 XMLWriter
writeXML
在类中 ConditionAttr
writer
- XML写入对象public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
readXML
在类中 ConditionAttr
reader
- XML读取对象XMLableReader
public java.lang.String getConditionAttrType()
getConditionAttrType
在类中 ConditionAttr
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 ConditionAttr
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public boolean equals(java.lang.Object ob)
equals
在类中 ConditionAttr
public ChartAxisPosition getAxisPosition()
public CustomAttr getNormalConditionAttr()
public boolean needTransformToNormalCondition()
public boolean has3DShape()
public void changeTo3DRenderer()
public boolean is2DBarShapeRender()
public boolean isStackedBarShape()
public boolean isBarShapeRender()
public java.lang.Integer[] getStackedSeriesList(java.util.List series)
public java.lang.Integer[] getStackedSeriesList(int seriesSize)
public CustomAttr createSimpleCustomAttr()
public CustomAttr createTypeConditionAttr()
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在类中 ConditionAttr
repo
- 请求JSONException
- 抛错public JSONObject exportConditionConfig() throws JSONException
exportConditionConfig
在类中 ConditionAttr
JSONException
- 异常