|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.ext.barcode.Barcode
com.jrefinery.report.ext.barcode.Barcode39
Implements the code 39 and code 39 extended. The default parameters are:
x = 0.8f; n = 2; font = BaseFont.createFont("Helvetica", "winansi", false); size = 8; baseline = size; barHeight = size * 3; textAlignment = Element.ALIGN_CENTER; generateChecksum = false; checksumText = false; startStopText = true; extended = false;
Field Summary |
Fields inherited from class com.jrefinery.report.ext.barcode.Barcode |
DEFAULT_FONT |
Constructor Summary | |
Barcode39()
Creates a new Barcode39. |
Method Summary | |
java.awt.Image |
createImageWithBarcode(java.awt.Color barColor,
java.awt.Color textColor)
Creates an Image with the barcode. |
java.awt.geom.Dimension2D |
getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy. |
java.lang.String |
getFullCode()
|
float |
getMultiplier()
Gets the bar multiplier for wide bars. |
boolean |
isExtended()
Gets the property to generate extended barcode 39. |
boolean |
isStartStopText()
Sets the property to show the start and stop character '*' in the text for the barcode 39. |
void |
setExtended(boolean extended)
Sets the property to generate extended barcode 39. |
void |
setMultiplier(float n)
Sets the bar multiplier for wide bars. |
void |
setStartStopText(boolean startStopText)
Gets the property to show the start and stop character '*' in the text for the barcode 39. |
Methods inherited from class com.jrefinery.report.ext.barcode.Barcode |
clone, getBarHeight, getBaseline, getCode, getFont, getFontAscent, getFontDescent, getMinWidth, getTextAlignment, isDisplayChecksumText, isGenerateChecksum, setBarHeight, setBaseline, setCode, setDisplayChecksumText, setFont, setGenerateChecksum, setMinWidth, setTextAlignment |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Barcode39()
Method Detail |
public float getMultiplier()
public void setMultiplier(float n)
n
- the bar multiplier for wide barspublic java.lang.String getFullCode()
public java.awt.Image createImageWithBarcode(java.awt.Color barColor, java.awt.Color textColor)
Image
with the barcode.
createImageWithBarcode
in class Barcode
barColor
- the color of the bars. It can be null
textColor
- the color of the text. It can be null
Image
public boolean isStartStopText()
public void setStartStopText(boolean startStopText)
startStopText
- new value of property startStopTextpublic boolean isExtended()
public void setExtended(boolean extended)
extended
- new value of property extendedpublic java.awt.geom.Dimension2D getBarcodeSize()
getBarcodeSize
in class Barcode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |