public class RectangleLineThroughGraph extends AbstractBaseUnitChart
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
LINE_THROUGH_X |
static int |
LINE_THROUGH_Y |
baseFont, contentByte, document, writer| 构造器和说明 |
|---|
RectangleLineThroughGraph(AbstractBaseChart baseChart,
com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.pdf.PdfContentByte contentByte,
com.itextpdf.text.Document document) |
RectangleLineThroughGraph(com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.pdf.PdfContentByte contentByte,
com.itextpdf.text.Document document) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
chart()
具体画图,需要实现的方法
|
RectangleLineThroughGraph |
setColor(int color)
图形颜色
|
RectangleLineThroughGraph |
setFontColor(int fontColor)
字体颜色
|
RectangleLineThroughGraph |
setFontSize(float fontSize)
字体大小
|
RectangleLineThroughGraph |
setHasLineThrough(boolean hasLineThrough)
是否有贯穿线
|
RectangleLineThroughGraph |
setHeight(float height)
矩形区域高度
|
RectangleLineThroughGraph |
setLineThrough(int lineThrough)
贯穿线所在的水平线:LINE_THROUGH_X 和 LINE_THROUGH_Y
|
RectangleLineThroughGraph |
setLineThroughLength(float lineThroughLength)
贯穿线的长度
|
RectangleLineThroughGraph |
setLineThroughWidth(float lineThroughWidth)
贯穿线的宽度
|
RectangleLineThroughGraph |
setText(java.lang.String text)
在矩形中显示的文本
|
RectangleLineThroughGraph |
setWidth(float width)
矩形区域宽度
|
RectangleLineThroughGraph |
setX(float x)
X坐标
|
RectangleLineThroughGraph |
setY(float y)
Y坐标
|
getBaseChart, setBaseChart, setBaseFontpublic static final int LINE_THROUGH_X
public static final int LINE_THROUGH_Y
public RectangleLineThroughGraph(AbstractBaseChart baseChart, com.itextpdf.text.pdf.PdfWriter writer, com.itextpdf.text.pdf.PdfContentByte contentByte, com.itextpdf.text.Document document)
public RectangleLineThroughGraph(com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.pdf.PdfContentByte contentByte,
com.itextpdf.text.Document document)
public void chart()
AbstractBaseUnitChartchart 在类中 AbstractBaseUnitChartpublic RectangleLineThroughGraph setHeight(float height)
height - public RectangleLineThroughGraph setWidth(float width)
width - public RectangleLineThroughGraph setX(float x)
x - public RectangleLineThroughGraph setY(float y)
y - public RectangleLineThroughGraph setColor(int color)
color - public RectangleLineThroughGraph setLineThrough(int lineThrough)
lineThrough - public RectangleLineThroughGraph setFontSize(float fontSize)
fontSize - public RectangleLineThroughGraph setFontColor(int fontColor)
fontColor - public RectangleLineThroughGraph setText(java.lang.String text)
text - public RectangleLineThroughGraph setLineThroughLength(float lineThroughLength)
lineThroughLength - public RectangleLineThroughGraph setLineThroughWidth(float lineThroughWidth)
lineThroughWidth - public RectangleLineThroughGraph setHasLineThrough(boolean hasLineThrough)
hasLineThrough - Copyright © 2019. All Rights Reserved.