|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.barcode.BarCodeBuilder
public class BarCodeBuilder
supported symbology: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, BooklandEAN, EAN128, Postnet, Planet EAN14(SCC14), SSCC18, ITF14, SingaporePost 2D: DataMatrix, PDf417, QR code Create and save a BarCode image BarCodeBuilder bd = new BarCodeBuilder(expStr, symbology); bd.setSymbologyType(symbology); bd.setCodeLocation(CodeLocation.ABOVE); bd.save(file);
Field Summary | |
---|---|
static char |
EAN_128_FNC_1
|
Constructor Summary | |
---|---|
BarCodeBuilder()
BarCodeBuilder's constructer, default SymbologyType is Code128, default CodeText is 12345678 |
|
BarCodeBuilder(String CodeText)
BarCodeBuilder's constructer, default SymbologyType is Code128 |
|
BarCodeBuilder(String CodeText,
int type)
BarCodeBuilder's constructer |
Method Summary | |
---|---|
BufferedImage |
generateBarCodeImage()
Generate the BarCode image under current settings |
float |
getAspectRatio()
|
int |
getAustralianPosteParcelCodeSet()
|
int |
getAustraliaPostFormatControlCode()
|
boolean |
getAutoSize()
|
int |
getAztectErrorLevel()
Level of error corection of Aztect types of barcode. value should between 10 to 95 |
Color |
getBackColor()
|
BufferedImage |
getBarCodeImage()
|
float |
getBarHeight()
|
Color |
getBorderColor()
|
int |
getBorderDashStyle()
|
boolean |
getBorderVisible()
|
float |
getBorderWidth()
|
Caption |
getCaptionAbove()
|
Caption |
getCaptionBelow()
|
short |
getCodabarStartSymbol()
|
short |
getCodabarStopSymbol()
|
int |
getCode128CodeSet()
|
int |
getCodeLocation()
Specify the displaying CodeText's Location, set to CodeLocation.None to hide CodeText. |
String |
getCodeText()
|
int |
getCodeTextAlignment()
|
Color |
getCodeTextAwtColor()
Gets CodeText's Color |
Font |
getCodeTextAwtFont()
Specify the displaying CodeText's font |
float |
getCodeTextSpace()
|
int |
getColumns()
|
int |
getDataMatrixEncodeMode()
|
int |
getEAN128EncodeMode()
|
boolean |
getEnableChecksum()
|
boolean |
getEnableEscape()
|
Color |
getForeAwtColor()
|
int |
getGraphicsUnit()
|
float |
getImageHeight()
|
int |
getImageQuality()
|
int |
getImageUnit()
Deprecated. |
float |
getImageWidth()
|
int |
getITF14BorderType()
|
int |
getMacroPdf417FileID()
|
boolean |
getMacroPdf417LastSegment()
|
int |
getMacroPdf417SegmentID()
|
MarginsF |
getMargins()
|
int |
getPdf417CompactionMode()
|
int |
getPdf417ErrorLevel()
|
boolean |
getPdf417Truncate()
|
float |
getPlanetShortBarHeight()
|
float |
getPostnetShortBarHeight()
|
String |
getPrinterName()
|
int |
getQREncodeMode()
QR symbology type of BarCode's encoding mode, default mode is Auto |
int |
getQRErrorLevel()
Level of Reed-Solomon error correction for QR barcode. |
Resolution |
getResolution()
|
int |
getRotationAngle()
Deprecated. |
float |
getRotationAngleF()
BarCode image's rotation angle, measured in degree, e.g. |
int |
getRows()
|
String |
getSupplementData()
|
float |
getSupplementSpace()
|
int |
getSymbologyType()
|
int |
getTextRenderingHint()
|
float |
getWideNarrowRatio()
|
float |
getxDimension()
|
float |
getyDimension()
|
void |
rotate()
Rotate barcode image clockwise for 90 degrees |
void |
rotate(float angle)
Rotate barcode image clockwise |
void |
rotate(int angle)
Rotate the barcode image |
void |
rotate(int direction,
float angle)
Rotate the barcode image |
void |
rotate(int direction,
int angle)
Rotate the barcode image |
void |
save(InputStream stream,
com.aspose.barcode.ImageFormat format)
|
void |
save(InputStream stream,
int format)
|
void |
save(OutputStream stream,
int format)
|
void |
save(String filename)
Save BarCodeImage to specific file in specific format |
void |
save(String filename,
com.aspose.barcode.ImageFormat format)
Save BarCodeImage to specific file in specific format |
void |
save(String filename,
int format)
Save BarCodeImage to specific file in specific format |
void |
saveImageAs(InputStream stream,
com.aspose.barcode.ImageFormat format)
|
void |
saveImageAs(String filename)
Save the barcode image |
void |
saveImageAs(String filename,
com.aspose.barcode.ImageFormat format)
Deprecated. |
void |
setAlwaysShowChecksum(boolean value)
|
void |
setAspectRatio(float value)
|
void |
setAustralianPosteParcelCodeSet(int value)
|
void |
setAustraliaPostFormatControlCode(int value)
|
void |
setAutoSize(boolean value)
|
void |
setAztectErrorLevel(int value)
|
void |
setBackColor(Color value)
|
void |
setBackColorInternal(Color value)
|
void |
setBarHeight(float value)
|
void |
setBorderColor(Color value)
|
void |
setBorderDashStyle(int value)
|
void |
setBorderVisible(boolean value)
|
void |
setBorderWidth(float value)
|
void |
setCaptionAbove(Caption value)
|
void |
setCaptionBelow(Caption value)
|
void |
setCodabarStartSymbol(short value)
|
void |
setCodabarStopSymbol(short value)
|
void |
setCode128CodeSet(int value)
|
void |
setCodeLocation(int value)
Specify the displaying CodeText's Location, set to CodeLocation.None to hide CodeText. |
void |
setCodeText(byte[] codeText)
Set the data to be encoded. |
void |
setCodeText(String value)
|
void |
setCodeTextAlignment(int value)
|
void |
setCodeTextColor(Color color)
Specify the displaying CodeText's Color |
void |
setCodeTextFont(Font value)
Specify the displaying CodeText's font |
void |
setCodeTextSpace(float value)
|
void |
setColumns(int value)
|
void |
setDataMatrixEncodeMode(int value)
|
void |
setEAN128EncodeMode(int value)
|
void |
setEnableChecksum(boolean value)
|
void |
setEnableEscape(boolean value)
|
void |
setForeColor(Color value)
|
void |
setGraphicsUnit(int value)
|
void |
setImageHeight(float value)
|
void |
setImageQuality(int value)
|
void |
setImageUnit(int value)
Deprecated. |
void |
setImageWidth(float value)
|
void |
setITF14BorderType(int value)
|
void |
setMacroPdf417FileID(int value)
|
void |
setMacroPdf417LastSegment(boolean value)
|
void |
setMacroPdf417SegmentID(int value)
|
void |
setMargins(MarginsF value)
|
void |
setPdf417CompactionMode(int value)
|
void |
setPdf417ErrorLevel(int value)
|
void |
setPdf417Truncate(boolean value)
|
void |
setPlanetShortBarHeight(float value)
|
void |
setPostnetShortBarHeight(float value)
|
void |
setPrinterName(String value)
|
void |
setQREncodeMode(int value)
|
void |
setQRErrorLevel(int value)
|
void |
setResolution(Resolution value)
|
void |
setRotationAngleF(float value)
|
void |
setRows(int value)
|
void |
setSupplementData(String value)
|
void |
setSupplementSpace(float value)
|
void |
setSymbologyType(int value)
|
void |
setTextRenderingHint(int value)
|
void |
setWideNarrowRatio(float value)
|
void |
setxDimension(float value)
|
void |
setYDimension(float value)
|
String |
toString()
overried to string method |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char EAN_128_FNC_1
Constructor Detail |
---|
public BarCodeBuilder()
BarCodeBuilder's constructer, default SymbologyType is Code128, default CodeText is 12345678
public BarCodeBuilder(String CodeText)
BarCodeBuilder's constructer, default SymbologyType is Code128
CodeText
- string text data to be encodedpublic BarCodeBuilder(String CodeText, int type)
BarCodeBuilder's constructer
CodeText
- string text data to be encodedtype
- BarCode's type: Aspose.BarCode.SymbologyTypeMethod Detail |
---|
public int getSymbologyType()
getSymbologyType
in interface IBarCodeControl
public void setSymbologyType(int value)
setSymbologyType
in interface IBarCodeControl
public String getCodeText()
getCodeText
in interface IBarCodeControl
public void setCodeText(String value)
setCodeText
in interface IBarCodeControl
public void setCodeText(byte[] codeText)
codeText
- The data to be encoded.public boolean getEnableEscape()
getEnableEscape
in interface IBarCodeControl
public void setEnableEscape(boolean value)
setEnableEscape
in interface IBarCodeControl
public Font getCodeTextAwtFont()
getCodeTextAwtFont
in interface IBarCodeControl
public void setCodeTextFont(Font value)
setCodeTextFont
in interface IBarCodeControl
public Color getCodeTextAwtColor()
getCodeTextAwtColor
in interface IBarCodeControl
public void setCodeTextColor(Color color)
setCodeTextColor
in interface IBarCodeControl
public int getCodeLocation()
getCodeLocation
in interface IBarCodeControl
public void setCodeLocation(int value)
setCodeLocation
in interface IBarCodeControl
public int getCodeTextAlignment()
getCodeTextAlignment
in interface IBarCodeControl
public void setCodeTextAlignment(int value)
setCodeTextAlignment
in interface IBarCodeControl
@Deprecated public int getRotationAngle()
Obsoleted, Use RotationAngleF instead
public float getRotationAngleF()
BarCode image's rotation angle, measured in degree, e.g. RotationAngleF = 0 or RotationAngleF = 360 means no rotation If RotationAngleF NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias
getRotationAngleF
in interface IBarCodeControl
public void setRotationAngleF(float value)
setRotationAngleF
in interface IBarCodeControl
public Caption getCaptionAbove()
getCaptionAbove
in interface IBarCodeControl
public void setCaptionAbove(Caption value)
setCaptionAbove
in interface IBarCodeControl
public Caption getCaptionBelow()
getCaptionBelow
in interface IBarCodeControl
public void setCaptionBelow(Caption value)
setCaptionBelow
in interface IBarCodeControl
public int getGraphicsUnit()
getGraphicsUnit
in interface IBarCodeControl
public void setGraphicsUnit(int value)
setGraphicsUnit
in interface IBarCodeControl
public Resolution getResolution()
getResolution
in interface IBarCodeControl
public void setResolution(Resolution value)
setResolution
in interface IBarCodeControl
public String getPrinterName()
public void setPrinterName(String value)
public int getImageQuality()
getImageQuality
in interface IBarCodeControl
public void setImageQuality(int value)
setImageQuality
in interface IBarCodeControl
public int getTextRenderingHint()
getTextRenderingHint
in interface IBarCodeControl
public void setTextRenderingHint(int value)
setTextRenderingHint
in interface IBarCodeControl
public boolean getAutoSize()
getAutoSize
in interface IBarCodeControl
public void setAutoSize(boolean value)
setAutoSize
in interface IBarCodeControl
public float getImageWidth()
getImageWidth
in interface IBarCodeControl
public void setImageWidth(float value)
setImageWidth
in interface IBarCodeControl
public float getImageHeight()
getImageHeight
in interface IBarCodeControl
public void setImageHeight(float value)
setImageHeight
in interface IBarCodeControl
public float getBorderWidth()
getBorderWidth
in interface IBarCodeControl
public void setBorderWidth(float value)
setBorderWidth
in interface IBarCodeControl
public float getxDimension()
getxDimension
in interface IBarCodeControl
public void setxDimension(float value)
setxDimension
in interface IBarCodeControl
public float getyDimension()
getyDimension
in interface IBarCodeControl
public void setYDimension(float value)
setYDimension
in interface IBarCodeControl
public float getBarHeight()
getBarHeight
in interface IBarCodeControl
public void setBarHeight(float value)
setBarHeight
in interface IBarCodeControl
public float getAspectRatio()
getAspectRatio
in interface IBarCodeControl
public void setAspectRatio(float value)
setAspectRatio
in interface IBarCodeControl
public MarginsF getMargins()
getMargins
in interface IBarCodeControl
public void setMargins(MarginsF value)
setMargins
in interface IBarCodeControl
public float getSupplementSpace()
getSupplementSpace
in interface IBarCodeControl
public void setSupplementSpace(float value)
setSupplementSpace
in interface IBarCodeControl
public float getPostnetShortBarHeight()
getPostnetShortBarHeight
in interface IBarCodeControl
public void setPostnetShortBarHeight(float value)
setPostnetShortBarHeight
in interface IBarCodeControl
public float getPlanetShortBarHeight()
getPlanetShortBarHeight
in interface IBarCodeControl
public void setPlanetShortBarHeight(float value)
setPlanetShortBarHeight
in interface IBarCodeControl
public float getCodeTextSpace()
getCodeTextSpace
in interface IBarCodeControl
public void setCodeTextSpace(float value)
setCodeTextSpace
in interface IBarCodeControl
public BufferedImage getBarCodeImage()
getBarCodeImage
in interface IBarCodeControl
public boolean getBorderVisible()
getBorderVisible
in interface IBarCodeControl
public void setBorderVisible(boolean value)
setBorderVisible
in interface IBarCodeControl
public Color getBorderColor()
getBorderColor
in interface IBarCodeControl
public void setBorderColor(Color value)
setBorderColor
in interface IBarCodeControl
public int getBorderDashStyle()
getBorderDashStyle
in interface IBarCodeControl
public void setBorderDashStyle(int value)
setBorderDashStyle
in interface IBarCodeControl
public short getCodabarStartSymbol()
getCodabarStartSymbol
in interface IBarCodeControl
public void setCodabarStartSymbol(short value)
setCodabarStartSymbol
in interface IBarCodeControl
public short getCodabarStopSymbol()
getCodabarStopSymbol
in interface IBarCodeControl
public void setCodabarStopSymbol(short value)
setCodabarStopSymbol
in interface IBarCodeControl
public int getCode128CodeSet()
getCode128CodeSet
in interface IBarCodeControl
public void setCode128CodeSet(int value)
setCode128CodeSet
in interface IBarCodeControl
public int getAustralianPosteParcelCodeSet()
public void setAustralianPosteParcelCodeSet(int value)
public int getEAN128EncodeMode()
public void setEAN128EncodeMode(int value)
public int getAustraliaPostFormatControlCode()
getAustraliaPostFormatControlCode
in interface IBarCodeControl
public void setAustraliaPostFormatControlCode(int value)
setAustraliaPostFormatControlCode
in interface IBarCodeControl
public int getITF14BorderType()
public void setITF14BorderType(int value)
public Color getForeAwtColor()
getForeAwtColor
in interface IBarCodeControl
public void setForeColor(Color value)
setForeColor
in interface IBarCodeControl
public Color getBackColor()
getBackColor
in interface IBarCodeControl
public void setBackColor(Color value)
setBackColor
in interface IBarCodeControl
public void setBackColorInternal(Color value)
public boolean getEnableChecksum()
getEnableChecksum
in interface IBarCodeControl
public void setEnableChecksum(boolean value)
setEnableChecksum
in interface IBarCodeControl
public int getColumns()
getColumns
in interface IBarCodeControl
public void setColumns(int value)
setColumns
in interface IBarCodeControl
public int getRows()
public void setRows(int value)
public int getDataMatrixEncodeMode()
public void setDataMatrixEncodeMode(int value)
public int getPdf417CompactionMode()
getPdf417CompactionMode
in interface IBarCodeControl
public void setPdf417CompactionMode(int value)
setPdf417CompactionMode
in interface IBarCodeControl
public boolean getPdf417Truncate()
getPdf417Truncate
in interface IBarCodeControl
public void setPdf417Truncate(boolean value)
setPdf417Truncate
in interface IBarCodeControl
public int getPdf417ErrorLevel()
getPdf417ErrorLevel
in interface IBarCodeControl
public void setPdf417ErrorLevel(int value)
setPdf417ErrorLevel
in interface IBarCodeControl
public boolean getMacroPdf417LastSegment()
public void setMacroPdf417LastSegment(boolean value)
public int getMacroPdf417SegmentID()
public void setMacroPdf417SegmentID(int value)
public int getMacroPdf417FileID()
public void setMacroPdf417FileID(int value)
public float getWideNarrowRatio()
getWideNarrowRatio
in interface IBarCodeControl
public void setWideNarrowRatio(float value)
setWideNarrowRatio
in interface IBarCodeControl
public String getSupplementData()
getSupplementData
in interface IBarCodeControl
public void setSupplementData(String value)
setSupplementData
in interface IBarCodeControl
public int getQRErrorLevel()
Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see Aspose.BarCode.QRErrorLevelQRErrorLevel
.
public void setQRErrorLevel(int value)
public int getQREncodeMode()
QR symbology type of BarCode's encoding mode, default mode is Auto
public void setQREncodeMode(int value)
public int getAztectErrorLevel()
Level of error corection of Aztect types of barcode. value should between 10 to 95
public void setAztectErrorLevel(int value)
@Deprecated public int getImageUnit()
Obsoleted, Use GraphicsUnit instead
@Deprecated public void setImageUnit(int value)
public void saveImageAs(String filename)
Save the barcode image
filename
- Full path of the target image filepublic void saveImageAs(InputStream stream, com.aspose.barcode.ImageFormat format)
@Deprecated public void saveImageAs(String filename, com.aspose.barcode.ImageFormat format)
Save barcode image to local file.
filename
- The filenameformat
- The image formatpublic void setAlwaysShowChecksum(boolean value)
public BufferedImage generateBarCodeImage()
Generate the BarCode image under current settings
public void rotate()
Rotate barcode image clockwise for 90 degrees
rotate
in interface IBarCodeControl
public void rotate(float angle)
Rotate barcode image clockwise
rotate
in interface IBarCodeControl
angle
- Rotation Anglepublic void rotate(int direction, float angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
direction
- rotation directionangle
- rotation anglepublic void rotate(int angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
angle
- either 0, 90, 180 or 270 degreepublic void rotate(int direction, int angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
direction
- specify clockwise or anti-clockwiseangle
- either 0, 90, 180 or 270 degreepublic void save(OutputStream stream, int format)
public void save(InputStream stream, com.aspose.barcode.ImageFormat format)
save
in interface IBarCodeControl
public void save(InputStream stream, int format)
public void save(String filename)
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
filename
- save to this file pathpublic void save(String filename, com.aspose.barcode.ImageFormat format)
save
in interface IBarCodeControl
public void save(String filename, int format)
filename
- save to this file pathformat
- Specifies the file format of the image.public String toString()
overried to string method
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |