|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrefinery.report.ext.barcode.Barcode
Base class containing properties and methods commom to all barcode types.
| Field Summary | |
static com.jrefinery.report.targets.FontDefinition |
DEFAULT_FONT
A type of barcode |
| Constructor Summary | |
Barcode()
|
|
| Method Summary | |
java.lang.Object |
clone()
|
abstract java.awt.Image |
createImageWithBarcode(java.awt.Color barColor,
java.awt.Color textColor)
Creates an Image with the barcode. |
abstract java.awt.geom.Dimension2D |
getBarcodeSize()
Gets the maximum area that the barcode and the text, if any, will occupy. |
float |
getBarHeight()
Gets the height of the bars. |
float |
getBaseline()
Gets the text baseline. |
java.lang.String |
getCode()
Gets the code to generate. |
com.jrefinery.report.targets.FontDefinition |
getFont()
Gets the text font. |
protected float |
getFontAscent(java.awt.Font font)
|
protected float |
getFontDescent(java.awt.Font font)
|
float |
getMinWidth()
Gets the minimum bar width. |
com.jrefinery.report.ElementAlignment |
getTextAlignment()
Gets the text alignment. |
boolean |
isDisplayChecksumText()
Gets the property to show the generated checksum in the the text. |
boolean |
isGenerateChecksum()
Gets the optional checksum generation. |
void |
setBarHeight(float barHeight)
Sets the height of the bars. |
void |
setBaseline(float baseline)
Sets the text baseline. |
void |
setCode(java.lang.String code)
Sets the code to generate. |
void |
setDisplayChecksumText(boolean checksumText)
Sets the property to show the generated checksum in the the text. |
void |
setFont(com.jrefinery.report.targets.FontDefinition font)
Sets the text font. |
void |
setGenerateChecksum(boolean generateChecksum)
Setter for property generateChecksum. |
void |
setMinWidth(float minWidth)
Sets the minimum bar width. |
void |
setTextAlignment(com.jrefinery.report.ElementAlignment textAlignment)
Sets the text alignment. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final com.jrefinery.report.targets.FontDefinition DEFAULT_FONT
| Constructor Detail |
public Barcode()
| Method Detail |
public float getMinWidth()
public void setMinWidth(float minWidth)
minWidth - the minimum bar widthpublic com.jrefinery.report.targets.FontDefinition getFont()
null if no text.
null if no textpublic void setFont(com.jrefinery.report.targets.FontDefinition font)
null if no text.
font - the text font. null if no textpublic float getBaseline()
public void setBaseline(float baseline)
baseline - the baseline.public float getBarHeight()
public void setBarHeight(float barHeight)
barHeight - the height of the barspublic com.jrefinery.report.ElementAlignment getTextAlignment()
Element.ALIGN_LEFT,
Element.ALIGN_CENTER or Element.ALIGN_RIGHT.
public void setTextAlignment(com.jrefinery.report.ElementAlignment textAlignment)
Element.ALIGN_LEFT,
Element.ALIGN_CENTER or Element.ALIGN_RIGHT.
textAlignment - the text alignmentpublic boolean isGenerateChecksum()
public void setGenerateChecksum(boolean generateChecksum)
generateChecksum - New value of property generateChecksum.public boolean isDisplayChecksumText()
public void setDisplayChecksumText(boolean checksumText)
checksumText - new value of property checksumTextpublic java.lang.String getCode()
public void setCode(java.lang.String code)
code - the code to generatepublic abstract java.awt.geom.Dimension2D getBarcodeSize()
public abstract java.awt.Image createImageWithBarcode(java.awt.Color barColor,
java.awt.Color textColor)
Image with the barcode.
barColor - the color of the bars. It can be nulltextColor - the color of the text. It can be null
Imageprotected float getFontDescent(java.awt.Font font)
protected float getFontAscent(java.awt.Font font)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||