generation/itf-parameters.js

const _MwWrapper = require("../_mwbridge/_mw-wrapper.js");
const  Unit = require("./unit");

/**
 * ITF parameters.
 */
class ITFParameters extends _MwWrapper
{

    itfBorderThickness;

    constructor(mwObject)
    {
        super(mwObject);
        this._initializeWrapperMembers();
    }

    _initializeWrapperMembers()
    {
        this.itfBorderThickness = new Unit(this.getJavaClass().getItfBorderThicknessSync());
    }

    /**
     * <p>
     * Gets an ITF border (bearer bar) thickness in Unit value.
     * Default value: 12pt.
     * </p>
     * @return an ITF border (bearer bar) thickness in Unit value.
     */
    getBorderThickness()
    {
        return this.itfBorderThickness;
    }

    /**
     * <p>
     * Sets an ITF border (bearer bar) thickness in Unit value.
     * Default value: 12pt.
     * </p>
     * @param value an ITF border (bearer bar) thickness in Unit value.
     */
    setBorderThickness(value)
    {
        this.itfBorderThickness = value;
        this.getJavaClass().setBorderThicknessSync(value.getJavaClass());
    }

    /**
     * Gets an ITF border (bearer bar) thickness in Unit value.<br>
     * Default value: 12pt.
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the getBorderThickness().
     */
    getItfBorderThickness()
    {
        return this.itfBorderThickness;
    }

    /**
     * Sets an ITF border (bearer bar) thickness in Unit value.<br>
     * Default value: 12pt.
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the setBorderThickness().
     */
    setItfBorderThickness(value)
    {
        this.getJavaClass().setItfBorderThicknessSync(value.getJavaClass());
        this.itfBorderThickness = value;
    }

    /**
     * <p>
     * Border type of ITF barcode.
     * Default value: ITF14BorderType.Bar.
     * </p>
     */
    getBorderType()
    {
        return this.getJavaClass().getBorderTypeSync();
    }

    /**
     * <p>
     * Border type of ITF barcode.
     * Default value: ITF14BorderType.Bar.
     * </p>
     */
    setBorderType(value)
    {
        this.getJavaClass().setBorderTypeSync(value);
    }

    /**
     * Border type of ITF barcode.<br>
     * Default value: ITF14BorderType.BAR.
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the getBorderType().
     */
    getItfBorderType()
    {
        return this.getJavaClass().getItfBorderTypeSync();
    }

    /**
     * Border type of ITF barcode.<br>
     * Default value: ITF14BorderType.BAR.
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the setBorderType().
     */
    setItfBorderType(value)
    {
        this.getJavaClass().setItfBorderTypeSync(value);
    }

    /**
     * Size of the quiet zones in xDimension.<br>
     * Default value: 10, meaning if xDimension = 2px than quiet zones will be 20px.<br>
     * @exception IllegalArgumentException
     * The QuietZoneCoef parameter value is less than 10.
     */
    getQuietZoneCoef()
    {
        return this.getJavaClass().getQuietZoneCoefSync();
    }

    /**
     * Size of the quiet zones in xDimension.<br>
     * Default value: 10, meaning if xDimension = 2px than quiet zones will be 20px.<br>
     * @exception IllegalArgumentException
     * The QuietZoneCoef parameter value is less than 10.
     */
    setQuietZoneCoef(value)
    {
        this.getJavaClass().setQuietZoneCoefSync(value);
    }

    /**
     * Returns a human-readable string representation of this ITFParameters.<br>
     * @return A string that represents this ITFParameters.
     */
    toString()
    {
        return this.getJavaClass().toStringSync();
    }
}

module.exports = ITFParameters;