public abstract class VanChartRectanglePlotGlyph extends VanChartPlotGlyph implements VanChartDataSheetPlotGlyphInterface, AxisGlyphProviderInterface
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
DEFAULT_MAX_VALUE |
protected VanChartPlotType |
vanChartPlotType |
protected java.util.List<VanChartBaseAxisGlyph> |
xAxisGlyphList |
protected java.util.List<VanChartBaseAxisGlyph> |
yAxisGlyphList |
defaultAttrLabel, defaultAttrTooltip, legendBackgroundMap, legendItemListCATEGORY_PARA, conditionCollection, DEFAULT_SIZE, plotStyle, RESET_JAVA_FONT_X, SERIES_PARA, seriesList, STACK, X_AXIS, X_PARA, Y_AXIS, Y_PARAbounds, visible| 构造器和说明 |
|---|
VanChartRectanglePlotGlyph() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addXAxisGlyph(VanChartBaseAxisGlyph axisGlyph) |
void |
addXAxisJSON(JSONObject js,
Repository repo)
X坐标轴写入js
|
void |
addYAxisGlyph(VanChartBaseAxisGlyph axisGlyph) |
void |
addYAxisJSON(JSONObject js,
Repository repo)
Y坐标轴写入js
|
void |
adjustAxisGlyphWithBottomGap(double bottomGap)
布局数据表的时候,需要对绘图区下方继续裁剪,
下方x坐标轴也要进行平移等计算,y坐标轴需要计算unitLength等。
|
void |
adjustAxisGlyphWithLeftGap(double leftGap)
布局数据表的时候,坐标轴左侧对绘图区的裁剪部分不够数据表使用,需要对绘图区左侧继续裁剪,
因为是相对位置,所以只需要右侧的y坐标轴往左移就好了,x坐标轴需要计算unitLength等。
|
protected java.util.Map<java.lang.String,java.util.List<java.util.List<java.lang.Number>>> |
buildAxisMap(boolean combineUnStack) |
protected void |
calculateAxisGlyphAttr(VanChartBaseAxisGlyph axisGlyph,
java.awt.geom.Rectangle2D endPlotBounds) |
void |
calculateDataPointPercentValue()
计算数据点的占比
|
protected int |
calculateLineDataCount(DataSeries dataSeries) |
DataSheetGlyph |
createDataSheetGlyph(DataSheet dataSheet,
LegendItem[] legendItems)
根据数据表和图例元素集合生成数据表Glyph,默认返回null
DataSheet显示的时候, 分类轴标签 不显示, 刻度线不显示 标题不显示.
|
protected java.lang.String |
dealMapKey(VanChartDataSeries dataSeries)
為了防止系列名一樣而造成了堆積效果
使用系列名加index的方式獲取key
|
protected void |
dealOnZeroAxisGlyphLocation(VanChartBaseAxisGlyph axisGlyph,
double verticalZeroPoint) |
protected void |
dealPlotBoundsWidthAxisInHorizontal(VanChartBaseAxisGlyph axisGlyph,
java.awt.geom.Rectangle2D lastPlotBounds) |
protected void |
dealPlotBoundsWithAxisGlyph(VanChartBaseAxisGlyph axisGlyph,
java.awt.geom.Rectangle2D plotLeftBounds,
int resolution) |
protected void |
drawAxis(java.awt.Graphics g,
int resolution) |
void |
drawInfo(java.awt.Graphics g,
int resolution)
画包括间隔背景、网格线在内的样式
|
protected VanChartAttrTrendLine |
getAttrTrendLine(VanChartDataSeries dataSeries) |
int |
getBottomXAxisCount() |
protected VanChartBaseAxisGlyph |
getCateAxis(int axisIndex) |
protected int |
getCateAxisIndex(AttrSeriesStackAndAxis attrSeriesStackAndAxis) |
protected double |
getCateValue(VanChartBaseAxisGlyph axisGlyph,
DataPoint dataPoint,
boolean justHalf) |
protected java.lang.String |
getDataMapKey(VanChartDataSeries dataSeries) |
protected VanChartBaseAxisGlyph |
getDataSeriesCateAxisGlyph(VanChartDataSeries dataSeries) |
protected VanChartBaseAxisGlyph |
getDataSeriesValueAxisGlyph(VanChartDataSeries dataSeries) |
protected VanChartAttrTrendLine |
getDefaultAttrTrendLine() |
VanChartBaseAxisGlyph |
getDefaultXAxisGlyph() |
VanChartBaseAxisGlyph |
getDefaultYAxisGlyph() |
JSONObject |
getPlotOptionsJSON(Repository repo,
boolean isJsDraw,
ChartWebPara para)
获取 plotOptions的JSON对象
|
double[] |
getSeriesMinMaxCateValue(VanChartDataSeries dataSeries,
double[] minMaxCateValue) |
void |
getSeriesValue(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Number>> dataMap,
VanChartDataSeries dataSeries,
AttrSeriesStackAndAxis attrSeriesStackAndAxis,
VanChartBaseAxisGlyph cateAxisGlyph) |
protected int |
getValueAxisIndex(AttrSeriesStackAndAxis attrSeriesStackAndAxis) |
VanChartPlotType |
getVanChartPlotType() |
protected int |
getXAxisGlyphIndex(AttrSeriesStackAndAxis attrSeriesStackAndAxis) |
java.util.List<VanChartBaseAxisGlyph> |
getXAxisGlyphList() |
protected java.lang.String |
getXAxisKey() |
protected int |
getYAxisGlyphIndex(AttrSeriesStackAndAxis attrSeriesStackAndAxis) |
java.util.List<VanChartBaseAxisGlyph> |
getYAxisGlyphList() |
protected java.lang.String |
getYAxisKey() |
protected void |
initAxisGlyphBoundsAndZeroBoundsAndOriginalChartBounds(java.awt.geom.Rectangle2D chartOriginalBounds,
VanChartBaseAxisGlyph axisGlyph,
java.awt.geom.Rectangle2D zeroBounds) |
protected void |
initAxisGlyphStartPoint(VanChartBaseAxisGlyph axisGlyph,
java.awt.geom.Rectangle2D endPlotBounds) |
protected void |
initCategoryAxisMinAndMaxValue(int axisIndex,
VanChartCategoryAxisGlyph axisGlyph) |
protected void |
initDataSeriesBandsDefaultMinMaxValue(double min,
double max,
java.util.List<java.lang.Number> seriesList4TheAxis) |
protected DataSheetGlyph |
initDataSheetGlyph(FRFont font,
java.text.Format format,
DataSheet dataSheet) |
protected void |
initTrendLineGlyph(TrendLineGlyph newTrendLine,
double[] xVal,
double[] yVal) |
protected void |
initValueAxisGlyphMinMaxValue(int axisIndex,
VanChartBaseAxisGlyph axisGlyph)
数值轴初始最大最小值(考虑堆积)
|
protected void |
initXAxisGlyphMinMaxValue(int axisIndex,
VanChartBaseAxisGlyph axisGlyph) |
protected void |
initXAxisLabelDrawPosition(int axisIndex,
VanChartBaseAxisGlyph axisGlyph) |
protected void |
initYAxisGlyphMinMaxValue(int axisIndex,
VanChartBaseAxisGlyph axisGlyph) |
protected void |
initYAxisLabelDrawPosition(VanChartBaseAxisGlyph axisGlyph) |
protected boolean |
isAdjustXAxisMinMaxValue()
柱形图的横轴是数值或者日期时,自动计算坐标轴最大值最小值之后, 最小值减一个mainUnit,最大值加,以放下一根柱子
|
protected boolean |
isHorizontalValueAxis()
判断是否为水平的值轴
|
protected boolean |
isStackDataSeries(java.lang.Number seriesIndex) |
protected java.awt.geom.Rectangle2D |
justBound4Arrow(java.awt.geom.Rectangle2D bounds) |
void |
layoutAxisGlyph(java.awt.geom.Rectangle2D chartOriginalBounds,
int resolution)
对绘图区中的坐标轴部分进行布局,传过去图表边界计算限制区域
|
protected void |
setAxisLabelDrawBetween(VanChartBaseAxisGlyph axisGlyph) |
void |
setVanChartPlotType(VanChartPlotType vanChartPlotType) |
void |
setXAxisGlyphList(java.util.List<VanChartBaseAxisGlyph> xAxisGlyphList) |
void |
setYAxisGlyphList(java.util.List<VanChartBaseAxisGlyph> yAxisGlyphList) |
protected void |
trendLineFitting(double[] xVal,
double[] yVal,
VanChartDataSeries dataSeries)
趋势线拟合计算
|
addAlphaJSON, addBorderJSON, addHyperlinkJSON, addLabelJSON, addNotNullSeriesJSON, addNullLabelJSON, addOtherJSON, addSeriesJSON, addSeriesJSONWithCate2Series, allNullValue, changeInfoWithCondition, createColors4Legend, createColors4Series, createDataLabel4DataPointWithCondition, createDataLabel4EveryPoint, createDataLabel4EverySeries, createDataPointLabelAfterInstallAxisGlyph, createDataSheetLegendItems, createLegendItems, dealDataPointLabel, dealMarkerIconCondition, dealMarkerIconCondition4DataSheet, dealSeriesAccumulatedColors, demoImagePath, draw, drawWithoutInfo, getAttrAlpha, getAttrAlpha, getAttrBackground, getAttrBorder, getAttrLabel, getAttrLineColor, getAxisPlotType, getCategoryNum, getChartID, getDataPointLabelBoundsWithPosition, getDefaultAttrAlpha, getDefaultAttrBorder, getDefaultAttrBubble, getDefaultAttrLabel, getDefaultAttrMarker, getDefaultAttrTooltip, getDefaultColors, getDefaultColors, getHyperLinkParas, getLabelText, getLegendItemList, getLegendMarkerIcon, getLegendSeriesSize, getMinMaxValue, getPlotGlyphType, getPointkey, getPointValue, getSeries, getSeriesFromAll, getSerieskey, getSmallIconType, isAxisRotation, isLocal, isSupportEmptyData, isTreeSeries, layoutAxisGlyph, layoutDataSeriesGlyph, setAxisPlotType, setAxisRotation, setCategoryNum, setChartID, setHyperLinkParas, setLegendItemList, setLocal, setUseDefaultNullDataaddECNameToHyperLink, addOtherJSON, addSeries, addSeriesJSON, addSeriesJSON, avoidCoverLabelBounds, axisExtendsMaxMinValueWithTrendLine, calculateOrderList, clone, createColors4Cate, 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, trendLineFittinggetBounds, getOutline4Fill, getShape, isInvisible, isVisible, setBounds, setVisibledealCondition, dealConditionWithSeriesColor, drawOnlyBorder, drawWithOutBorder, getAlpha, getBackground, getBorderColor, getBorderStyle, getGeneralInfo, getRoundRadius, is3DIE6, isRoundBorder, isShadow, paint, paintBackground, putBackgroundJSON, putPlotBackgroundJSON, setAlpha, setBackground, setBorderColor, setBorderStyle, setGeneralInfo, setRoundBorder, toVanJSONObjectfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDataSheetLegendItems, createLegendItems, getBounds, getSeries, getSeriesSize, setBoundsprotected static final int DEFAULT_MAX_VALUE
protected VanChartPlotType vanChartPlotType
protected java.util.List<VanChartBaseAxisGlyph> xAxisGlyphList
protected java.util.List<VanChartBaseAxisGlyph> yAxisGlyphList
public void setVanChartPlotType(VanChartPlotType vanChartPlotType)
public VanChartPlotType getVanChartPlotType()
public java.util.List<VanChartBaseAxisGlyph> getYAxisGlyphList()
getYAxisGlyphList 在接口中 AxisGlyphProviderInterfacepublic java.util.List<VanChartBaseAxisGlyph> getXAxisGlyphList()
getXAxisGlyphList 在接口中 AxisGlyphProviderInterfacepublic void setYAxisGlyphList(java.util.List<VanChartBaseAxisGlyph> yAxisGlyphList)
public void setXAxisGlyphList(java.util.List<VanChartBaseAxisGlyph> xAxisGlyphList)
protected VanChartAttrTrendLine getDefaultAttrTrendLine()
protected VanChartAttrTrendLine getAttrTrendLine(VanChartDataSeries dataSeries)
public void addXAxisGlyph(VanChartBaseAxisGlyph axisGlyph)
public void addYAxisGlyph(VanChartBaseAxisGlyph axisGlyph)
public int getBottomXAxisCount()
public DataSheetGlyph createDataSheetGlyph(DataSheet dataSheet, LegendItem[] legendItems)
createDataSheetGlyph 在类中 PlotGlyph<VanChartDataSeries>dataSheet - 数据表legendItems - 图例集合(这边是null),布局的时候再初始话itemsprotected DataSheetGlyph initDataSheetGlyph(FRFont font, java.text.Format format, DataSheet dataSheet)
public void adjustAxisGlyphWithLeftGap(double leftGap)
adjustAxisGlyphWithLeftGap 在接口中 VanChartDataSheetPlotGlyphInterfaceleftGap - 绘图区左侧还需要裁剪leftGappublic void adjustAxisGlyphWithBottomGap(double bottomGap)
adjustAxisGlyphWithBottomGap 在接口中 VanChartDataSheetPlotGlyphInterfacebottomGap - 绘图区下方还需要裁剪rightGappublic void layoutAxisGlyph(java.awt.geom.Rectangle2D chartOriginalBounds,
int resolution)
layoutAxisGlyph 在类中 VanChartPlotGlyphchartOriginalBounds - 原始图表边界resolution - 分辨率protected java.awt.geom.Rectangle2D justBound4Arrow(java.awt.geom.Rectangle2D bounds)
protected void initAxisGlyphBoundsAndZeroBoundsAndOriginalChartBounds(java.awt.geom.Rectangle2D chartOriginalBounds,
VanChartBaseAxisGlyph axisGlyph,
java.awt.geom.Rectangle2D zeroBounds)
protected void dealPlotBoundsWithAxisGlyph(VanChartBaseAxisGlyph axisGlyph, java.awt.geom.Rectangle2D plotLeftBounds, int resolution)
protected void dealPlotBoundsWidthAxisInHorizontal(VanChartBaseAxisGlyph axisGlyph, java.awt.geom.Rectangle2D lastPlotBounds)
protected void calculateAxisGlyphAttr(VanChartBaseAxisGlyph axisGlyph, java.awt.geom.Rectangle2D endPlotBounds)
protected void initAxisGlyphStartPoint(VanChartBaseAxisGlyph axisGlyph, java.awt.geom.Rectangle2D endPlotBounds)
protected void dealOnZeroAxisGlyphLocation(VanChartBaseAxisGlyph axisGlyph, double verticalZeroPoint)
protected void initXAxisLabelDrawPosition(int axisIndex,
VanChartBaseAxisGlyph axisGlyph)
protected void initYAxisLabelDrawPosition(VanChartBaseAxisGlyph axisGlyph)
protected void setAxisLabelDrawBetween(VanChartBaseAxisGlyph axisGlyph)
protected void initXAxisGlyphMinMaxValue(int axisIndex,
VanChartBaseAxisGlyph axisGlyph)
protected void initCategoryAxisMinAndMaxValue(int axisIndex,
VanChartCategoryAxisGlyph axisGlyph)
protected void initYAxisGlyphMinMaxValue(int axisIndex,
VanChartBaseAxisGlyph axisGlyph)
protected boolean isAdjustXAxisMinMaxValue()
public double[] getSeriesMinMaxCateValue(VanChartDataSeries dataSeries, double[] minMaxCateValue)
protected void initValueAxisGlyphMinMaxValue(int axisIndex,
VanChartBaseAxisGlyph axisGlyph)
axisIndex - 坐标轴下标axisGlyph - 坐标轴图形protected int getValueAxisIndex(AttrSeriesStackAndAxis attrSeriesStackAndAxis)
protected int getCateAxisIndex(AttrSeriesStackAndAxis attrSeriesStackAndAxis)
protected VanChartBaseAxisGlyph getCateAxis(int axisIndex)
public void getSeriesValue(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Number>> dataMap,
VanChartDataSeries dataSeries,
AttrSeriesStackAndAxis attrSeriesStackAndAxis,
VanChartBaseAxisGlyph cateAxisGlyph)
protected void initDataSeriesBandsDefaultMinMaxValue(double min,
double max,
java.util.List<java.lang.Number> seriesList4TheAxis)
protected java.util.Map<java.lang.String,java.util.List<java.util.List<java.lang.Number>>> buildAxisMap(boolean combineUnStack)
protected java.lang.String dealMapKey(VanChartDataSeries dataSeries)
dataSeries - protected VanChartBaseAxisGlyph getDataSeriesValueAxisGlyph(VanChartDataSeries dataSeries)
protected VanChartBaseAxisGlyph getDataSeriesCateAxisGlyph(VanChartDataSeries dataSeries)
protected int getXAxisGlyphIndex(AttrSeriesStackAndAxis attrSeriesStackAndAxis)
protected int getYAxisGlyphIndex(AttrSeriesStackAndAxis attrSeriesStackAndAxis)
public VanChartBaseAxisGlyph getDefaultXAxisGlyph()
public VanChartBaseAxisGlyph getDefaultYAxisGlyph()
public void calculateDataPointPercentValue()
protected boolean isStackDataSeries(java.lang.Number seriesIndex)
protected double getCateValue(VanChartBaseAxisGlyph axisGlyph, DataPoint dataPoint, boolean justHalf)
protected int calculateLineDataCount(DataSeries dataSeries)
protected void trendLineFitting(double[] xVal,
double[] yVal,
VanChartDataSeries dataSeries)
protected void initTrendLineGlyph(TrendLineGlyph newTrendLine, double[] xVal, double[] yVal)
protected boolean isHorizontalValueAxis()
public void drawInfo(java.awt.Graphics g,
int resolution)
VanChartPlotGlyphdrawInfo 在类中 VanChartPlotGlyphg - 图形对象protected void drawAxis(java.awt.Graphics g,
int resolution)
public void addXAxisJSON(JSONObject js, Repository repo) throws JSONException
addXAxisJSON 在类中 VanChartPlotGlyphjs - json对象repo - 请求JSONException - 抛错protected java.lang.String getXAxisKey()
protected java.lang.String getYAxisKey()
public void addYAxisJSON(JSONObject js, Repository repo) throws JSONException
addYAxisJSON 在类中 VanChartPlotGlyphjs - json对象repo - 请求JSONException - 抛错public JSONObject getPlotOptionsJSON(Repository repo, boolean isJsDraw, ChartWebPara para) throws JSONException
getPlotOptionsJSON 在类中 VanChartPlotGlyphrepo - 请求isJsDraw - 动态展示para - JSONException - 抛出问题protected java.lang.String getDataMapKey(VanChartDataSeries dataSeries)