Package org.krysalis.barcode4j.output
Class AbstractXMLGeneratingCanvasProvider
java.lang.Object
org.krysalis.barcode4j.output.AbstractCanvasProvider
org.krysalis.barcode4j.output.AbstractXMLGeneratingCanvasProvider
- All Implemented Interfaces:
CanvasProvider
- Direct Known Subclasses:
AbstractSVGGeneratingCanvasProvider
Abstract base class that provides some commonly used methods for
generating XML representations of barcodes.
- Version:
- $Id: AbstractXMLGeneratingCanvasProvider.java,v 1.3 2006-11-07 16:43:37 jmaerki Exp $
- Author:
- Jeremias Maerki
-
Field Summary
Fields inherited from class org.krysalis.barcode4j.output.AbstractCanvasProvider
bardim -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddUnit(double value) Formats a value and adds the unit specifier at the end.protected DecimalFormatReturns the DecimalFormat instance to use internally to format numbers.Methods inherited from class org.krysalis.barcode4j.output.AbstractCanvasProvider
deviceCenteredText, deviceJustifiedText, establishDimensions, getDimensions, getOrientationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.krysalis.barcode4j.output.CanvasProvider
deviceFillRect, deviceText
-
Constructor Details
-
AbstractXMLGeneratingCanvasProvider
public AbstractXMLGeneratingCanvasProvider(int orientation)
-
-
Method Details
-
getDecimalFormat
Returns the DecimalFormat instance to use internally to format numbers.- Returns:
- a DecimalFormat instance
-
addUnit
Formats a value and adds the unit specifier at the end.- Parameters:
value- the value to format- Returns:
- the formatted value
-