barcode4j 2.1.0

org.krysalis.barcode4j.image.loader
Class ImageBarcode

java.lang.Object
  extended by org.apache.xmlgraphics.image.loader.impl.AbstractImage
      extended by org.krysalis.barcode4j.image.loader.ImageBarcode
All Implemented Interfaces:
org.apache.xmlgraphics.image.loader.Image

public class ImageBarcode
extends org.apache.xmlgraphics.image.loader.impl.AbstractImage

Image implementation for barcodes. It implements the Image interface from Apache XML Graphic Commons.


Field Summary
static org.apache.xmlgraphics.image.loader.ImageFlavor BARCODE_IMAGE_FLAVOR
          Image flavor for Barcode4J barcodes
 
Constructor Summary
ImageBarcode(org.apache.xmlgraphics.image.loader.ImageInfo info, org.apache.avalon.framework.configuration.Configuration barcodeXML, BarcodeDimension bardim)
          Main constructor.
 
Method Summary
 BarcodeDimension getBarcodeDimension()
          Returns the barcode dimensions.
 org.apache.avalon.framework.configuration.Configuration getBarcodeXML()
          Returns the barcode XML as Avalon Configuration object.
 org.apache.xmlgraphics.image.loader.ImageFlavor getFlavor()
          
 java.lang.String getMessage()
          Returns the barcode message.
 boolean isCacheable()
          
 
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImage
getColorSpace, getICCProfile, getInfo, getSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BARCODE_IMAGE_FLAVOR

public static final org.apache.xmlgraphics.image.loader.ImageFlavor BARCODE_IMAGE_FLAVOR
Image flavor for Barcode4J barcodes

Constructor Detail

ImageBarcode

public ImageBarcode(org.apache.xmlgraphics.image.loader.ImageInfo info,
                    org.apache.avalon.framework.configuration.Configuration barcodeXML,
                    BarcodeDimension bardim)
Main constructor.

Parameters:
info - the image info object
barcodeXML - the Configuration object containing the barcode XML
bardim - the barcode dimensions
Method Detail

getFlavor

public org.apache.xmlgraphics.image.loader.ImageFlavor getFlavor()


isCacheable

public boolean isCacheable()


getBarcodeXML

public org.apache.avalon.framework.configuration.Configuration getBarcodeXML()
Returns the barcode XML as Avalon Configuration object.

Returns:
the barcode XML

getBarcodeDimension

public BarcodeDimension getBarcodeDimension()
Returns the barcode dimensions.

Returns:
the barcode dimensions

getMessage

public java.lang.String getMessage()
                            throws org.apache.avalon.framework.configuration.ConfigurationException
Returns the barcode message.

Returns:
the message
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - if an error occurs extracting the message from the configuration object

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.