public class ScalebarBlock extends FontBlock
Block.PdfElementalign, CONDITION_REGEXP, spacingAfter| Constructor and Description |
|---|
ScalebarBlock() |
| Modifier and Type | Method and Description |
|---|---|
com.itextpdf.text.BaseColor |
getBarBgColorVal() |
Direction |
getBarDirection() |
int |
getBarSize() |
com.itextpdf.text.BaseColor |
getColorVal() |
double |
getFontSize() |
int |
getIntervals() |
int |
getLabelDistance() |
double |
getLineWidth() |
java.lang.String |
getName() |
Direction |
getTextDirection() |
void |
render(PJsonObject params,
Block.PdfElement target,
RenderingContext context)
Called when the block is rendered.
|
void |
setBarBgColor(java.lang.String barBgColor) |
void |
setBarDirection(Direction barDirection) |
void |
setBarSize(int barSize) |
void |
setColor(java.lang.String color) |
void |
setIntervals(int intervals) |
void |
setLabelDistance(int labelDistance) |
void |
setLineWidth(double lineWidth) |
void |
setLockUnits(boolean lock) |
void |
setMaxSize(int maxSize) |
void |
setName(java.lang.String name) |
void |
setSubIntervals(boolean subIntervals) |
void |
setTextDirection(Direction textDirection) |
void |
setType(Type type) |
void |
setUnits(DistanceUnit units) |
getFont, getFontColorVal, getPdfFont, setFont, setFontColor, setFontEncoding, setFontSize, setFontSizegetAlign, getBackgroundColorVal, getMap, getMaxValueIfZero, getMaxValueIfZero, getVertAlign, isAbsolute, isVisible, setAlign, setBackgroundColor, setCondition, setSpacingAfter, setVertAlign, testCondition, validatepublic void render(PJsonObject params, Block.PdfElement target, RenderingContext context) throws com.itextpdf.text.DocumentException
Blockpublic void setMaxSize(int maxSize)
public void setType(Type type)
public void setIntervals(int intervals)
public void setSubIntervals(boolean subIntervals)
public void setUnits(DistanceUnit units)
public void setLockUnits(boolean lock)
public void setBarSize(int barSize)
public void setBarDirection(Direction barDirection)
public void setTextDirection(Direction textDirection)
public void setLabelDistance(int labelDistance)
public void setBarBgColor(java.lang.String barBgColor)
public void setColor(java.lang.String color)
public void setLineWidth(double lineWidth)
public int getBarSize()
public int getLabelDistance()
public double getFontSize()
getFontSize in class FontBlockpublic double getLineWidth()
public Direction getBarDirection()
public Direction getTextDirection()
public int getIntervals()
public com.itextpdf.text.BaseColor getBarBgColorVal()
public com.itextpdf.text.BaseColor getColorVal()
public java.lang.String getName()
public void setName(java.lang.String name)