public abstract class ScalebarDrawer extends ChunkDrawer
| Modifier and Type | Field and Description |
|---|---|
protected int |
barSize |
protected ScalebarBlock |
block |
protected float |
intervalWidth |
protected java.util.List<Label> |
labels |
protected int |
subIntervals |
| Constructor and Description |
|---|
ScalebarDrawer(PDFCustomBlocks customBlocks,
ScalebarBlock block,
java.util.List<Label> labels,
int barSize,
int labelDistance,
int subIntervals,
float intervalWidth,
com.itextpdf.text.Font pdfFont,
float leftLabelMargin,
float rightLabelMargin,
float maxLabelWidth,
float maxLabelHeight) |
| Modifier and Type | Method and Description |
|---|---|
static ScalebarDrawer |
create(PDFCustomBlocks customBlocks,
ScalebarBlock block,
Type type,
java.util.List<Label> labels,
int barSize,
int labelDistance,
int subIntervals,
float intervalWidth,
com.itextpdf.text.Font pdfFont,
float leftLabelMargin,
float rightLabelMargin,
float maxLabelWidth,
float maxLabelHeight) |
protected abstract void |
drawBar(com.itextpdf.text.pdf.PdfContentByte dc)
Draws the bar itself.
|
void |
renderImpl(com.itextpdf.text.Rectangle rectangle,
com.itextpdf.text.pdf.PdfContentByte dc) |
addAbsoluteDrawer, render, tableLayoutprotected final ScalebarBlock block
protected final java.util.List<Label> labels
protected final int barSize
protected final int subIntervals
protected final float intervalWidth
public ScalebarDrawer(PDFCustomBlocks customBlocks, ScalebarBlock block, java.util.List<Label> labels, int barSize, int labelDistance, int subIntervals, float intervalWidth, com.itextpdf.text.Font pdfFont, float leftLabelMargin, float rightLabelMargin, float maxLabelWidth, float maxLabelHeight)
public static ScalebarDrawer create(PDFCustomBlocks customBlocks, ScalebarBlock block, Type type, java.util.List<Label> labels, int barSize, int labelDistance, int subIntervals, float intervalWidth, com.itextpdf.text.Font pdfFont, float leftLabelMargin, float rightLabelMargin, float maxLabelWidth, float maxLabelHeight)
public void renderImpl(com.itextpdf.text.Rectangle rectangle,
com.itextpdf.text.pdf.PdfContentByte dc)
renderImpl in class ChunkDrawerprotected abstract void drawBar(com.itextpdf.text.pdf.PdfContentByte dc)