public abstract class VanChartPlotGlyph extends PlotGlyph<VanChartDataSeries>
限定符和类型 | 字段和说明 |
---|---|
protected AttrLabel |
defaultAttrLabel |
protected AttrTooltip |
defaultAttrTooltip |
protected java.util.Map<java.lang.String,Background> |
legendBackgroundMap |
protected java.util.List<java.lang.String> |
legendItemList |
CATEGORY_PARA, conditionCollection, DEFAULT_SIZE, plotStyle, RESET_JAVA_FONT_X, SERIES_PARA, seriesList, STACK, X_AXIS, X_PARA, Y_AXIS, Y_PARA
bounds, visible
构造器和说明 |
---|
VanChartPlotGlyph() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addAlphaJSON(JSONObject js) |
protected void |
addBorderJSON(JSONObject js,
AttrBorder attrBorder) |
void |
addHyperlinkJSON(Repository repo,
JSONObject js) |
protected void |
addLabelJSON(JSONObject js,
AttrLabel attrLabel,
Repository repo) |
protected void |
addNotNullSeriesJSON(JSONObject js,
Repository repo,
ChartWebPara para) |
protected void |
addNullLabelJSON(JSONObject js) |
void |
addOtherJSON(JSONObject js,
Repository repo,
VanChartGlyph vanChartGlyph) |
void |
addSeriesJSON(JSONObject js,
Repository repo,
ChartWebPara para)
系列写入json
|
protected void |
addSeriesJSONWithCate2Series(JSONObject js,
Repository repo)
系列写入json(系列和分类调换一下)
|
void |
addXAxisJSON(JSONObject js,
Repository repo)
X坐标轴写入js
|
void |
addYAxisJSON(JSONObject js,
Repository repo)
Y坐标轴写入js
|
protected boolean |
allNullValue() |
protected void |
changeInfoWithCondition(GeneralInfo info,
VanChartDataPoint dataPoint) |
java.awt.Color[] |
createColors4Legend()
为每个系列创建颜色数组
|
java.awt.Color[] |
createColors4Series()
为每个系列创建颜色数组
|
protected void |
createDataLabel4DataPointWithCondition(VanChartDataPoint dataPoint,
VanChartDataSeries dataSeries) |
protected void |
createDataLabel4EveryPoint(VanChartDataPoint dataPoint,
VanChartDataSeries dataSeries,
java.awt.Color[] colors,
int seriesIndex) |
protected void |
createDataLabel4EverySeries() |
void |
createDataPointLabelAfterInstallAxisGlyph()
初始完坐标轴再创建标签,因为要算百分比
|
LegendItem[] |
createDataSheetLegendItems() |
LegendItem[] |
createLegendItems() |
protected void |
dealDataPointLabel(VanChartDataPoint dataPoint,
int resolution)
处理数据点的标签的边框
|
protected LineMarkerIcon |
dealMarkerIconCondition(LineMarkerIcon itemIcon,
VanChartDataSeries dataSeries,
java.awt.Color[] colors) |
protected LineMarkerIcon |
dealMarkerIconCondition4DataSheet(LineMarkerIcon itemIcon,
VanChartDataSeries dataSeries,
Background background) |
protected java.awt.Color[] |
dealSeriesAccumulatedColors(java.awt.Color[] colors) |
abstract java.lang.String |
demoImagePath() |
void |
draw(java.awt.Graphics g,
int resolution)
画所有Plot都共有的系列
|
protected void |
drawInfo(java.awt.Graphics g,
int resolution)
画包括间隔背景、网格线在内的样式
|
void |
drawWithoutInfo(java.awt.Graphics g,
int resolution)
畫出除了info以外的信息
|
protected AttrAlpha |
getAttrAlpha(VanChartDataPoint dataPoint) |
protected AttrAlpha |
getAttrAlpha(VanChartDataSeries dataSeries) |
protected AttrBackground |
getAttrBackground(VanChartDataPoint dataPoint) |
protected AttrBorder |
getAttrBorder(VanChartDataPoint dataPoint) |
protected AttrLabel |
getAttrLabel(VanChartDataPoint dataPoint) |
protected java.awt.Color |
getAttrLineColor(VanChartDataSeries dataSeries,
java.awt.Color[] colors) |
AxisPlotType |
getAxisPlotType() |
int |
getCategoryNum() |
java.lang.String |
getChartID() |
protected java.awt.geom.Rectangle2D |
getDataPointLabelBoundsWithPosition(java.awt.geom.Dimension2D labelPreDim,
java.awt.geom.Rectangle2D dataPointRect,
int position,
DataPoint dataPoint) |
protected AttrAlpha |
getDefaultAttrAlpha() |
protected AttrBorder |
getDefaultAttrBorder() |
VanChartAttrBubble |
getDefaultAttrBubble() |
protected AttrLabel |
getDefaultAttrLabel() |
protected VanChartAttrMarker |
getDefaultAttrMarker() |
protected AttrTooltip |
getDefaultAttrTooltip() |
protected java.awt.Color[] |
getDefaultColors() |
protected java.awt.Color[] |
getDefaultColors(int seriesLen) |
HyperLinkPara[] |
getHyperLinkParas() |
protected java.lang.String |
getLabelText(AttrLabel attrLabel,
VanChartDataPoint dataPoint) |
java.util.List<java.lang.String> |
getLegendItemList() |
LineMarkerIcon |
getLegendMarkerIcon(VanChartDataSeries dataSeries,
java.awt.Color[] colors) |
int |
getLegendSeriesSize() |
protected double[] |
getMinMaxValue() |
java.lang.String |
getPlotGlyphType()
用于JS中的Type类型.
|
JSONObject |
getPlotOptionsJSON(Repository repo,
boolean isJsDraw,
ChartWebPara para)
获取 plotOptions的JSON对象
|
java.lang.String |
getPointkey(JSONObject pointData) |
java.lang.String |
getPointValue(JSONObject pointData) |
VanChartDataSeries |
getSeries(int index)
指定位置上的系列, 如果不存在, 则返回一个空的系列.
|
protected VanChartDataSeries |
getSeriesFromAll(int seriesIndex)
從所有的系列中獲取
|
java.lang.String |
getSerieskey(JSONObject SeriesData) |
java.lang.String |
getSmallIconType()
图表切换时的小图标
|
boolean |
isAxisRotation() |
boolean |
isLocal() |
boolean |
isSupportEmptyData() |
boolean |
isTreeSeries()
是否树形结构数据
|
void |
layoutAxisGlyph(int resolution)
对绘图区中的坐标轴部分进行布局
|
void |
layoutAxisGlyph(java.awt.geom.Rectangle2D chartOriginalBounds,
int resolution)
对绘图区中的坐标轴部分进行布局,传过去图表边界计算限制区域
|
void |
layoutDataSeriesGlyph(int resolution)
布局图形对象
|
void |
setAxisPlotType(AxisPlotType axisPlotType) |
void |
setAxisRotation(boolean axisRotation) |
void |
setCategoryNum(int categoryNum) |
void |
setChartID(java.lang.String chartID) |
void |
setHyperLinkParas(HyperLinkPara[] hyperLinkParas) |
void |
setLegendItemList(java.util.List<java.lang.String> legendItemList) |
void |
setLocal(boolean isLocal) |
void |
setUseDefaultNullData(boolean useDefaultNullData) |
addECNameToHyperLink, addOtherJSON, addSeries, addSeriesJSON, addSeriesJSON, avoidCoverLabelBounds, axisExtendsMaxMinValueWithTrendLine, calculateDataPointPercentValue, calculateOrderList, clone, createColors4Cate, createDataSheetGlyph, dealDataPointLabel, dealLabelBoundsInOrder, dealLabelBoundsOutPlotBounds, dealPlotHotAttr, doLayout, drawInfo, drawLabel4Series, drawShape4Series, equals, getAdditionalCanvasCount, getAllDataPointGlyph, getAllTrendLineGlyph, getAutoRefreshPerSecond, getCategoryCount, getChartType, getCombinedSize, getConditionCollection, getDataPointLabelBoundsWithPosition, getDataPointLabelBoundsWithPosition, getDataPointLabelBoundsWithPosition4Line, getDataProcessor, getDrawSequence, getExtraLabelValue, getExtraTooltipValue, getFirstDataPoint, getHotHyperLink, getHotTooltipStyle, getPlotDetailType, getPlotFillStyle, getPlotStyle, getPreGap4AxisRightUnit, getPreGap4AxisTopUnit, getPreLeft4DataSheet, getSeriesSize, getVanChartType, getWholeChartBackground, getXDivideUnit, getYDivideUnit, is3DPlotGlyph, isDataPointXNotInPlotBounds, isExistAttrByResult, isNeedDealHotHyperlink, isNullValueBreak, isSeriesDragEnable, isSupportLegend, isSupportZoom, isZoom, notDealDataPointLabel, resetClip, selectableChildren, setAutoRefreshPerSecond, setCombinedSize, setConditionCollection, setDataProcessor, setHotHyperLink, setHotTooltipStyle, setIsNullValueBreak, setPlotFillStyle, setPlotStyle, setSeriesDragEnable, setWholeChartBackground, setZoom, skipDealPointHotAttr, toJSONObject, trendLineFitting
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, toVanJSONObject
protected AttrLabel defaultAttrLabel
protected AttrTooltip defaultAttrTooltip
protected java.util.List<java.lang.String> legendItemList
protected java.util.Map<java.lang.String,Background> legendBackgroundMap
public void setHyperLinkParas(HyperLinkPara[] hyperLinkParas)
public HyperLinkPara[] getHyperLinkParas()
public int getCategoryNum()
public void setCategoryNum(int categoryNum)
public java.lang.String getChartID()
public void setChartID(java.lang.String chartID)
public boolean isLocal()
public void setLocal(boolean isLocal)
public AxisPlotType getAxisPlotType()
public void setAxisPlotType(AxisPlotType axisPlotType)
public boolean isAxisRotation()
public void setAxisRotation(boolean axisRotation)
public java.util.List<java.lang.String> getLegendItemList()
public void setLegendItemList(java.util.List<java.lang.String> legendItemList)
public void setUseDefaultNullData(boolean useDefaultNullData)
public VanChartDataSeries getSeries(int index)
getSeries
在类中 PlotGlyph<VanChartDataSeries>
index
- 要返回的系列的索引public int getLegendSeriesSize()
protected AttrLabel getDefaultAttrLabel()
protected AttrTooltip getDefaultAttrTooltip()
protected AttrAlpha getDefaultAttrAlpha()
protected AttrBorder getDefaultAttrBorder()
public VanChartAttrBubble getDefaultAttrBubble()
protected VanChartAttrMarker getDefaultAttrMarker()
protected java.awt.Color[] getDefaultColors()
protected java.awt.Color[] getDefaultColors(int seriesLen)
protected AttrAlpha getAttrAlpha(VanChartDataPoint dataPoint)
protected AttrAlpha getAttrAlpha(VanChartDataSeries dataSeries)
protected AttrBorder getAttrBorder(VanChartDataPoint dataPoint)
protected AttrLabel getAttrLabel(VanChartDataPoint dataPoint)
protected AttrBackground getAttrBackground(VanChartDataPoint dataPoint)
protected java.awt.Color getAttrLineColor(VanChartDataSeries dataSeries, java.awt.Color[] colors)
protected void changeInfoWithCondition(GeneralInfo info, VanChartDataPoint dataPoint)
public void layoutAxisGlyph(int resolution)
layoutAxisGlyph
在类中 PlotGlyph<VanChartDataSeries>
resolution
- 分辨率public void layoutAxisGlyph(java.awt.geom.Rectangle2D chartOriginalBounds, int resolution)
chartOriginalBounds
- 原始图表边界resolution
- 分辨率protected double[] getMinMaxValue()
public void layoutDataSeriesGlyph(int resolution)
layoutDataSeriesGlyph
在类中 PlotGlyph<VanChartDataSeries>
resolution
- 分辨率public void createDataPointLabelAfterInstallAxisGlyph()
protected void createDataLabel4EverySeries()
protected void createDataLabel4EveryPoint(VanChartDataPoint dataPoint, VanChartDataSeries dataSeries, java.awt.Color[] colors, int seriesIndex)
protected void createDataLabel4DataPointWithCondition(VanChartDataPoint dataPoint, VanChartDataSeries dataSeries)
protected java.lang.String getLabelText(AttrLabel attrLabel, VanChartDataPoint dataPoint)
protected void dealDataPointLabel(VanChartDataPoint dataPoint, int resolution)
dataPoint
- 数据点resolution
- 分辨率protected java.awt.geom.Rectangle2D getDataPointLabelBoundsWithPosition(java.awt.geom.Dimension2D labelPreDim, java.awt.geom.Rectangle2D dataPointRect, int position, DataPoint dataPoint)
public LegendItem[] createLegendItems()
public LegendItem[] createDataSheetLegendItems()
public java.awt.Color[] createColors4Series()
createColors4Series
在类中 PlotGlyph<VanChartDataSeries>
protected java.awt.Color[] dealSeriesAccumulatedColors(java.awt.Color[] colors)
protected LineMarkerIcon dealMarkerIconCondition4DataSheet(LineMarkerIcon itemIcon, VanChartDataSeries dataSeries, Background background)
protected VanChartDataSeries getSeriesFromAll(int seriesIndex)
seriesIndex
- public java.awt.Color[] createColors4Legend()
public LineMarkerIcon getLegendMarkerIcon(VanChartDataSeries dataSeries, java.awt.Color[] colors)
protected LineMarkerIcon dealMarkerIconCondition(LineMarkerIcon itemIcon, VanChartDataSeries dataSeries, java.awt.Color[] colors)
public void draw(java.awt.Graphics g, int resolution)
PlotGlyph
draw
在接口中 Glyph
draw
在类中 PlotGlyph<VanChartDataSeries>
g
- 图形对象resolution
- 分辨率public void drawWithoutInfo(java.awt.Graphics g, int resolution)
g
- resolution
- protected void drawInfo(java.awt.Graphics g, int resolution)
g
- 图形对象protected boolean allNullValue()
public void addSeriesJSON(JSONObject js, Repository repo, ChartWebPara para) throws JSONException
js
- json对象repo
- 请求para
- JSONException
- 抛错protected void addNotNullSeriesJSON(JSONObject js, Repository repo, ChartWebPara para) throws JSONException
JSONException
protected void addSeriesJSONWithCate2Series(JSONObject js, Repository repo) throws JSONException
js
- json对象repo
- 请求JSONException
- 抛错public JSONObject getPlotOptionsJSON(Repository repo, boolean isJsDraw, ChartWebPara para) throws JSONException
getPlotOptionsJSON
在类中 PlotGlyph<VanChartDataSeries>
repo
- 请求isJsDraw
- 动态展示para
- JSONException
- 抛出问题protected void addBorderJSON(JSONObject js, AttrBorder attrBorder) throws JSONException
JSONException
protected void addAlphaJSON(JSONObject js) throws JSONException
JSONException
protected void addLabelJSON(JSONObject js, AttrLabel attrLabel, Repository repo) throws JSONException
JSONException
protected void addNullLabelJSON(JSONObject js) throws JSONException
JSONException
public void addXAxisJSON(JSONObject js, Repository repo) throws JSONException
js
- json对象repo
- 请求JSONException
- 抛错public void addYAxisJSON(JSONObject js, Repository repo) throws JSONException
js
- json对象repo
- 请求JSONException
- 抛错public void addOtherJSON(JSONObject js, Repository repo, VanChartGlyph vanChartGlyph) throws JSONException
JSONException
public java.lang.String getPlotGlyphType()
PlotGlyph
getPlotGlyphType
在类中 PlotGlyph<VanChartDataSeries>
public java.lang.String getSmallIconType()
PlotGlyph
getSmallIconType
在类中 PlotGlyph<VanChartDataSeries>
public java.lang.String getSerieskey(JSONObject SeriesData) throws JSONException
JSONException
public java.lang.String getPointkey(JSONObject pointData) throws JSONException
JSONException
public java.lang.String getPointValue(JSONObject pointData) throws JSONException
JSONException
public boolean isTreeSeries()
public boolean isSupportEmptyData()
public void addHyperlinkJSON(Repository repo, JSONObject js) throws JSONException
JSONException
public abstract java.lang.String demoImagePath()