TsplPrinter<T> constructor
TsplPrinter<T> (
- PrinterConnector<
T> connector, - T model, {
- String unit = "mm",
- String sizeWidth = "35",
- String sizeHeight = "25",
- String gapDistance = "5",
- String gapOffset = "0",
- String referenceX = "0",
- String referenceY = "0",
- String direction = "0",
- String offset = "0",
- String offsetDistance = "0",
- String shiftLeft = "0",
- String shiftTop = "0",
- String dpi = "200",
Implementation
TsplPrinter(
PrinterConnector<T> connector,
T model, {
String unit = "mm",
String sizeWidth = "35",
String sizeHeight = "25",
String gapDistance = "5",
String gapOffset = "0",
String referenceX = "0",
String referenceY = "0",
String direction = "0",
String offset = "0",
String offsetDistance = "0",
String shiftLeft = "0",
String shiftTop = "0",
this.dpi = "200",
}) : super(connector, model) {
this._unit = unit;
this._sizeWidth = sizeWidth;
this._sizeHeight = sizeHeight;
this._gapDistance = gapDistance;
this._gapOffset = gapOffset;
this._referenceX = referenceX;
this._referenceY = referenceY;
this._direction = direction;
this._offset = offset;
this._offsetDistance = offsetDistance;
this._shiftLeft = shiftLeft;
this._shiftTop = shiftTop;
this._config = [
Command.setSize(this._sizeWidth, this._sizeHeight, this._unit),
Command.setGap(this._gapDistance, this._gapOffset, this._unit),
Command.setReference(this._referenceX, this._referenceY),
Command.setDirection(this._direction),
Command.setOffset(this._offsetDistance, this._offset, this._unit),
Command.setShift(this._shiftLeft, this._shiftTop)
].join();
}