|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.rbarcode.BarCodeFacade
public class BarCodeFacade
helper class for creating barcodes with just one method. Used by webservices and plugins.
Constructor Summary | |
---|---|
BarCodeFacade()
|
Method Summary | |
---|---|
void |
createBarcode(java.util.Properties properties)
create barcode image from properties file |
void |
createBarcode(java.lang.String type,
java.lang.String value,
java.lang.String set,
java.lang.String processTilde,
java.lang.String text,
int rotate,
int barHeight,
int X,
int N,
java.lang.String barColor,
java.lang.String fontColor,
java.lang.String backColor,
java.lang.String textFont,
int leftMargin,
int topMargin,
boolean checksum,
java.util.Properties properties)
genrate barcode |
void |
createBarcode(java.lang.String type,
java.lang.String value,
java.lang.String set,
java.lang.String processTilde,
java.lang.String text,
int rotate,
int barHeight,
int X,
int N,
java.lang.String barColor,
java.lang.String fontColor,
java.lang.String backColor,
java.lang.String textFont,
int leftMargin,
int topMargin,
java.util.Properties properties)
|
java.awt.Image |
createBarcodeImage(java.lang.String type,
java.lang.String value,
java.lang.String set,
java.lang.String processTilde,
java.lang.String text,
int rotate,
int barHeight,
int X,
int N,
java.lang.String barColor,
java.lang.String fontColor,
java.lang.String backColor,
java.lang.String textFont,
int leftMargin,
int topMargin,
boolean generateCheckCharacter,
java.util.Properties properties)
genrate barcode |
java.awt.Image |
createBarcodeImage(java.lang.String type,
java.lang.String value,
java.lang.String set,
java.lang.String processTilde,
java.lang.String text,
int rotate,
int barHeight,
int X,
int N,
java.lang.String barColor,
java.lang.String fontColor,
java.lang.String backColor,
java.lang.String textFont,
int leftMargin,
int topMargin,
java.util.Properties properties)
genrate barcode |
java.awt.Image |
createImage()
create image for the generated barcode |
BarCode |
getBarcode()
return barcode object |
void |
paintBarcode(java.awt.Graphics g)
paint barcode on external graphics |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BarCodeFacade()
Method Detail |
---|
public BarCode getBarcode()
public java.awt.Image createBarcodeImage(java.lang.String type, java.lang.String value, java.lang.String set, java.lang.String processTilde, java.lang.String text, int rotate, int barHeight, int X, int N, java.lang.String barColor, java.lang.String fontColor, java.lang.String backColor, java.lang.String textFont, int leftMargin, int topMargin, boolean generateCheckCharacter, java.util.Properties properties)
type
- type of barcode to create. Valid values are: BAR39, BAR38EXT, CODE128, CODE11, CODABAR,CODE93,
CODE93EXT, MSI, IND25, MAT25, INTERLEAVED25, EAN13, EAN8, EAN128, UPCA,
UPCE or POSTNETvalue
- value to be encodedset
- value A, B or C (for type CODE128 only)processTilde
- See http://www.java4less.com/barcodes/barcodes.php?info=guidetext
- value to be displayed below the barcoderotate
- rotation of the barcode, currently only value 0 supportedbarHeight
- height of bars in pixelsX
- width of narrow bars in pixelsN
- multiplier for wide bars. A value of 2, means that wide bars will be 2 times the width of narrow bars. The default vaue is 2barColor
- Color of bars. Valid values are RED, BLACK, BLUE, CYAN, DARKGRAY, GRAY, GREEN, LIGHTGRAY, MAGENTA, PINK, WHITE or YELLOW. You can also use the RGB value.fontColor
- color of the text.backColor
- background color.font
- font of the text, for example "ARIAL|BOLD|10", the format is leftMargin
- margin in pixelstopMargin
- margin in pixelsgenerateCheckCharacter
- properties
- currently ignored, use null
public java.awt.Image createBarcodeImage(java.lang.String type, java.lang.String value, java.lang.String set, java.lang.String processTilde, java.lang.String text, int rotate, int barHeight, int X, int N, java.lang.String barColor, java.lang.String fontColor, java.lang.String backColor, java.lang.String textFont, int leftMargin, int topMargin, java.util.Properties properties)
type
- type of barcode to create. Valid values are: BAR39, BAR38EXT, CODE128, CODE11, CODABAR,CODE93,
CODE93EXT, MSI, IND25, MAT25, INTERLEAVED25, EAN13, EAN8, EAN128, UPCA,
UPCE or POSTNETvalue
- value to be encodedset
- value A, B or C (for type CODE128 only)processTilde
- See http://www.java4less.com/barcodes/barcodes.php?info=guidetext
- value to be displayed below the barcoderotate
- rotation of the barcode, currently only value 0 supportedbarHeight
- height of bars in pixelsX
- width of narrow bars in pixelsN
- multiplier for wide bars. A value of 2, means that wide bars will be 2 times the width of narrow bars. The default vaue is 2barColor
- Color of bars. Valid values are RED, BLACK, BLUE, CYAN, DARKGRAY, GRAY, GREEN, LIGHTGRAY, MAGENTA, PINK, WHITE or YELLOW. You can also use the RGB value.fontColor
- color of the text.backColor
- background color.font
- font of the text, for example "ARIAL|BOLD|10", the format is leftMargin
- margin in pixelstopMargin
- margin in pixelsproperties
- currently ignored, use null
public void createBarcode(java.lang.String type, java.lang.String value, java.lang.String set, java.lang.String processTilde, java.lang.String text, int rotate, int barHeight, int X, int N, java.lang.String barColor, java.lang.String fontColor, java.lang.String backColor, java.lang.String textFont, int leftMargin, int topMargin, java.util.Properties properties)
public void createBarcode(java.lang.String type, java.lang.String value, java.lang.String set, java.lang.String processTilde, java.lang.String text, int rotate, int barHeight, int X, int N, java.lang.String barColor, java.lang.String fontColor, java.lang.String backColor, java.lang.String textFont, int leftMargin, int topMargin, boolean checksum, java.util.Properties properties)
type
- BAR39, CODE128, EAN128, EAN8, EAN13, UPCA, UPCE etc ..value
- set
- processTilde
- text
- rotate
- barHeight
- X
- N
- barColor
- fontColor
- backColor
- font
- leftMargin
- topMargin
- checksum
- public java.awt.Image createImage()
createImage
in interface IBarcodeGenerator
public void createBarcode(java.util.Properties properties)
createBarcode
in interface IBarcodeGenerator
public void paintBarcode(java.awt.Graphics g)
IBarcodeGenerator
paintBarcode
in interface IBarcodeGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |