public abstract class DonutPlotGlyph extends PlotGlyph
限定符和类型 | 字段和说明 |
---|---|
protected double |
arcWidth |
protected double |
categoryGap |
protected java.awt.geom.Point2D |
centerPoint |
protected static double |
CIRCLE |
protected static double |
HALF |
protected double |
innerRadius |
protected double |
innerRadiusPercent |
protected java.util.ArrayList<java.awt.geom.Rectangle2D> |
labelBounds |
protected static double |
MARGIN_GAP |
protected double |
outerArcRadius |
protected static double |
PIE |
protected double |
radius |
protected double |
seriesGap |
protected static double |
START_ANGLE |
CATEGORY_PARA, conditionCollection, DEFAULT_SIZE, plotStyle, RESET_JAVA_FONT_X, SERIES_PARA, seriesList, STACK, X_AXIS, X_PARA, Y_AXIS, Y_PARA
bounds, visible
构造器和说明 |
---|
DonutPlotGlyph() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object ob) |
protected double |
getActOuterRadius(int categoryIndex)
返回某个分类对应的圆环的外径
|
protected double |
getArcInnerRadius(int categoryIndex)
返回某个分类对应的圆环的内径
|
double |
getCategoryGap() |
protected java.lang.String |
getExtraTooltipValue() |
double |
getInnerRadiusPercent() |
protected double |
getPercent(int seriesIndex,
int categoryIndex)
某一个系列值在该分类下占的比例
|
JSONObject |
getPlotOptionsJSON(Repository repo,
boolean isJsDraw,
ChartWebPara para)
获取 plotOptions的JSON对象
|
double |
getSeriesGap() |
protected double |
getTotalValue(int categoryIndex)
某一个分类下,所有系列的值得总和
|
protected void |
initArcValues()
初始化圆环图的各个值
|
void |
layoutAxisGlyph(int resolution)
布局坐标轴
|
void |
setCategoryGap(double categoryGap)
设置分类间隔
|
void |
setInnerRadiusPercent(double percent) |
void |
setSeriesGap(double seriesGap)
设置系列间隔
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
addECNameToHyperLink, addOtherJSON, addSeries, addSeriesJSON, addSeriesJSON, avoidCoverLabelBounds, axisExtendsMaxMinValueWithTrendLine, calculateDataPointPercentValue, calculateOrderList, clone, createColors4Cate, createColors4Series, createDataSheetGlyph, dealDataPointLabel, dealLabelBoundsInOrder, dealLabelBoundsOutPlotBounds, dealPlotHotAttr, doLayout, draw, drawInfo, drawLabel4Series, drawShape4Series, getAdditionalCanvasCount, getAllDataPointGlyph, getAllTrendLineGlyph, getAutoRefreshPerSecond, getCategoryCount, getChartType, getCombinedSize, getConditionCollection, getDataPointLabelBoundsWithPosition, getDataPointLabelBoundsWithPosition, getDataPointLabelBoundsWithPosition4Line, getDataProcessor, getDrawSequence, getExtraLabelValue, getFirstDataPoint, getHotHyperLink, getHotTooltipStyle, getPlotDetailType, getPlotFillStyle, getPlotGlyphType, getPlotStyle, getPreGap4AxisRightUnit, getPreGap4AxisTopUnit, getPreLeft4DataSheet, getSeries, getSeriesSize, getSmallIconType, getVanChartType, getWholeChartBackground, getXDivideUnit, getYDivideUnit, is3DPlotGlyph, isDataPointXNotInPlotBounds, isExistAttrByResult, isNeedDealHotHyperlink, isNullValueBreak, isSeriesDragEnable, isSupportLegend, isSupportZoom, isZoom, layoutDataSeriesGlyph, notDealDataPointLabel, resetClip, selectableChildren, setAutoRefreshPerSecond, setCombinedSize, setConditionCollection, setDataProcessor, setHotHyperLink, setHotTooltipStyle, setIsNullValueBreak, setPlotFillStyle, setPlotStyle, setSeriesDragEnable, setWholeChartBackground, setZoom, skipDealPointHotAttr, 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 static final double START_ANGLE
protected static final double CIRCLE
protected static final double PIE
protected static final double MARGIN_GAP
protected static final double HALF
protected double arcWidth
protected double innerRadius
protected double radius
protected java.awt.geom.Point2D centerPoint
protected double innerRadiusPercent
protected double outerArcRadius
protected java.util.ArrayList<java.awt.geom.Rectangle2D> labelBounds
protected double seriesGap
protected double categoryGap
protected double getPercent(int seriesIndex, int categoryIndex)
protected double getTotalValue(int categoryIndex)
categoryIndex
- protected double getArcInnerRadius(int categoryIndex)
categoryIndex
- 分类序号protected double getActOuterRadius(int categoryIndex)
categoryIndex
- 分类序号public void setCategoryGap(double categoryGap)
public double getSeriesGap()
public void setSeriesGap(double seriesGap)
public double getCategoryGap()
public double getInnerRadiusPercent()
public void setInnerRadiusPercent(double percent)
public void layoutAxisGlyph(int resolution)
layoutAxisGlyph
在类中 PlotGlyph
resolution
- 分辨率protected void initArcValues()
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 PlotGlyph
repo
- 请求JSONException
- 抛错public JSONObject getPlotOptionsJSON(Repository repo, boolean isJsDraw, ChartWebPara para) throws JSONException
PlotGlyph
getPlotOptionsJSON
在类中 PlotGlyph
repo
- 请求isJsDraw
- 动态展示JSONException
- 抛出问题protected java.lang.String getExtraTooltipValue()
getExtraTooltipValue
在类中 PlotGlyph