|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.painter.AbstractBarcodePresenter
public abstract class AbstractBarcodePresenter
This is the base class for all barcode presenter. It provides logic for drawing a string using a barcode encoding.
| Constructor Summary | |
|---|---|
protected |
AbstractBarcodePresenter()
Create a presenter and set the defaults. |
| Method Summary | |
|---|---|
protected abstract net.sourceforge.barbecue.Barcode |
createBarcode(String str)
Create a barcode object. |
Color |
getBackground()
Get the background. |
protected double |
getBarcodeSizeRate()
There is some bugs aroung barbecue barcode generator which will not return correct prefer width for small width setting. |
double |
getBarHeight()
Get the bar height. |
double |
getBarWidth()
Get the bar width. |
Dimension |
getPreferredSize(Object v)
Calculate the preferred size of the object representation. |
int |
getResolution()
Get the ouput resolution. |
boolean |
isFill()
Check if this presenter should always fill the entire area of a cell. |
boolean |
isPresenterOf(Class type)
Check if the presenter can handle this type of objects. |
boolean |
isPresenterOf(Object obj)
Check if the presenter can handle this particular object. |
boolean |
isRawDataRequired()
Determine if this Presenter requires raw (unformatted) data. |
void |
paint(Graphics g,
Object v,
int x,
int y,
int w,
int h)
Paint the value. |
void |
setBackground(Color bg)
Set the background. |
void |
setBarHeight(double barHeight)
Sets the desired height for the bars in the barcode (in pixels). |
void |
setBarWidth(double barWidth)
Sets the desired bar width for the barcode. |
void |
setFont(Font font)
Set the font to use for this presenter. |
void |
setResolution(int resolution)
Sets the desired output resolution for the barcode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface inetsoft.report.Presenter |
|---|
getDisplayName |
| Constructor Detail |
|---|
protected AbstractBarcodePresenter()
| Method Detail |
|---|
protected abstract net.sourceforge.barbecue.Barcode createBarcode(String str)
public void setBarWidth(double barWidth)
barWidth - The desired width of the thinnest bar in pixelspublic double getBarWidth()
public void setBarHeight(double barHeight)
barHeight - The desired height of the barcode bars in pixelspublic double getBarHeight()
public void setResolution(int resolution)
resolution - The desired output resolution (in dots per inch)public int getResolution()
public void paint(Graphics g,
Object v,
int x,
int y,
int w,
int h)
paint in interface Presenterg - graphical context.v - object value.x - x coordinate of the left edge of the paint area.y - y coordinate of the upper edge of the paint area.w - area width.h - area height.public Dimension getPreferredSize(Object v)
getPreferredSize in interface Presenterv - object value.
public boolean isPresenterOf(Class type)
isPresenterOf in interface Presentertype - object type.
public boolean isPresenterOf(Object obj)
if(type == null) {
return false;
}
return isPresenterOf(obj.getClass());
isPresenterOf in interface Presenterobj - object type.
public boolean isFill()
isFill in interface Presenterpublic void setFont(Font font)
setFont in interface Presenterpublic boolean isRawDataRequired()
isRawDataRequired in interface Presentertrue.protected double getBarcodeSizeRate()
public void setBackground(Color bg)
setBackground in interface Presenterpublic Color getBackground()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||