net.sourceforge.barbecue
Class BlankModule
java.lang.Object
net.sourceforge.barbecue.Module
net.sourceforge.barbecue.BlankModule
- public class BlankModule
- extends Module
Specific implementation of Module that provides blank space. This is used to 'draw'
barcode quiet zones.
Note: You should not instantiate this class directly.
- Author:
- Ian Bourke
Fields inherited from class net.sourceforge.barbecue.Module |
bars |
Constructor Summary |
BlankModule(int width)
Constructs a new BlankModule with the specified width. |
Method Summary |
protected double |
draw(AbstractOutput output,
double x,
double y)
Draws the module to a barcode output. |
java.lang.String |
getSymbol()
Returns the symbol that this module encodes. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BlankModule
public BlankModule(int width)
- Constructs a new BlankModule with the specified width.
- Parameters:
width
- The width of the module in bar widths.
draw
protected double draw(AbstractOutput output,
double x,
double y)
- Draws the module to a barcode output.
- Overrides:
draw
in class Module
- Parameters:
output
- The output to draw tox
- The starting X co-ordinatey
- The starting Y co-ordinate
- Returns:
- The total width drawn
getSymbol
public java.lang.String getSymbol()
- Returns the symbol that this module encodes.
- Overrides:
getSymbol
in class Module
- Returns:
- A blank string