public interface CanvasProvider
| Modifier and Type | Method and Description |
|---|---|
void |
deviceCenteredText(String text,
double x1,
double x2,
double y1,
String fontName,
double fontSize)
Draws centered text.
|
void |
deviceFillRect(double x,
double y,
double w,
double h)
Paints a filled rectangle.
|
void |
deviceJustifiedText(String text,
double x1,
double x2,
double y1,
String fontName,
double fontSize)
Draws justified text.
|
void |
deviceText(String text,
double x1,
double x2,
double y1,
String fontName,
double fontSize,
TextAlignment textAlign)
Draws text.
|
void |
establishDimensions(BarcodeDimension dim)
Sets the dimensions of the barcode.
|
BarcodeDimension |
getDimensions()
Returns the barcode dimensions once established.
|
int |
getOrientation()
Returns the orientation of the barcode.
|
void establishDimensions(BarcodeDimension dim)
dim - the dimensions of the barcodeBarcodeDimension getDimensions()
int getOrientation()
void deviceFillRect(double x,
double y,
double w,
double h)
x - x coordinate of the upper left cornery - y coordinate of the upper left cornerw - the widthh - the heightvoid deviceJustifiedText(String text, double x1, double x2, double y1, String fontName, double fontSize)
text - the text to drawx1 - the left boundaryx2 - the right boundaryy1 - the y coordinatefontName - the name of the fontfontSize - the size of the fontvoid deviceCenteredText(String text, double x1, double x2, double y1, String fontName, double fontSize)
text - the text to drawx1 - the left boundaryx2 - the right boundaryy1 - the y coordinatefontName - the name of the fontfontSize - the size of the fontvoid deviceText(String text, double x1, double x2, double y1, String fontName, double fontSize, TextAlignment textAlign)
text - the text to drawx1 - the left boundaryx2 - the right boundaryy1 - the y coordinatefontName - the name of the fontfontSize - the size of the fonttextAlign - the text alignmentCopyright © 2003–2023. All rights reserved.