|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CanvasProvider
This interface is implemented to provide an output format that is using a coordinate system.
| Method Summary | |
|---|---|
void |
deviceCenteredText(java.lang.String text,
double x1,
double x2,
double y1,
java.lang.String fontName,
double fontSize)
Draws centered text. |
void |
deviceFillRect(double x,
double y,
double w,
double h)
Paints a filled rectangle. |
void |
deviceJustifiedText(java.lang.String text,
double x1,
double x2,
double y1,
java.lang.String fontName,
double fontSize)
Draws justified text. |
void |
deviceText(java.lang.String text,
double x1,
double x2,
double y1,
java.lang.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. |
| Method Detail |
|---|
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 height
void deviceJustifiedText(java.lang.String text,
double x1,
double x2,
double y1,
java.lang.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 font
void deviceCenteredText(java.lang.String text,
double x1,
double x2,
double y1,
java.lang.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 font
void deviceText(java.lang.String text,
double x1,
double x2,
double y1,
java.lang.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 alignment
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||