public class ChartEditor extends AbstractBorderStyleWidget implements BaseChartEditor, FormHyperlinkEditor, ResizableElement
background, borderStyle, marginAFTEREDIT, 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, setMarginacceptType, 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, value2ConfigaddListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSizecopy, getId, getNameSpace, setId, setNameSpacegetClassInfo, getData, invalidate, isLoad, setClassInfo, setDatagetBorderStyle, getWidgetNamepublic void addChart(BaseChart chart)
addChart 在接口中 BaseChartEditorchart - 添加的图表.public java.lang.String getXType()
getXType 在类中 AbstractBorderStyleWidgetpublic boolean isEditor()
isEditor 在类中 AbstractBorderStyleWidgetpublic BaseChartCollection getChartCollection()
getChartCollection 在接口中 BaseChartEditorpublic void resetChangeChartCollection(BaseChartCollection cc)
resetChangeChartCollection 在接口中 BaseChartEditorcc - 重新设置的图表收集器ccpublic java.lang.String[] supportedEvents()
supportedEvents 在类中 AbstractBorderStyleWidgetpublic JSONObject createJSONConfig2Show(int width, int height, Repository repo, Calculator ca) throws JSONException
createJSONConfig2Show 在接口中 BaseChartEditorwidth - 宽度height - 高度repo - 请求来源的信息ca - 当前算子JSONExceptionpublic void resize(double width,
double height,
double fontScale)
public void mixinReturnData(javax.servlet.http.HttpServletRequest req,
Calculator ca,
JSONObject jo)
throws JSONException
InteractivemixinReturnData 在接口中 Interactivereq - HTTP请求ca - 算子jo - 保存计算结果的对象JSONExceptionpublic void toImage(Calculator ca, java.awt.Rectangle rec, java.awt.Graphics g)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig 在类中 AbstractBorderStyleWidgetrepo - : 请求c - : 指定解析器nodeVisitor - 节点访问JSONException - 异常public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone 在接口中 FCloneableclone 在类中 AbstractBorderStyleWidgetjava.lang.CloneNotSupportedException - 如果克隆失败则抛出此异常public void writeXML(XMLPrintWriter writer)
writeXML 在接口中 XMLWriterwriteXML 在类中 AbstractBorderStyleWidgetwriter - the PrintWriter.public void readXML(XMLableReader reader)
readXML 在接口中 XMLReadablereadXML 在类中 AbstractBorderStyleWidgetreader - XML读取对象XMLableReaderpublic boolean canCurrentMarginAvailable(PaddingMargin margin)
canCurrentMarginAvailable 在类中 AbstractBorderStyleWidgetmargin - 边距public ChartMobileAttrProvider getMobileAttr()
getMobileAttr 在接口中 BaseChartEditor