OneDimensionalCodeWriter class abstract
Encapsulates functionality and implementation that is common to one-dimensional barcodes.
@author dsbnatut@gmail.com (Kazuki Nishiura)
- Implemented types
- Implementers
Constructors
Properties
- defaultMargin → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedWriteFormats
→ List<
BarcodeFormat> ? -
no setter
Methods
-
encode(
String contents, BarcodeFormat format, int width, int height, [EncodeHint? hints]) → BitMatrix -
Encode the contents following specified format.
width
andheight
are required size. This method may return bigger sizeBitMatrix
when specified size is too small. The user can set bothwidth
andheight
to zero to get minimum size barcode. If negative value is set towidth
orheight
,IllegalArgumentException
is thrown.override -
encodeContent(
String contents, [EncodeHint? hints]) → List< bool> - Encode the contents to bool array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
appendPattern(
List< bool> target, int pos, List<int> pattern, bool startColor) → int -
@param target encode black/white pattern into this array
@param pos position to start encoding at in
target
@param pattern lengths of black/white runs to encode @param startColor starting color - false for white, true for black @return the number of elements added to target. -
checkNumeric(
String contents) → void - @param contents string to check for numeric characters @throws IllegalArgumentException if input contains characters other than digits 0-9.