public class ChartEditor extends AbstractBorderStyleWidget implements BaseChartEditor, FormHyperlinkEditor, ResizableElement
background, borderStyle, margin
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
ChartEditor() |
限定符和类型 | 方法和说明 |
---|---|
void |
addChart(BaseChart chart)
添加图表.
|
boolean |
canCurrentMarginAvailable(PaddingMargin margin)
当前设置的边距值是否可用,若设置后有控件达到最小尺寸则返回false
|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
JSONObject |
createJSONConfig2Show(int width,
int height,
Repository repo,
Calculator ca)
创建JSON的配置属性用于展示.
|
BaseChartCollection |
getChartCollection()
返回内部的图表收集器.
|
ChartMobileAttrProvider |
getMobileAttr() |
java.lang.String |
getXType()
返回X的类型.
|
boolean |
isEditor()
是否为编辑器 默认为false
|
void |
mixinReturnData(javax.servlet.http.HttpServletRequest req,
Calculator ca,
JSONObject jo)
将计算结果传递给jo对象
|
void |
readXML(XMLableReader reader)
读取xml
|
void |
resetChangeChartCollection(BaseChartCollection cc)
重置替换图表收集器.
|
void |
resize(double width,
double height,
double fontScale)
调整组件到指定的大小
|
java.lang.String[] |
supportedEvents()
支持的事件.
|
void |
toImage(Calculator ca,
java.awt.Rectangle rec,
java.awt.Graphics g)
将当前控件转化为图片
|
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, setBackground, setBorderStyle, setBorderStyleNoBackground, setMargin
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, equals, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, hashCode, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
getBorderStyle, getWidgetName
public void addChart(BaseChart chart)
addChart
在接口中 BaseChartEditor
chart
- 添加的图表.public java.lang.String getXType()
getXType
在类中 AbstractBorderStyleWidget
public boolean isEditor()
isEditor
在类中 AbstractBorderStyleWidget
public BaseChartCollection getChartCollection()
getChartCollection
在接口中 BaseChartEditor
public void resetChangeChartCollection(BaseChartCollection cc)
resetChangeChartCollection
在接口中 BaseChartEditor
cc
- 重新设置的图表收集器ccpublic java.lang.String[] supportedEvents()
supportedEvents
在类中 AbstractBorderStyleWidget
public JSONObject createJSONConfig2Show(int width, int height, Repository repo, Calculator ca) throws JSONException
createJSONConfig2Show
在接口中 BaseChartEditor
width
- 宽度height
- 高度repo
- 请求来源的信息ca
- 当前算子JSONException
public void resize(double width, double height, double fontScale)
public void mixinReturnData(javax.servlet.http.HttpServletRequest req, Calculator ca, JSONObject jo) throws JSONException
Interactive
mixinReturnData
在接口中 Interactive
req
- HTTP请求ca
- 算子jo
- 保存计算结果的对象JSONException
public void toImage(Calculator ca, java.awt.Rectangle rec, java.awt.Graphics g)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 AbstractBorderStyleWidget
repo
- : 请求c
- : 指定解析器nodeVisitor
- 节点访问JSONException
- 异常public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 AbstractBorderStyleWidget
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public void writeXML(XMLPrintWriter writer)
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractBorderStyleWidget
writer
- the PrintWriter.public void readXML(XMLableReader reader)
readXML
在接口中 XMLReadable
readXML
在类中 AbstractBorderStyleWidget
reader
- XML读取对象XMLableReader
public boolean canCurrentMarginAvailable(PaddingMargin margin)
canCurrentMarginAvailable
在类中 AbstractBorderStyleWidget
margin
- 边距public ChartMobileAttrProvider getMobileAttr()
getMobileAttr
在接口中 BaseChartEditor