RecognitionAreaSettings

Inheritance: java.lang.Object

All Implemented Interfaces: android.os.Parcelable

public class RecognitionAreaSettings implements Parcelable

Fields

FieldDescription
CREATOR
DEFAULT_1D_RECOGNITION_AREA_SETTINGS
DEFAULT_2D_RECOGNITION_AREA_SETTINGS

Methods

MethodDescription
describeContents()
equals(Object arg0)
getClass()
getFrameColor()Gets the paint color of barcode scanner frame
getMaxAreaHeight()Gets the recognition area max height
getMaxAreaWidth()Gets the recognition area max width
getOneDAreaBarcodeLineStyle()Gets style of 1D BarcodeArea line
getOneDLineColor()Gets the color of 1D recognition marker
getOneDLineWidth()Gets the width of 1D area border line
getRecognitionAreaColor()Gets the paint color of barcode recognition area
getTopOffset()Gets the recognition area offset from top of screen TODO in percents
getTwoDAreaBarcodeLineStyle()Gets style of 2D BarcodeArea line
getTwoDAreaCornerRadius()Returns rounded corner radius
getTwoDAreaStyle()Gets style of 2D BarcodeArea border
getTwoDLineColor()Gets the color of 2D recognition marker
getTwoDLineWidth()Gets the width of 2D area border line
getWidthHeightAreaRatio()Gets ratio between width and height of the recognition area
hashCode()
isRecognizeOnlyInRecognitionArea()
notify()
notifyAll()
setFrameColor(int frameColor)sets the paint color of barcode scanner frame
setMaxAreaHeight(float maxAreaHeight)Sets the recognition area max height
setMaxAreaWidth(float maxAreaWidth)Sets the recognition area max width
setOneDAreaBarcodeLineStyle(BarcodeAreaLineStyle oneDAreaBarcodeLineStyle)Sets style of 1D BarcodeArea line
setOneDLineColor(int oneDLineColor)Sets the color of 1D recognition marker
setOneDLineWidth(float oneDLineWidth)Sets the width of 1D area border line
setRecognitionAreaColor(int recognitionAreaColor)Sets the paint color of barcode recognition area
setRecognizeOnlyInRecognitionArea(boolean recognizeOnlyInRecognitionArea)
setTopOffset(float topOffset)Sets the recognition area offset from top of screen
setTwoDAreaBarcodeLineStyle(BarcodeAreaLineStyle twoDAreaBarcodeLineStyle)Sets style of 2D BarcodeArea line
setTwoDAreaCornerRadius(float twoDAreaCornerRadius)Returns rounded corner radius
setTwoDAreaStyle(TwoDAreaStyle twoDAreaStyle)Sets style of 2D BarcodeArea border
setTwoDLineColor(int twoDLineColor)Sets the color of 1D recognition marker
setTwoDLineWidth(float twoDLineWidth)Sets the width of 2D area border line
setWidthHeightAreaRatio(float areaRatio)Sets ratio between width and height of the recognition area
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
writeToParcel(Parcel dest, int flags)

CREATOR

public static final Parcelable.Creator<RecognitionAreaSettings> CREATOR

DEFAULT_1D_RECOGNITION_AREA_SETTINGS

public static final RecognitionAreaSettings DEFAULT_1D_RECOGNITION_AREA_SETTINGS

DEFAULT_2D_RECOGNITION_AREA_SETTINGS

public static final RecognitionAreaSettings DEFAULT_2D_RECOGNITION_AREA_SETTINGS

describeContents()

public int describeContents()

Returns: int

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFrameColor()

public int getFrameColor()

Gets the paint color of barcode scanner frame

Returns: int -

getMaxAreaHeight()

public float getMaxAreaHeight()

Gets the recognition area max height

Returns: float - the recognition area max height

getMaxAreaWidth()

public float getMaxAreaWidth()

Gets the recognition area max width

Returns: float - the recognition area max width

getOneDAreaBarcodeLineStyle()

public BarcodeAreaLineStyle getOneDAreaBarcodeLineStyle()

Gets style of 1D BarcodeArea line

Returns: BarcodeAreaLineStyle - style of 1D BarcodeArea line

getOneDLineColor()

public int getOneDLineColor()

Gets the color of 1D recognition marker

Returns: int - the color of 1D recognition marker

getOneDLineWidth()

public float getOneDLineWidth()

Gets the width of 1D area border line

Returns: float - the width of 1D area border line

getRecognitionAreaColor()

public int getRecognitionAreaColor()

Gets the paint color of barcode recognition area

Returns: int -

getTopOffset()

public float getTopOffset()

Gets the recognition area offset from top of screen TODO in percents

Returns: float - the recognition area offset from top of screen

getTwoDAreaBarcodeLineStyle()

public BarcodeAreaLineStyle getTwoDAreaBarcodeLineStyle()

Gets style of 2D BarcodeArea line

Returns: BarcodeAreaLineStyle - style of 2D BarcodeArea line

getTwoDAreaCornerRadius()

public float getTwoDAreaCornerRadius()

Returns rounded corner radius

Returns: float - rounded corner radius

getTwoDAreaStyle()

public TwoDAreaStyle getTwoDAreaStyle()

Gets style of 2D BarcodeArea border

