public class ChartGlyph<T extends PlotGlyph,U extends LegendGlyph,V extends DataSheetGlyph> extends RectangleGlyph implements BaseChartGlyph
bounds, visible
构造器和说明 |
---|
ChartGlyph() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
chartDoLayout(int resolution) |
java.lang.Object |
clone() |
void |
draw(java.awt.Graphics g,
int resolution)
画ChartGlyph,包括边框轮廓、外发光、标题文本等
|
boolean |
equals(java.lang.Object ob) |
protected int |
getAutoRefreshTime(ChartGlyph chartGlyph) |
java.lang.String |
getChartID() |
ChartWebPara |
getChartWebPara() |
V |
getDataSheetGlyph()
获取数据表
|
double |
getFontScale() |
U |
getLegendGlyph()
获取图列
|
HeatMapControlBar |
getMapControlBar()
获取地图图例
|
T |
getPlotGlyph()
返回绘图区
|
TitleGlyph |
getTitleGlyph()
获取标题对象
|
boolean |
isChartSupportCanvas() |
boolean |
isExport() |
boolean |
isJSDraw()
是否使用javascript动态的画图表
|
boolean |
isUseChangeChart()
返回是否使用切换控件.
|
boolean |
isUseDragRefresh()
是否使用系列拖拽的控件
|
protected void |
makeSureBounds(double borderSize,
int width,
int height) |
protected float |
minRefreshTime() |
java.util.Iterator |
selectableChildren()
返回可被选中的Glyph的一个集合,该集合可能包括PlotGlyph,LegendGlyph,TitleGlyph和DataSheetGlyph
|
void |
setChartID(java.lang.String chartID) |
void |
setChartImagePath(java.lang.String chartImagePath) |
void |
setChartWebPara(ChartWebPara chartWebPara) |
void |
setDataDefinition(TopDefinitionProvider definition) |
void |
setDataSheetGlyph(V dataSheetGlyph)
设置数据表
|
void |
setExport(boolean export) |
void |
setFontScale(double fontScale)
设置图表字体比例
|
void |
setJSDraw(boolean isJSDraw)
设置是否用javascript动态画图表
|
void |
setLegendGlyph(U legendGlyph)
设置图例
|
void |
setMapControlBar(HeatMapControlBar mapControlBar)
设置地图图例
|
void |
setOptions(JSONObject options) |
void |
setPlotGlyph(T plotGlyph)
设置绘图区
|
void |
setRequiredCSS(java.lang.String[] requiredCSS) |
void |
setRequiredJS(java.lang.String[] requiredJS) |
void |
setTitleGlyph(TitleGlyph titleGlyph)
设置标题对象
|
void |
setUseChangeChart(boolean isUseChangeChart)
设置是否需要使用 切换控件
|
void |
setUseDragRefresh(boolean isRefresh)
设置时候使用按钮
|
void |
setWrapperName(java.lang.String wrapperName) |
java.awt.Image |
toImage(int width,
int height,
int resolution)
按照指定的宽度、高度和分辨率将ChartGlyph转换为图片
|
java.awt.Image |
toImage(int width,
int height,
int resolution,
CallbackEvent chartDataEvent)
已过时。
|
java.awt.Image |
toImage(int width,
int height,
int resolution,
CallbackEvent chartDataEvent,
ChartDataParam param) |
java.util.Map |
toJSONMap(java.lang.String[] dependence,
double width,
double height,
Repository repo,
int sheetIndex,
java.lang.String ecName)
将ChartGlyph的属性等放入Map, 资源存入服务器.
|
java.util.Map |
toJSONMap4Change(ChangeConfigProvider changeConfigProvider,
BaseChartGlyph[] glyphs,
java.lang.String[] dependence,
double width,
double height,
Repository repo,
int sheetIndex,
java.lang.String ecName)
将ChartGlyph的属性等放入Map, 资源存入服务器.
|
java.util.Map |
toJSONMap4ChangeModel(BaseChartPainter painter,
double width,
double height,
Repository repo) |
JSONObject |
toJSONObject(Repository repo)
生成浏览器端需要的JSON对象
|
JSONObject |
toJSONObject(Repository repo,
double width,
double height) |
JSONObject |
toVanJSONObject(Repository repo) |
getBounds, getOutline4Fill, getShape, isInvisible, isVisible, setBounds, setVisible
dealCondition, dealConditionWithSeriesColor, drawOnlyBorder, drawWithOutBorder, getAlpha, getBackground, getBorderColor, getBorderStyle, getGeneralInfo, getRoundRadius, is3DIE6, isRoundBorder, isShadow, paint, paintBackground, putBackgroundJSON, putPlotBackgroundJSON, setAlpha, setBackground, setBorderColor, setBorderStyle, setGeneralInfo, setRoundBorder
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRoundBorder, setBounds
public java.lang.String getChartID()
public void setChartID(java.lang.String chartID)
setChartID
在接口中 BaseChartGlyph
public boolean isExport()
public ChartWebPara getChartWebPara()
public void setChartWebPara(ChartWebPara chartWebPara)
public void setFontScale(double fontScale)
BaseChartGlyph
setFontScale
在接口中 BaseChartGlyph
public double getFontScale()
public void setExport(boolean export)
public void setPlotGlyph(T plotGlyph)
plotGlyph
- public T getPlotGlyph()
public void setLegendGlyph(U legendGlyph)
legendGlyph
- 图例对象public U getLegendGlyph()
public void setMapControlBar(HeatMapControlBar mapControlBar)
mapControlBar
- 地图图例public HeatMapControlBar getMapControlBar()
public void setTitleGlyph(TitleGlyph titleGlyph)
titleGlyph
- 标题对象,包括文本、文本属性以及文本位置等信息public TitleGlyph getTitleGlyph()
public void setJSDraw(boolean isJSDraw)
isJSDraw
- true表示是用javascript画图表,false表示使用静态图片public boolean isJSDraw()
public void setUseChangeChart(boolean isUseChangeChart)
setUseChangeChart
在接口中 BaseChartGlyph
isUseChangeChart
- public boolean isUseChangeChart()
public void setUseDragRefresh(boolean isRefresh)
setUseDragRefresh
在接口中 BaseChartGlyph
isRefresh
- 是否使用按钮public boolean isUseDragRefresh()
public void setDataSheetGlyph(V dataSheetGlyph)
dataSheetGlyph
- 要设置的数据表对象public V getDataSheetGlyph()
public void setDataDefinition(TopDefinitionProvider definition)
public void setOptions(JSONObject options)
public void setWrapperName(java.lang.String wrapperName)
public void setRequiredJS(java.lang.String[] requiredJS)
public void setRequiredCSS(java.lang.String[] requiredCSS)
public void setChartImagePath(java.lang.String chartImagePath)
public java.util.Iterator selectableChildren()
selectableChildren
在接口中 Glyph
public java.awt.Image toImage(int width, int height, int resolution)
toImage
在接口中 BaseChartGlyph
width
- 结果图片的宽度height
- 结果图片的高度resolution
- 分辨率@Deprecated public java.awt.Image toImage(int width, int height, int resolution, CallbackEvent chartDataEvent)
public java.awt.Image toImage(int width, int height, int resolution, CallbackEvent chartDataEvent, ChartDataParam param)
toImage
在接口中 BaseChartGlyph
public java.util.Map toJSONMap(java.lang.String[] dependence, double width, double height, Repository repo, int sheetIndex, java.lang.String ecName)
toJSONMap
在接口中 BaseChartGlyph
dependence
- chartGlyph依赖的控件参数width
- 图表chartGlyph的宽度height
- 图表chartGlyph的宽度repo
- 服务.sheetIndex
- sheet序号ecName
- 报表块名称public java.util.Map toJSONMap4Change(ChangeConfigProvider changeConfigProvider, BaseChartGlyph[] glyphs, java.lang.String[] dependence, double width, double height, Repository repo, int sheetIndex, java.lang.String ecName)
toJSONMap4Change
在接口中 BaseChartGlyph
dependence
- chartGlyph依赖的控件参数width
- 图表chartGlyph的宽度height
- 图表chartGlyph的宽度repo
- 服务.sheetIndex
- sheet序号ecName
- 报表块名称protected float minRefreshTime()
protected int getAutoRefreshTime(ChartGlyph chartGlyph)
protected void makeSureBounds(double borderSize, int width, int height)
public void draw(java.awt.Graphics g, int resolution)
draw
在接口中 BaseChartGlyph
draw
在接口中 Glyph
draw
在类中 GeneralGlyph
g
- 图形对象resolution
- 分辨率public java.util.Map toJSONMap4ChangeModel(BaseChartPainter painter, double width, double height, Repository repo)
toJSONMap4ChangeModel
在接口中 BaseChartGlyph
protected void chartDoLayout(int resolution)
public boolean equals(java.lang.Object ob)
equals
在类中 RectangleGlyph
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 RectangleGlyph
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public JSONObject toJSONObject(Repository repo, double width, double height) throws JSONException
JSONException
public JSONObject toVanJSONObject(Repository repo) throws JSONException
toVanJSONObject
在类中 GeneralGlyph
JSONException
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 RectangleGlyph
repo
- 请求.JSONException
- 抛出错误public boolean isChartSupportCanvas()