public class Round2DCakeChart extends AbstractChart
baseFont, contentByte, document, writer| 构造器和说明 |
|---|
Round2DCakeChart() |
Round2DCakeChart(com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.pdf.PdfContentByte contentByte,
com.itextpdf.text.Document document,
com.itextpdf.text.pdf.BaseFont baseFont) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
chart()
具体画图,需要实现的方法
|
float |
getPositionY()
画完图形之后,当前所在的横坐标
|
boolean |
isDrawDesc() |
Round2DCakeChart |
setDescs(java.lang.String[] descs)
每一个图形块的描述
|
void |
setDrawDesc(boolean drawDesc) |
Round2DCakeChart |
setFillColors(com.itextpdf.text.BaseColor[] fillColors)
每个图形块的填充颜色
|
Round2DCakeChart |
setFontSize(float fontSize)
字体大小
|
Round2DCakeChart |
setR(float r)
半径
|
Round2DCakeChart |
setRotation(float rotation)
旋转角度
|
Round2DCakeChart |
setScores(float[] scores)
分数百分比
|
Round2DCakeChart |
setWhiteSepLineWidth(float whiteSepLineWidth)
每个扇形区域分割的白线宽度
|
Round2DCakeChart |
setX(float x)
X坐标
|
Round2DCakeChart |
setY(float y)
Y坐标
|
setBaseFont, setContentByte, setDocument, setWriteraddBorderColorCell, addCell, addCell, addCell, calRealHeight, calTextWidth, moveCircle, moveLine, moveMultiLineText, moveMultiLineWText, moveRect, moveRoundRect, moveRoundRect, moveText, setLine, setLinepublic Round2DCakeChart()
public Round2DCakeChart(com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.pdf.PdfContentByte contentByte,
com.itextpdf.text.Document document,
com.itextpdf.text.pdf.BaseFont baseFont)
public void chart()
AbstractChartchart 在类中 AbstractChartpublic Round2DCakeChart setX(float x)
x - public Round2DCakeChart setY(float y)
y - public Round2DCakeChart setR(float r)
r - public Round2DCakeChart setFillColors(com.itextpdf.text.BaseColor[] fillColors)
fillColors - public Round2DCakeChart setDescs(java.lang.String[] descs)
descs - public Round2DCakeChart setScores(float[] scores)
scores - public Round2DCakeChart setRotation(float rotation)
rotation - public Round2DCakeChart setFontSize(float fontSize)
fontSize - public Round2DCakeChart setWhiteSepLineWidth(float whiteSepLineWidth)
whiteSepLineWidth - public float getPositionY()
public boolean isDrawDesc()
public void setDrawDesc(boolean drawDesc)
Copyright © 2019. All Rights Reserved.