Nicola
03/29/2023, 10:11 AMNicola
03/29/2023, 10:14 AMNicola
03/29/2023, 10:15 AMAdam S
03/29/2023, 10:23 AMfontSize()
function? What happens if you try setFontSize(0.5)
instead?Nicola
03/29/2023, 10:24 AM/**
* Returns the font size of the human-readable part.
* @return the font size
*/
public double getFontSize() {
return this.fontSize;
}
/**
* Sets the font size of the human-readable part.
* @param size the font size
*/
public void setFontSize(double size) {
this.fontSize = size;
}
Nicola
03/29/2023, 10:24 AMNicola
03/29/2023, 10:24 AMNicola
03/29/2023, 10:25 AMNicola
03/29/2023, 10:25 AMAdam S
03/29/2023, 10:26 AMgetFontSize()
and setFontSize()
in Java (given some conditions…) then Kotlin will magically create a fontSize
variable property, so this should also work:
val barcodeGenerator = Code128Bean()
barcodeGenerator.fontSize = 0.5
https://kotlinlang.org/docs/java-interop.html#getters-and-settersNicola
03/29/2023, 10:27 AMNicola
03/29/2023, 10:27 AMNicola
03/29/2023, 10:27 AM