Common Data Structures
Geometric Types
Defined in package com.scandit.datacapture.core.geometry
- MeasureUnit
Added in version 6.0.0
Specifies in what units the value has been specified (fraction, device-independent pixels, pixels).
- DIP
Added in version 6.0.0
Value is measured in device-independent pixels.
- PIXEL
Added in version 6.0.0
Value is measured in pixels.
- FRACTION
Added in version 6.0.0
Value is measured as a fraction. Valid values range from 0 to 1. This can be used to specify values in relative coordinates with respect to a reference, e.g. the view width or height.
- SizingMode
Added in version 6.0.0
An enumeration of possible ways to define a rectangular size.
- WIDTH_AND_HEIGHT
Added in version 6.0.0
This value will use a SizeWithUnit to determine width and the height.
- WIDTH_AND_ASPECT_RATIO
Added in version 6.0.0
This value will use a FloatWithUnit to determine the width and a float multiplier to determine the height.
- HEIGHT_AND_ASPECT_RATIO
Added in version 6.0.0
This value will use a FloatWithUnit to determine the height and a float multiplier to determine the width.
- SHORTER_DIMENSION_AND_ASPECT_RATIO
Added in version 6.8.0
This value will use a FloatWithUnit to determine the rectangle length on the short side of the reference and a float multiplier to determine the length on the long side.
- Point
class PointAdded in version 6.0.0
- Point()
Point(
floatx,floaty)Added in version 6.0.0
Construct a new point at position x and y.
- x
floatgetX()Added in version 6.0.0
X coordinate of the point.
- y
floatgetY()Added in version 6.0.0
Y coordinate of the point.
- PointWithUnit
class PointWithUnitAdded in version 6.0.0
- PointWithUnit()
PointWithUnit(@NonNull FloatWithUnit x, @NonNull FloatWithUnit y)
Added in version 6.0.0
Construct a new point at position x and y.
- x
@NonNull FloatWithUnit getX()
Added in version 6.0.0
X coordinate of the point.
- y
@NonNull FloatWithUnit getY()
Added in version 6.0.0
Y coordinate of the point.
- Rect
class RectAdded in version 6.0.0
- Rect()
Rect(@NonNull Point origin, @NonNull Size2 size)
Added in version 6.0.0
Construct a new rectangle.
- RectWithUnit
class RectWithUnitAdded in version 6.0.0
- RectWithUnit()
RectWithUnit(@NonNull PointWithUnit origin, @NonNull SizeWithUnit size)
Added in version 6.0.0
Construct a new rectangle with unit.
- origin
@NonNull PointWithUnit getOrigin()
Added in version 6.0.0
The origin (top-left corner) of the rectangle.
- size
@NonNull SizeWithUnit getSize()
Added in version 6.0.0
The size of the rectangle.
- Size2
class Size2Added in version 6.0.0
- Size2()
Size2(
floatwidth,floatheight)Added in version 6.0.0
Construct a new Size2 instance.
- width
floatgetWidth()Added in version 6.0.0
The width.
- height
floatgetHeight()Added in version 6.0.0
The height.
- SizeWithUnit
class SizeWithUnitAdded in version 6.0.0
- SizeWithUnit()
SizeWithUnit(@NonNull FloatWithUnit width, @NonNull FloatWithUnit height)
Added in version 6.0.0
Construct a new size with unit.
- width
@NonNull FloatWithUnit getWidth()
Added in version 6.0.0
The width.
- height
@NonNull FloatWithUnit getHeight()
Added in version 6.0.0
The height.
- SizeWithAspect
class SizeWithAspectAdded in version 6.0.0
Holds values to define a rectangular size using a dimension and an aspect ratio multiplier.
- SizeWithAspect()
SizeWithAspect(@NonNull FloatWithUnit size,
floataspect)Added in version 6.0.0
Construct a new size with aspect.
- size
@NonNull FloatWithUnit getSize()
Added in version 6.0.0
The size of one dimension.
- aspect
floatgetAspect()Added in version 6.0.0
The aspect ratio for the other dimension.
- FloatWithUnit
class FloatWithUnitAdded in version 6.0.0
Holds a floating-point value plus a measure unit.
- FloatWithUnit()
FloatWithUnit(
floatvalue, MeasureUnit unit)Added in version 6.0.0
Construct a new float with unit.
- value
floatgetValue()Added in version 6.0.0
- unit
MeasureUnit getUnit()
Added in version 6.0.0
- MarginsWithUnit
class MarginsWithUnitAdded in version 6.0.0
Holds margin values (left, top, right, bottom) that can each be expressed with a different measure unit.
- MarginsWithUnit()
MarginsWithUnit(@NonNull FloatWithUnit left, @NonNull FloatWithUnit top, @NonNull FloatWithUnit right, @NonNull FloatWithUnit bottom)
Added in version 6.0.0
Constructs a new MarginsWithUnit instance.
- left
@NonNull FloatWithUnit getLeft()
Added in version 6.0.0
Left margin.
- right
@NonNull FloatWithUnit getRight()
Added in version 6.0.0
Right margin.
- top
@NonNull FloatWithUnit getTop()
Added in version 6.0.0
Top margin.
- bottom
@NonNull FloatWithUnit getBottom()
Added in version 6.0.0
Bottom margin.
- MarginsF
class MarginsFAdded in version 6.23.0
Holds float margin values (left, top, right, bottom).
- MarginsF()
MarginsF(
floatleft,floattop,floatright,floatbottom)Added in version 6.23.0
Constructs a new MarginsF instance.
- left
floatgetLeft()Added in version 6.23.0
Left margin.
- right
floatgetRight()Added in version 6.23.0
Right margin.
- top
floatgetTop()Added in version 6.23.0
Top margin.
- bottom
floatgetBottom()Added in version 6.23.0
Bottom margin.
- Quadrilateral
class QuadrilateralAdded in version 6.0.0
Polygon represented by 4 corners.
- SizeWithUnitAndAspect
class SizeWithUnitAndAspectAdded in version 6.0.0
Holds a SizingMode - and corresponding required values - to define a rectangular size.
- widthAndHeight
@Nullable SizeWithUnit getWidthAndHeight()
Added in version 6.0.0
The values for width and height.
Note
This value will always be null unless sizingMode is SizingMode.WIDTH_AND_HEIGHT.
- widthAndAspectRatio
@Nullable SizeWithAspect getWidthAndAspectRatio()
Added in version 6.0.0
The value for width and the aspect ratio for height.
Note
This value will always be null unless sizingMode is SizingMode.WIDTH_AND_ASPECT_RATIO.
- heightAndAspectRatio
@Nullable SizeWithAspect getHeightAndAspectRatio()
Added in version 6.0.0
The value for height and the aspect ratio for width.
Note
This value will always be null unless sizingMode is SizingMode.HEIGHT_AND_ASPECT_RATIO.
- shorterDimensionAndAspectRatio
@Nullable SizeWithAspect getShorterDimensionAndAspectRatio()
Added in version 6.8.0
The value for the short dimension of the reference view and the aspect ratio for the long dimension of the reference view.
Note
This value will always be null unless sizingMode is SizingMode.SHORTER_DIMENSION_AND_ASPECT_RATIO.
- sizingMode
SizingMode getSizingMode()
Added in version 6.0.0
The sizing mode.
Misc Types
Defined in package com.scandit.datacapture.core.common.async
- Callback
interface Callback<T>
Added in version 6.0.0
Interface for a callback/callable accepting a generic parameter of type T.
- run(result)
voidrun(@NonNullTresult)Added in version 6.0.0
Called when the callback is invoked.
Defined in package com.scandit.datacapture.core.common.buffer
- EncodingRange
class EncodingRangeAdded in version 6.0.0
Defines the encoding of a range of bytes.
- EncodingRange()
EncodingRange(@NonNull String ianaName,
intstartIndex,intendIndex)Added in version 6.0.0
Construct a new encoding range.
- ianaName
@NonNull String getIanaName()
Added in version 6.0.0
Charset encoding name as defined by IANA.
- startIndex
intgetStartIndex()Added in version 6.0.0
Start index of this encoding range.
- endIndex
intgetEndIndex()Added in version 6.0.0
End index (first index after the last) of this encoding range.
Defined in package com.scandit.datacapture.core
Defined in package com.scandit.datacapture.core
Defined in package com.scandit.datacapture.core
Defined in package com.scandit.datacapture.core
Defined in package com.scandit.datacapture.core.time
- TimeInterval
class TimeIntervalAdded in version 6.0.0
Represents a duration/time interval.
- millis(duration)
static @NonNull TimeInterval millis(
longduration)Added in version 6.0.0
Returns a new time interval from the provided duration in milliseconds.
- seconds(duration)
static @NonNull TimeInterval seconds(
floatduration)Added in version 6.0.0
Returns a new time interval from the provided duration in seconds.
- asSeconds()
floatasSeconds()Added in version 6.0.0
Returns the duration in seconds.
- asMillis()
longasMillis()Added in version 6.0.0
Returns the duration in milliseconds