public abstract class CategoryPlotGlyph extends RectanglePlotGlyph
限定符和类型 | 字段和说明 |
---|---|
protected Cubic |
threeDBase |
protected static int |
ZP |
CATEGORY_PARA, conditionCollection, DEFAULT_SIZE, plotStyle, RESET_JAVA_FONT_X, SERIES_PARA, seriesList, STACK, X_AXIS, X_PARA, Y_AXIS, Y_PARA
bounds, visible
构造器和说明 |
---|
CategoryPlotGlyph() |
限定符和类型 | 方法和说明 |
---|---|
DataSheetGlyph |
createDataSheetGlyph(DataSheet dataSheet,
LegendItem[] legendItems)
创建数据表图形对象
|
void |
doLayout(DataSheetGlyph glyph)
布局DataSheetGlyph
|
void |
draw3DInfo(java.awt.Graphics g,
int resolution)
画三维格式的背景,底座
|
protected void |
drawAxisGlyph4ThreeD(AxisGlyph glyph,
java.awt.Graphics g,
int resolution) |
boolean |
equals(java.lang.Object ob) |
protected byte[] |
get3DBaseCover()
返回三维底座需要画的面
|
protected int |
get3DDeep(Plot3DGlyph plot3D) |
double |
getBarPercent(int seriesCount)
设区间宽度为1, Bar宽度为width;
公式: (seriesCount * width) - (seriesCount - 1) * width * seriesOverlapPercent
+ width * categoryIntervalPercent = 1
所以 width = 1 / (seriesCount - (SeriesCount - 1) * seriesOverlapPercent + categoryIntervalPercent)
|
double |
getBarStartPercent(double barPercent,
int categoryIndex,
BarDataWithAxisGlyph data) |
double |
getCategoryIntervalPercent() |
double |
getDataPointPercentValue(int seriesIndex,
int categoryIndex)
kunsnat: 处理值轴 百分比的值情况.
|
protected java.lang.String |
getExtraTooltipValue() |
java.awt.Shape |
getOutline4Fill()
获取用于填充的外发光的形状
|
JSONObject |
getPlotOptionsJSON(Repository repo,
boolean isJsDraw,
ChartWebPara para)
获取 plotOptions的JSON对象
|
double |
getPreSum4Area(int seriesIndex,
int categoryIndex)
得到面积系列指定分类和系列 之前堆积的数据和.
|
double |
getPreSum4Bar(int seriesIndex,
int categoryIndex,
boolean isNegative)
得到柱形系系列指定分类和序号 之前堆积的数据和.
|
double |
getPreSum4Line(int seriesIndex,
int categoryIndex)
得到折线系列指定分类和系列 之前堆积的数据和.
|
double |
getSeriesOverlapPercent() |
protected boolean |
is3DBaseHorizontal()
返回三维底座知否是水平的
|
boolean |
isNeedDefaultDeep()
三围图表是否使用默认的深度
|
boolean |
isStacked()
返回该图表是否为堆积图表
|
protected void |
layoutAxisGlyph4ThreeD(AxisGlyph categoryAxisGlyph,
AxisGlyph valueAxisGlyph,
AxisGlyph secondAxisGlyph,
int resolution)
布局有坐标轴的3D图表 关键是底座
|
protected void |
layoutDoubleAxisGlyph(AxisGlyph cateAxis,
AxisGlyph valueAxis,
AxisGlyph secAxis,
boolean is3D,
int resolution) |
protected void |
resetPlotBoundsWith3DDeepAndProjectionBeforeAxisGlyph()
根据三维格式和深度重新调整绘图区的边界.
|
void |
setCategoryIntervalPercent(double categoryIntervalPercent)
设置柱形图(条形图)分类之间的间距
|
void |
setSeriesOverlapPercent(double seriesOverlapPercent)
设置柱形图(条形图)系列之间的分离程度
|
void |
setStacked(boolean isStacked)
设置该图表是否为堆积图表
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
addOtherJSON, calculateAxisGlyphAttr, createSheetGlyphAndNotShowAxisGlyph, dealCommonLinePath, dealCurveLinePath, dealPlotBoundsWidthAxisInHorizontal, dealPlotBoundsWithAxisGlyph, draw, drawBackgroundGrid, drawInfo, getPreGap4AxisRightUnit, getPreGap4AxisTopUnit, getPreLeft4DataSheet, getSecondAxisGlyph, getSeriesAxisGlyph, getxAxisGlyph, getXDivideUnit, getyAxisGlyph, getYDivideUnit, initAxisGlyphBoundsAndZeroBounds, isZoom, layoutAxisGlyph, layoutDoubleAxisGlyph, selectableChildren, setHorizontalIntervalBackgroundColor, setInteractiveAxisTooltip, setSecondAxisGlyph, setVerticalIntervalBackgroundColor, setxAxisGlyph, setyAxisGlyph
addECNameToHyperLink, addSeries, addSeriesJSON, addSeriesJSON, avoidCoverLabelBounds, axisExtendsMaxMinValueWithTrendLine, calculateDataPointPercentValue, calculateOrderList, clone, createColors4Cate, createColors4Series, dealDataPointLabel, dealLabelBoundsInOrder, dealLabelBoundsOutPlotBounds, dealPlotHotAttr, drawLabel4Series, drawShape4Series, getAdditionalCanvasCount, getAllDataPointGlyph, getAllTrendLineGlyph, getAutoRefreshPerSecond, getCategoryCount, getChartType, getCombinedSize, getConditionCollection, getDataPointLabelBoundsWithPosition, getDataPointLabelBoundsWithPosition, getDataPointLabelBoundsWithPosition4Line, getDataProcessor, getDrawSequence, getExtraLabelValue, getFirstDataPoint, getHotHyperLink, getHotTooltipStyle, getPlotDetailType, getPlotFillStyle, getPlotGlyphType, getPlotStyle, getSeries, getSeriesSize, getSmallIconType, getVanChartType, getWholeChartBackground, is3DPlotGlyph, isDataPointXNotInPlotBounds, isExistAttrByResult, isNeedDealHotHyperlink, isNullValueBreak, isSeriesDragEnable, isSupportLegend, isSupportZoom, layoutDataSeriesGlyph, notDealDataPointLabel, resetClip, setAutoRefreshPerSecond, setCombinedSize, setConditionCollection, setDataProcessor, setHotHyperLink, setHotTooltipStyle, setIsNullValueBreak, setPlotFillStyle, setPlotStyle, setSeriesDragEnable, setWholeChartBackground, setZoom, skipDealPointHotAttr, trendLineFitting
getBounds, 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
public boolean isStacked()
public void setStacked(boolean isStacked)
isStacked
- true为堆积图表protected byte[] get3DBaseCover()
protected boolean is3DBaseHorizontal()
public void setSeriesOverlapPercent(double seriesOverlapPercent)
seriesOverlapPercent
- 一个位于-100%到100%之间的值public void setCategoryIntervalPercent(double categoryIntervalPercent)
categoryIntervalPercent
- 一个有效值为0%到500%之间的值public double getSeriesOverlapPercent()
public double getCategoryIntervalPercent()
public void doLayout(DataSheetGlyph glyph)
public DataSheetGlyph createDataSheetGlyph(DataSheet dataSheet, LegendItem[] legendItems)
createDataSheetGlyph
在类中 PlotGlyph
dataSheet
- 数据表legendItems
- 图例集合protected void resetPlotBoundsWith3DDeepAndProjectionBeforeAxisGlyph()
protected void layoutDoubleAxisGlyph(AxisGlyph cateAxis, AxisGlyph valueAxis, AxisGlyph secAxis, boolean is3D, int resolution)
protected void layoutAxisGlyph4ThreeD(AxisGlyph categoryAxisGlyph, AxisGlyph valueAxisGlyph, AxisGlyph secondAxisGlyph, int resolution)
resolution
- 分辨率protected int get3DDeep(Plot3DGlyph plot3D)
protected void drawAxisGlyph4ThreeD(AxisGlyph glyph, java.awt.Graphics g, int resolution)
public void draw3DInfo(java.awt.Graphics g, int resolution)
public java.awt.Shape getOutline4Fill()
RectangleGlyph
getOutline4Fill
在类中 RectangleGlyph
public double getPreSum4Line(int seriesIndex, int categoryIndex)
seriesIndex
- 指定的系列序号categoryIndex
- 指定的分类序号public double getPreSum4Area(int seriesIndex, int categoryIndex)
seriesIndex
- 指定的系列序号categoryIndex
- 指定的分类序号public double getPreSum4Bar(int seriesIndex, int categoryIndex, boolean isNegative)
seriesIndex
- 指定的系列序号categoryIndex
- 指定的分类序号isNegative
- 是否为负数 true 表示负数.public double getBarPercent(int seriesCount)
public double getBarStartPercent(double barPercent, int categoryIndex, BarDataWithAxisGlyph data)
public double getDataPointPercentValue(int seriesIndex, int categoryIndex)
public boolean equals(java.lang.Object ob)
equals
在类中 RectanglePlotGlyph
public boolean isNeedDefaultDeep()
public JSONObject getPlotOptionsJSON(Repository repo, boolean isJsDraw, ChartWebPara para) throws JSONException
PlotGlyph
getPlotOptionsJSON
在类中 PlotGlyph
repo
- 请求isJsDraw
- 动态展示JSONException
- 抛出问题public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 RectanglePlotGlyph
repo
- 请求JSONException
- 抛错protected java.lang.String getExtraTooltipValue()
getExtraTooltipValue
在类中 PlotGlyph