|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.impl.DrawingUtil
public class DrawingUtil
Drawing utilities.
Constructor Summary | |
---|---|
DrawingUtil()
|
Method Summary | |
---|---|
static void |
drawCenteredChar(Canvas canvas,
AbstractBarcodeBean bean,
char ch,
double x1,
double x2,
double y1)
Draws a centered character on a canvas. |
static void |
drawCenteredText(Canvas canvas,
AbstractBarcodeBean bean,
java.lang.String text,
double x1,
double x2,
double y1)
Deprecated. Use drawText(Canvas, AbstractBarcodeBean, String, double, double, double, TextAlignment) instead. |
static void |
drawJustifiedText(Canvas canvas,
AbstractBarcodeBean bean,
java.lang.String text,
double x1,
double x2,
double y1)
Deprecated. Use drawText(Canvas, AbstractBarcodeBean, String, double, double, double, TextAlignment) instead. |
static void |
drawText(Canvas canvas,
AbstractBarcodeBean bean,
java.lang.String text,
double x1,
double x2,
double y1,
TextAlignment textAlign)
Draws text on a canvas. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawingUtil()
Method Detail |
---|
public static void drawCenteredChar(Canvas canvas, AbstractBarcodeBean bean, char ch, double x1, double x2, double y1)
canvas
- the canvas to paint onbean
- the barcode bean to get the font settings fromch
- the characterx1
- the left boundaryx2
- the right boundaryy1
- the y coordinate of the font's baselinepublic static void drawJustifiedText(Canvas canvas, AbstractBarcodeBean bean, java.lang.String text, double x1, double x2, double y1)
drawText(Canvas, AbstractBarcodeBean, String, double, double, double, TextAlignment)
instead.
canvas
- the canvas to paint onbean
- the barcode bean to get the font settings fromtext
- the text to paintx1
- the left boundaryx2
- the right boundaryy1
- the y coordinate of the font's baselinepublic static void drawCenteredText(Canvas canvas, AbstractBarcodeBean bean, java.lang.String text, double x1, double x2, double y1)
drawText(Canvas, AbstractBarcodeBean, String, double, double, double, TextAlignment)
instead.
canvas
- the canvas to paint onbean
- the barcode bean to get the font settings fromtext
- the text to paintx1
- the left boundaryx2
- the right boundaryy1
- the y coordinate of the font's baselinepublic static void drawText(Canvas canvas, AbstractBarcodeBean bean, java.lang.String text, double x1, double x2, double y1, TextAlignment textAlign)
canvas
- the canvas to paint onbean
- the barcode bean to get the font settings fromtext
- the text to paintx1
- the left boundaryx2
- the right boundaryy1
- the y coordinate of the font's baselinetextAlign
- the text alignment
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |