barcode4j 2.1.0

org.krysalis.barcode4j.output.svg
Class AbstractSVGGeneratingCanvasProvider

java.lang.Object
  extended by org.krysalis.barcode4j.output.AbstractCanvasProvider
      extended by org.krysalis.barcode4j.output.AbstractXMLGeneratingCanvasProvider
          extended by org.krysalis.barcode4j.output.svg.AbstractSVGGeneratingCanvasProvider
All Implemented Interfaces:
CanvasProvider
Direct Known Subclasses:
JDOMSVGCanvasProvider, SVGCanvasProvider

public abstract class AbstractSVGGeneratingCanvasProvider
extends AbstractXMLGeneratingCanvasProvider

Abstract base class for implementations that generate SVG.

Version:
$Id: AbstractSVGGeneratingCanvasProvider.java,v 1.3 2006/11/07 16:43:36 jmaerki Exp $
Author:
Jeremias Maerki

Field Summary
static java.lang.String SVG_NAMESPACE
          the SVG namespace: http://www.w3.org/2000/svg
 
Fields inherited from class org.krysalis.barcode4j.output.AbstractCanvasProvider
bardim
 
Constructor Summary
AbstractSVGGeneratingCanvasProvider(boolean useNamespace, int orientation)
          Creates a new AbstractSVGCanvasProvider.
AbstractSVGGeneratingCanvasProvider(boolean useNamespace, java.lang.String namespacePrefix, int orientation)
          Creates a new AbstractSVGCanvasProvider.
AbstractSVGGeneratingCanvasProvider(int orientation)
          Creates a new AbstractSVGCanvasProvider with default settings (with namespaces, but without namespace prefix).
AbstractSVGGeneratingCanvasProvider(java.lang.String namespacePrefix, int orientation)
          Creates a new AbstractSVGCanvasProvider with namespaces enabled.
 
Method Summary
 java.lang.String getNamespacePrefix()
          Returns the namespace prefix
protected  java.lang.String getQualifiedName(java.lang.String localName)
          Constructs a fully qualified element name based on the namespace settings.
 boolean isNamespaceEnabled()
          Indicates whether namespaces are enabled.
 
Methods inherited from class org.krysalis.barcode4j.output.AbstractXMLGeneratingCanvasProvider
addUnit, getDecimalFormat
 
Methods inherited from class org.krysalis.barcode4j.output.AbstractCanvasProvider
deviceCenteredText, deviceJustifiedText, establishDimensions, getDimensions, getOrientation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.krysalis.barcode4j.output.CanvasProvider
deviceFillRect, deviceText
 

Field Detail

SVG_NAMESPACE

public static final java.lang.String SVG_NAMESPACE
the SVG namespace: http://www.w3.org/2000/svg

See Also:
Constant Field Values
Constructor Detail

AbstractSVGGeneratingCanvasProvider

public AbstractSVGGeneratingCanvasProvider(boolean useNamespace,
                                           java.lang.String namespacePrefix,
                                           int orientation)
                                    throws BarcodeCanvasSetupException
Creates a new AbstractSVGCanvasProvider.

Parameters:
useNamespace - Controls whether namespaces should be used
namespacePrefix - the namespace prefix to use, null for no prefix
Throws:
BarcodeCanvasSetupException - if setting up the provider fails

AbstractSVGGeneratingCanvasProvider

public AbstractSVGGeneratingCanvasProvider(java.lang.String namespacePrefix,
                                           int orientation)
                                    throws BarcodeCanvasSetupException
Creates a new AbstractSVGCanvasProvider with namespaces enabled.

Parameters:
namespacePrefix - the namespace prefix to use, null for no prefix
Throws:
BarcodeCanvasSetupException - if setting up the provider fails

AbstractSVGGeneratingCanvasProvider

public AbstractSVGGeneratingCanvasProvider(boolean useNamespace,
                                           int orientation)
                                    throws BarcodeCanvasSetupException
Creates a new AbstractSVGCanvasProvider.

Parameters:
useNamespace - Controls whether namespaces should be used
Throws:
BarcodeCanvasSetupException - if setting up the provider fails

AbstractSVGGeneratingCanvasProvider

public AbstractSVGGeneratingCanvasProvider(int orientation)
                                    throws BarcodeCanvasSetupException
Creates a new AbstractSVGCanvasProvider with default settings (with namespaces, but without namespace prefix).

Throws:
BarcodeCanvasSetupException - if setting up the provider fails
Method Detail

isNamespaceEnabled

public boolean isNamespaceEnabled()
Indicates whether namespaces are enabled.

Returns:
true if namespaces are enabled

getNamespacePrefix

public java.lang.String getNamespacePrefix()
Returns the namespace prefix

Returns:
the namespace prefix (may be null)

getQualifiedName

protected java.lang.String getQualifiedName(java.lang.String localName)
Constructs a fully qualified element name based on the namespace settings.

Parameters:
localName - the local name
Returns:
the fully qualified name

barcode4j 2.1.0

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