public class PiePlotGlyph extends PlotGlyph
限定符和类型 | 类和说明 |
---|---|
class |
PiePlotGlyph.PointAndAngle |
限定符和类型 | 字段和说明 |
---|---|
protected static double |
FIRST_QUA |
protected static double |
MOVE_GAP |
protected static double |
NO_BOUNDS |
protected static double |
OUTSIDE_LABEL_RADIUS_COEFFICIENT |
protected static double |
RADIO_PERCENT |
protected double |
radius |
protected double |
radiusPercent |
protected static double |
SECOND_QUA |
static double |
START_ANGLE |
protected static double |
THRID_QUA |
protected static double |
WHEN_MORE_RAD |
CATEGORY_PARA, conditionCollection, DEFAULT_SIZE, plotStyle, RESET_JAVA_FONT_X, SERIES_PARA, seriesList, STACK, X_AXIS, X_PARA, Y_AXIS, Y_PARA
bounds, visible
构造器和说明 |
---|
PiePlotGlyph() |
限定符和类型 | 方法和说明 |
---|---|
void |
addSeriesJSON(JSONObject js,
ConditionCollection conditionCollection,
Repository repo) |
protected boolean |
adjustLabelBoundsY(java.awt.geom.GeneralPath boundsPath,
PiePlotGlyph.PointAndAngle pointAndAngle,
int resolution,
double minAngle,
double maxAngle,
boolean isLeft) |
protected java.awt.geom.Point2D |
calculateLabelBoundsWithAngle(double centerAngle,
PiePlotGlyph.PointAndAngle pointAndAngle,
int resolution,
java.awt.geom.Rectangle2D labelBounds) |
protected ShapeGlyph |
calculateShapeGlyph4DifferentSub(DataPoint dataPoint) |
protected double |
changeRadius(int categoryIndex,
int seriesIndex) |
protected double |
deal4BestRad(double resultD,
int categoryIndex) |
protected void |
deal4EachCategory(int categoryIndex,
int resolution) |
protected void |
dealInsideLabelBounds(DataPoint dataPoint,
int resolution) |
protected void |
dealLabelBounds(DataPoint dataPoint,
int resolution) |
protected void |
dealLabelBoundsOutPlotBounds(java.awt.geom.Rectangle2D labelBounds,
java.awt.geom.GeneralPath labelsPath,
DataPoint dataPoint,
java.util.List orderList,
int orderListIndex) |
protected void |
dealLeadLine(java.awt.geom.Arc2D arc2D,
DataPoint4Pie dataPoint,
double centerAngle) |
void |
dealLeadLineSeries()
处理系列牵引线.
|
protected void |
dealPlotStyle(int plotStyle,
DataPoint4Pie dataPoint) |
protected void |
dealWidthLine(java.awt.geom.Point2D centerPoint,
PiePlotGlyph.PointAndAngle pointAndAngle) |
protected void |
dealWithCategoryLabels(int categoryIndex,
int resolution) |
protected void |
dealWithDataSeries(int categoryIndex,
int resolution) |
void |
draw(java.awt.Graphics g,
int resolution)
draw方法.画出饼图对象.
|
void |
drawShape4Series(java.awt.Graphics g,
int resolution) |
boolean |
equals(java.lang.Object ob) |
protected java.awt.Shape |
getArc2D(DataPoint dataPoint) |
protected java.awt.geom.Point2D |
getCenterPoint(int seriesIndex,
int categoryIndex) |
java.lang.String |
getChartType() |
protected java.awt.Shape |
getDataPointShape(java.awt.geom.Point2D centerPoint,
double seriesStartAngle,
double radius,
int seriesIndex,
int categoryIndex) |
protected java.lang.String |
getExtraTooltipValue() |
protected double |
getHalfAngle(double seriesStartAngle,
int seriesIndex,
int categoryIndex) |
protected java.awt.geom.Dimension2D |
getLabelDim(DataPoint dataPoint,
int resolution) |
protected double |
getMaxLabelWidth(int categoryIndex,
int resolution) |
protected double |
getPercent(int seriesIndex,
int categoryIndex)
值对应的角度 比*
|
protected double |
getPieDimension(int categoryIndex) |
java.lang.String |
getPlotGlyphType()
用于JS中的Type类型.
|
protected void |
getSeriesCountWithQuadrant(int categoryIndex) |
protected double |
getSeriesStartAngle(int categoryIndex,
int seriesIndex) |
int |
getSubType() |
protected double |
getTotalValue(int categoryIndex) |
java.lang.String |
getVanChartType() |
protected void |
initLabelData(int categoryIndex,
int resolution) |
protected boolean |
isGuideLineShow(DataPoint dataPoint) |
protected boolean |
isNotNeedMoveChangeLabelRadius(java.awt.Shape pie,
java.awt.geom.Rectangle2D labelBounds)
是否需要移动标签半径 以便于 在扇形内放下整个标签, 被三维继承, true 表示不需要
|
protected boolean |
isOutsideLabel(int seriesIndex,
int categoryIndex) |
protected boolean |
isSmallerThan(PiePlotGlyph.PointAndAngle pointAndAngle,
PiePlotGlyph.PointAndAngle minPoint) |
void |
layoutAxisGlyph(int resolution)
局坐标轴, 饼图无.
|
void |
layoutDataSeriesGlyph(int resolution)
一个饼图 是一个分类.
|
addECNameToHyperLink, addOtherJSON, addSeries, addSeriesJSON, avoidCoverLabelBounds, axisExtendsMaxMinValueWithTrendLine, calculateDataPointPercentValue, calculateOrderList, clone, createColors4Cate, createColors4Series, createDataSheetGlyph, dealDataPointLabel, dealLabelBoundsInOrder, dealPlotHotAttr, doLayout, drawInfo, drawLabel4Series, getAdditionalCanvasCount, getAllDataPointGlyph, getAllTrendLineGlyph, getAutoRefreshPerSecond, getCategoryCount, getCombinedSize, getConditionCollection, getDataPointLabelBoundsWithPosition, getDataPointLabelBoundsWithPosition, getDataPointLabelBoundsWithPosition4Line, getDataProcessor, getDrawSequence, getExtraLabelValue, getFirstDataPoint, getHotHyperLink, getHotTooltipStyle, getPlotDetailType, getPlotFillStyle, getPlotOptionsJSON, getPlotStyle, getPreGap4AxisRightUnit, getPreGap4AxisTopUnit, getPreLeft4DataSheet, getSeries, getSeriesSize, getSmallIconType, 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
public static final double START_ANGLE
protected static final double FIRST_QUA
protected static final double SECOND_QUA
protected static final double THRID_QUA
protected static final double WHEN_MORE_RAD
protected static final double MOVE_GAP
protected static final double NO_BOUNDS
protected static final double RADIO_PERCENT
protected static final double OUTSIDE_LABEL_RADIUS_COEFFICIENT
protected transient double radius
protected double radiusPercent
protected double getSeriesStartAngle(int categoryIndex, int seriesIndex)
protected double getHalfAngle(double seriesStartAngle, int seriesIndex, int categoryIndex)
protected double getTotalValue(int categoryIndex)
protected double getPercent(int seriesIndex, int categoryIndex)
public void layoutAxisGlyph(int resolution)
layoutAxisGlyph
在类中 PlotGlyph
resolution
- 分辨率protected void initLabelData(int categoryIndex, int resolution)
public void layoutDataSeriesGlyph(int resolution)
layoutDataSeriesGlyph
在类中 PlotGlyph
resolution
- 分辨率protected void dealLabelBoundsOutPlotBounds(java.awt.geom.Rectangle2D labelBounds, java.awt.geom.GeneralPath labelsPath, DataPoint dataPoint, java.util.List orderList, int orderListIndex)
protected void deal4EachCategory(int categoryIndex, int resolution)
protected void dealWithDataSeries(int categoryIndex, int resolution)
protected void dealWithCategoryLabels(int categoryIndex, int resolution)
protected boolean adjustLabelBoundsY(java.awt.geom.GeneralPath boundsPath, PiePlotGlyph.PointAndAngle pointAndAngle, int resolution, double minAngle, double maxAngle, boolean isLeft)
protected boolean isSmallerThan(PiePlotGlyph.PointAndAngle pointAndAngle, PiePlotGlyph.PointAndAngle minPoint)
protected void dealPlotStyle(int plotStyle, DataPoint4Pie dataPoint)
public int getSubType()
protected ShapeGlyph calculateShapeGlyph4DifferentSub(DataPoint dataPoint)
protected java.awt.geom.Point2D getCenterPoint(int seriesIndex, int categoryIndex)
protected java.awt.Shape getArc2D(DataPoint dataPoint)
public void dealLeadLineSeries()
protected double getPieDimension(int categoryIndex)
protected double deal4BestRad(double resultD, int categoryIndex)
protected java.awt.Shape getDataPointShape(java.awt.geom.Point2D centerPoint, double seriesStartAngle, double radius, int seriesIndex, int categoryIndex)
protected void getSeriesCountWithQuadrant(int categoryIndex)
protected void dealLeadLine(java.awt.geom.Arc2D arc2D, DataPoint4Pie dataPoint, double centerAngle)
protected boolean isGuideLineShow(DataPoint dataPoint)
public void drawShape4Series(java.awt.Graphics g, int resolution)
drawShape4Series
在类中 PlotGlyph
protected double changeRadius(int categoryIndex, int seriesIndex)
protected void dealLabelBounds(DataPoint dataPoint, int resolution)
protected boolean isOutsideLabel(int seriesIndex, int categoryIndex)
protected void dealInsideLabelBounds(DataPoint dataPoint, int resolution)
protected boolean isNotNeedMoveChangeLabelRadius(java.awt.Shape pie, java.awt.geom.Rectangle2D labelBounds)
protected java.awt.geom.Point2D calculateLabelBoundsWithAngle(double centerAngle, PiePlotGlyph.PointAndAngle pointAndAngle, int resolution, java.awt.geom.Rectangle2D labelBounds)
protected void dealWidthLine(java.awt.geom.Point2D centerPoint, PiePlotGlyph.PointAndAngle pointAndAngle)
protected java.awt.geom.Dimension2D getLabelDim(DataPoint dataPoint, int resolution)
protected double getMaxLabelWidth(int categoryIndex, int resolution)
public void draw(java.awt.Graphics g, int resolution)
public java.lang.String getPlotGlyphType()
PlotGlyph
getPlotGlyphType
在类中 PlotGlyph
public java.lang.String getChartType()
getChartType
在类中 PlotGlyph
public void addSeriesJSON(JSONObject js, ConditionCollection conditionCollection, Repository repo) throws JSONException
addSeriesJSON
在类中 PlotGlyph
JSONException
protected java.lang.String getExtraTooltipValue()
getExtraTooltipValue
在类中 PlotGlyph
public java.lang.String getVanChartType()
getVanChartType
在类中 PlotGlyph