Returns: com.aspose.barcode.component.barcodescanner.recognitionareaview.TwoDAreaStyle - style of 2D BarcodeArea border

getTwoDLineColor()

public int getTwoDLineColor()

Gets the color of 2D recognition marker

Returns: int - the color of 1D recognition marker

getTwoDLineWidth()

public float getTwoDLineWidth()

Gets the width of 2D area border line

Returns: float - the width of 2D area border line

getWidthHeightAreaRatio()

public float getWidthHeightAreaRatio()

Gets ratio between width and height of the recognition area

Returns: float - ratio between width and height of the recognition area

hashCode()

public native int hashCode()

Returns: int

isRecognizeOnlyInRecognitionArea()

public boolean isRecognizeOnlyInRecognitionArea()

Returns: boolean - Visibility of the recognition area

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setFrameColor(int frameColor)

public void setFrameColor(int frameColor)

sets the paint color of barcode scanner frame

Parameters:

ParameterTypeDescription
frameColorint

setMaxAreaHeight(float maxAreaHeight)

public void setMaxAreaHeight(float maxAreaHeight)

Sets the recognition area max height

Parameters:

ParameterTypeDescription
maxAreaHeightfloatthe recognition area max height

setMaxAreaWidth(float maxAreaWidth)

public void setMaxAreaWidth(float maxAreaWidth)

Sets the recognition area max width

Parameters:

ParameterTypeDescription
maxAreaWidthfloatthe recognition area max width

setOneDAreaBarcodeLineStyle(BarcodeAreaLineStyle oneDAreaBarcodeLineStyle)

public void setOneDAreaBarcodeLineStyle(BarcodeAreaLineStyle oneDAreaBarcodeLineStyle)

Sets style of 1D BarcodeArea line

Parameters:

ParameterTypeDescription
oneDAreaBarcodeLineStyleBarcodeAreaLineStylestyle of 1D BarcodeArea line

setOneDLineColor(int oneDLineColor)

public void setOneDLineColor(int oneDLineColor)

Sets the color of 1D recognition marker

Parameters:

ParameterTypeDescription
oneDLineColorintthe color of 1D recognition marker

setOneDLineWidth(float oneDLineWidth)

public void setOneDLineWidth(float oneDLineWidth)

Sets the width of 1D area border line

Parameters:

ParameterTypeDescription
oneDLineWidthfloatthe width of 1D area border line

setRecognitionAreaColor(int recognitionAreaColor)

public void setRecognitionAreaColor(int recognitionAreaColor)

Sets the paint color of barcode recognition area

Parameters:

ParameterTypeDescription
recognitionAreaColorintcolor of barcode recognition area. If color will not transparent, barcode recognition area will not transparent

setRecognizeOnlyInRecognitionArea(boolean recognizeOnlyInRecognitionArea)

public void setRecognizeOnlyInRecognitionArea(boolean recognizeOnlyInRecognitionArea)

Parameters:

ParameterTypeDescription
recognizeOnlyInRecognitionAreabooleanVisibility of the recognition area

setTopOffset(float topOffset)

public void setTopOffset(float topOffset)

Sets the recognition area offset from top of screen

Parameters:

ParameterTypeDescription
topOffsetfloatthe recognition area offset from top of screen

setTwoDAreaBarcodeLineStyle(BarcodeAreaLineStyle twoDAreaBarcodeLineStyle)

public void setTwoDAreaBarcodeLineStyle(BarcodeAreaLineStyle twoDAreaBarcodeLineStyle)

Sets style of 2D BarcodeArea line

Parameters:

ParameterTypeDescription
twoDAreaBarcodeLineStyleBarcodeAreaLineStylestyle of 2D BarcodeArea line

setTwoDAreaCornerRadius(float twoDAreaCornerRadius)

public void setTwoDAreaCornerRadius(float twoDAreaCornerRadius)

Returns rounded corner radius

Parameters:

ParameterTypeDescription
twoDAreaCornerRadiusfloatrounded corner radius

setTwoDAreaStyle(TwoDAreaStyle twoDAreaStyle)

public void setTwoDAreaStyle(TwoDAreaStyle twoDAreaStyle)

Sets style of 2D BarcodeArea border

Parameters:

ParameterTypeDescription
twoDAreaStylecom.aspose.barcode.component.barcodescanner.recognitionareaview.TwoDAreaStylestyle of 2D BarcodeArea border

setTwoDLineColor(int twoDLineColor)

public void setTwoDLineColor(int twoDLineColor)

Sets the color of 1D recognition marker

Parameters:

ParameterTypeDescription
twoDLineColorintthe color of 1D recognition marker

setTwoDLineWidth(float twoDLineWidth)

public void setTwoDLineWidth(float twoDLineWidth)

Sets the width of 2D area border line

Parameters:

ParameterTypeDescription
twoDLineWidthfloatthe width of 2D area border line

setWidthHeightAreaRatio(float areaRatio)

public void setWidthHeightAreaRatio(float areaRatio)

Sets ratio between width and height of the recognition area

Parameters:

ParameterTypeDescription
areaRatiofloatratio between width and height of the recognition area

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int

writeToParcel(Parcel dest, int flags)

public void writeToParcel(Parcel dest, int flags)

Parameters:

ParameterTypeDescription
destandroid.os.Parcel
flagsint