public class BarcodeGeneratorView extends AppCompatImageView implements IBarCodeGeneratorControl
com.aspose.barcode.component.BarcodeGeneratorView android:id="@+id/barCodeGeneratorView" android:layout_width="300dp" android:layout_height="300dp" android:layout_marginLeft="45dp" android:background="@drawable/border" app:barcodeType="QR" app:codetext="sampletext" app:generateOnStart="true"
Constructor and Description |
---|
BarcodeGeneratorView(Context context)
Initializes a new instance of the "BarCodeGeneratorControl" class.
|
BarcodeGeneratorView(Context context,
AttributeSet attrs)
Initializes a new instance of the "BarCodeGeneratorControl" class.
|
BarcodeGeneratorView(Context context,
AttributeSet attrs,
int defStyle)
Initializes a new instance of the "BarCodeGeneratorControl" class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(boolean disposing)
Releases resource.
|
AutoSizeMode |
getAutoSizeMode()
Gets the mode by which the barcode automatically resizes.
|
int |
getBackgroundColor()
Background color of the barcode image.
|
Unit |
getBarCodeHeight()
BarCode image height when
|
Padding |
getBarcodePaddings()
Gets Barcode paddings parameters
|
BaseEncodeType |
getBarcodeType()
BarCode's encode type (symbology).
|
Unit |
getBarCodeWidth()
BarCode image width when
|
int |
getBarColor()
Bars color.
|
Unit |
getBarHeight()
Height of 1D barcodes' bars.
|
BorderParameters |
getBorderParameters()
Gets Border parameters
|
CaptionUI |
getCaptionAbove()
Caption Above the BarCode image.
|
CaptionUI |
getCaptionBelow()
Caption Above the BarCode image.
|
boolean |
getChecksumAlwaysShow()
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
|
java.lang.String |
getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
|
CodetextParametersUI |
getCodeTextParameters()
Gets CodeText parameters
|
boolean |
getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property.
|
boolean |
getFilledBars()
Gets a value indicating whether bars filled.
|
float |
getResolution()
Gets the resolution of the BarCode image.
|
float |
getRotationAngle()
BarCode image rotation angle, measured in degree, e.g.
|
SpecificParametersUI |
getSpecific()
Specific parameters
|
boolean |
getThrowExceptionWhenCodeTextIncorrect()
Only for 1D barcodes.
|
float |
getWideNarrowRatio()
Wide bars to Narrow bars ratio.
|
Unit |
getXDimension()
X-dimension is the smallest width of the unit of BarCode bars or spaces.
|
EnableChecksum |
isChecksumEnabled() |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
setAutoSizeMode(AutoSizeMode value)
Sets the mode by which the barcode automatically resizes.
|
void |
setBackgroundColor(int value)
Background color of the barcode image.
|
void |
setBarcodeType(BaseEncodeType value)
BarCode's encode type (symbology).
|
void |
setBarColor(int value)
Bars color.
|
void |
setChecksumAlwaysShow(boolean value)
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
|
void |
setChecksumEnabled(EnableChecksum value)
Enable checksum during generation 1D barcodes.
|
void |
setCodeText(java.lang.String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
|
void |
setEnableEscape(boolean value)
Indicates whether explains the character "\" as an escape character in CodeText property.
|
void |
setFilledBars(boolean value)
Gets a value indicating whether bars filled.
|
void |
setResolution(float value)
Sets the resolution of the BarCode image.
|
void |
setRotationAngle(float value)
BarCode image rotation angle, measured in degree, e.g.
|
void |
setThrowExceptionWhenCodeTextIncorrect(boolean value)
Only for 1D barcodes.
|
void |
setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio.
|
public BarcodeGeneratorView(Context context)
public BarcodeGeneratorView(Context context, AttributeSet attrs)
public BarcodeGeneratorView(Context context, AttributeSet attrs, int defStyle)
protected void dispose(boolean disposing)
disposing
- true to release both managed and unmanaged resources; false to release only unmanaged resources.protected void onSizeChanged(int w, int h, int oldw, int oldh)
public java.lang.String getCodeText()
public void setCodeText(java.lang.String value)
public BaseEncodeType getBarcodeType()
getBarcodeType
in interface IBarCodeGeneratorControl
public void setBarcodeType(BaseEncodeType value)
setBarcodeType
in interface IBarCodeGeneratorControl
value
- Use public AutoSizeMode getAutoSizeMode()
public void setAutoSizeMode(AutoSizeMode value)
public CaptionUI getCaptionAbove()
public CaptionUI getCaptionBelow()
public Unit getXDimension()
public Unit getBarHeight()
public Unit getBarCodeHeight()
public Unit getBarCodeWidth()
public int getBarColor()
public void setBarColor(int value)
value
- public Padding getBarcodePaddings()
public boolean getChecksumAlwaysShow()
public void setChecksumAlwaysShow(boolean value)
public EnableChecksum isChecksumEnabled()
public void setChecksumEnabled(EnableChecksum value)
public boolean getEnableEscape()
public void setEnableEscape(boolean value)
public boolean getThrowExceptionWhenCodeTextIncorrect()
public void setThrowExceptionWhenCodeTextIncorrect(boolean value)
public float getWideNarrowRatio()
public void setWideNarrowRatio(float value)
value
- The WideNarrowRatio parameter value is less than or equal to 0.public CodetextParametersUI getCodeTextParameters()
public boolean getFilledBars()
public void setFilledBars(boolean value)
public SpecificParametersUI getSpecific()
public int getBackgroundColor()
public void setBackgroundColor(int value)
public float getResolution()
public void setResolution(float value)
value
- The Resolution parameter value is less than or equal to 0.public BorderParameters getBorderParameters()
public float getRotationAngle()
getRotationAngle
in interface IBarCodeGeneratorControl
public void setRotationAngle(float value)
setRotationAngle
in interface IBarCodeGeneratorControl