public class VanChartDataSheetGlyph extends DataSheetGlyph
限定符和类型 | 字段和说明 |
---|---|
protected double |
cateHeight |
protected double |
cateWidth |
protected boolean |
hasAxisReversed |
protected LegendItem[] |
legendItems |
protected VanChartDataSheetPlotGlyphInterface |
plotGlyph |
protected double |
seriesWidth |
arrowValue, cateRowCout, crossValue, format, MAX_CATE_LINE, PADDING_GAP, seriesRowHeight, unitLength
bounds, visible
构造器和说明 |
---|
VanChartDataSheetGlyph(FRFont font,
java.text.Format format,
GeneralInfo generalInfo) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
calculateCateHeight(int resolution) |
protected void |
calculateCateHeightFromSeries(DataSeries dataSeries,
int resolution) |
void |
calculateOtherWidthAndHeight(int resolution) |
void |
calculateSeriesWidth(java.awt.geom.Rectangle2D chartOriginalBounds,
int resolution) |
protected int |
dealRealCateIndex(DataPoint dataPoint,
int cateIndex) |
void |
draw(java.awt.Graphics g,
int resolution)
数据表在设计器上的画法
|
protected void |
drawCateLabel(java.awt.Graphics g,
int resolution) |
protected void |
drawDataPointCateLabel(java.lang.String cateString,
int cateIndex,
int cateCount,
double y,
java.awt.Graphics g,
int resolution) |
double |
getBottomHeight() |
int |
getCategoryCount()
返回系列的数量
|
protected LegendItem[] |
getDataSheetLegendItems(VanChartDataSheetPlotGlyphInterface plotGlyph) |
double |
getLeftWidth() |
protected DataSeries |
getSeries(int index)
返回指定位置上的系列
|
int |
getSeriesSize()
系列的数量
|
double |
getWholeWidth() |
protected double |
getXWithCateIndex(int cateIndex,
int cateCount) |
protected boolean |
hasLegend() |
void |
initDataSheet(LegendGlyph legendGlyph,
VanChartDataSheetPlotGlyphInterface plotGlyph) |
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
_initSeriesRowHeightAndEndLegendWidth, _newLine, clone, doLayout, drawLabel4Category, drawLabel4DataPoint, equals, getBeginX, getCateRowHeight, getCateTextAttr, getCharNumber, getFont, getFormat, getHeight, getLegendFont, getPrefferedSize, selectableChildren, setArrowValue, setBeginX, setCrossValue, setDataWithoutLegendItems, setFont, setFormat, setHeight, setUnitLength, toVanJSONObject
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
protected boolean hasAxisReversed
protected VanChartDataSheetPlotGlyphInterface plotGlyph
protected LegendItem[] legendItems
protected double seriesWidth
protected double cateWidth
protected double cateHeight
public VanChartDataSheetGlyph(FRFont font, java.text.Format format, GeneralInfo generalInfo)
public void initDataSheet(LegendGlyph legendGlyph, VanChartDataSheetPlotGlyphInterface plotGlyph)
protected LegendItem[] getDataSheetLegendItems(VanChartDataSheetPlotGlyphInterface plotGlyph)
public void calculateSeriesWidth(java.awt.geom.Rectangle2D chartOriginalBounds, int resolution)
public void calculateOtherWidthAndHeight(int resolution)
protected void calculateCateHeight(int resolution)
protected void calculateCateHeightFromSeries(DataSeries dataSeries, int resolution)
public double getLeftWidth()
public double getBottomHeight()
public double getWholeWidth()
public void draw(java.awt.Graphics g, int resolution)
draw
在接口中 Glyph
draw
在类中 DataSheetGlyph
resolution
- 分辨率g
- 图形对象public int getSeriesSize()
getSeriesSize
在类中 DataSheetGlyph
protected DataSeries getSeries(int index)
getSeries
在类中 DataSheetGlyph
index
- 要返回的系列的索引public int getCategoryCount()
getCategoryCount
在类中 DataSheetGlyph
protected double getXWithCateIndex(int cateIndex, int cateCount)
protected void drawCateLabel(java.awt.Graphics g, int resolution)
protected void drawDataPointCateLabel(java.lang.String cateString, int cateIndex, int cateCount, double y, java.awt.Graphics g, int resolution)
protected int dealRealCateIndex(DataPoint dataPoint, int cateIndex)
protected boolean hasLegend()
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 DataSheetGlyph
repo
- 请求JSONException
- 抛错