public class BarCodeConfig extends Object
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-fop is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
| 构造器和说明 |
|---|
BarCodeConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Integer |
getCodeMargin()
条形码边距
|
String |
getContent()
条形码内容
|
Map<com.google.zxing.EncodeHintType,Object> |
getEncodeHints()
编码设置
|
com.google.zxing.qrcode.decoder.ErrorCorrectionLevel |
getErrorLevel()
条形码纠错级别
|
Integer |
getHeight()
图像高度
|
Boolean |
getIsCache()
是否缓存
|
Boolean |
getIsNoWhiteBorder()
是否无白边
|
Color |
getOffColor()
条形码背景颜色
|
Color |
getOnColor()
条形码前景颜色
|
Double |
getRadians()
旋转弧度
|
Double |
getScaleRate()
缩放比例
|
com.google.zxing.BarcodeFormat |
getType()
条形码类型
|
Integer |
getWidth()
图像宽度
|
String |
getWords()
条形码文字
|
Color |
getWordsColor()
条形码文字颜色
|
String |
getWordsFamily()
条形码文字名称
|
Integer |
getWordsOffsetX()
条形码文字偏移量-X轴
|
Integer |
getWordsOffsetY()
条形码文字偏移量-Y轴
|
Integer |
getWordsSize()
条形码文字大小
|
FontStyleUtil.FontStyle |
getWordsStyle()
条形码文字样式
正常:Font.PLAIN
粗体:Font.BOLD
斜体:Font.ITALIC
粗体斜体:Font.BOLD|Font.ITALIC
|
int |
hashCode() |
BarCodeConfig |
setCodeMargin(Integer codeMargin)
条形码边距
|
BarCodeConfig |
setContent(String content)
条形码内容
|
BarCodeConfig |
setErrorLevel(com.google.zxing.qrcode.decoder.ErrorCorrectionLevel errorLevel)
条形码纠错级别
|
BarCodeConfig |
setHeight(Integer height)
图像高度
|
BarCodeConfig |
setIsCache(Boolean isCache)
是否缓存
|
BarCodeConfig |
setIsNoWhiteBorder(Boolean isNoWhiteBorder)
是否无白边
|
BarCodeConfig |
setOffColor(Color offColor)
条形码背景颜色
|
BarCodeConfig |
setOnColor(Color onColor)
条形码前景颜色
|
BarCodeConfig |
setRadians(Double radians)
旋转弧度
|
BarCodeConfig |
setScaleRate(Double scaleRate)
缩放比例
|
BarCodeConfig |
setType(com.google.zxing.BarcodeFormat type)
条形码类型
|
BarCodeConfig |
setWidth(Integer width)
图像宽度
|
BarCodeConfig |
setWords(String words)
条形码文字
|
BarCodeConfig |
setWordsColor(Color wordsColor)
条形码文字颜色
|
BarCodeConfig |
setWordsFamily(String wordsFamily)
条形码文字名称
|
BarCodeConfig |
setWordsOffsetX(Integer wordsOffsetX)
条形码文字偏移量-X轴
|
BarCodeConfig |
setWordsOffsetY(Integer wordsOffsetY)
条形码文字偏移量-Y轴
|
BarCodeConfig |
setWordsSize(Integer wordsSize)
条形码文字大小
|
BarCodeConfig |
setWordsStyle(FontStyleUtil.FontStyle wordsStyle)
条形码文字样式
正常:Font.PLAIN
粗体:Font.BOLD
斜体:Font.ITALIC
粗体斜体:Font.BOLD|Font.ITALIC
|
String |
toString() |
public com.google.zxing.BarcodeFormat getType()
public Double getScaleRate()
public Integer getWidth()
public Integer getHeight()
public String getContent()
public Integer getCodeMargin()
public com.google.zxing.qrcode.decoder.ErrorCorrectionLevel getErrorLevel()
public Color getOnColor()
public Color getOffColor()
public String getWords()
public Color getWordsColor()
public String getWordsFamily()
public FontStyleUtil.FontStyle getWordsStyle()
正常:Font.PLAIN
粗体:Font.BOLD
斜体:Font.ITALIC
粗体斜体:Font.BOLD|Font.ITALIC
public Integer getWordsSize()
public Integer getWordsOffsetX()
public Integer getWordsOffsetY()
public Double getRadians()
public Boolean getIsNoWhiteBorder()
public Boolean getIsCache()
public BarCodeConfig setType(com.google.zxing.BarcodeFormat type)
this.public BarCodeConfig setScaleRate(Double scaleRate)
this.public BarCodeConfig setWidth(Integer width)
this.public BarCodeConfig setHeight(Integer height)
this.public BarCodeConfig setContent(String content)
this.public BarCodeConfig setCodeMargin(Integer codeMargin)
this.public BarCodeConfig setErrorLevel(com.google.zxing.qrcode.decoder.ErrorCorrectionLevel errorLevel)
this.public BarCodeConfig setOnColor(Color onColor)
this.public BarCodeConfig setOffColor(Color offColor)
this.public BarCodeConfig setWords(String words)
this.public BarCodeConfig setWordsColor(Color wordsColor)
this.public BarCodeConfig setWordsFamily(String wordsFamily)
this.public BarCodeConfig setWordsStyle(FontStyleUtil.FontStyle wordsStyle)
正常:Font.PLAIN
粗体:Font.BOLD
斜体:Font.ITALIC
粗体斜体:Font.BOLD|Font.ITALIC
this.public BarCodeConfig setWordsSize(Integer wordsSize)
this.public BarCodeConfig setWordsOffsetX(Integer wordsOffsetX)
this.public BarCodeConfig setWordsOffsetY(Integer wordsOffsetY)
this.public BarCodeConfig setRadians(Double radians)
this.public BarCodeConfig setIsNoWhiteBorder(Boolean isNoWhiteBorder)
this.public BarCodeConfig setIsCache(Boolean isCache)
this.protected boolean canEqual(Object other)
Copyright © 2025. All rights reserved.