barcode4j 2.1.0

org.krysalis.barcode4j
Class TextAlignment

java.lang.Object
  extended by org.krysalis.barcode4j.TextAlignment

public class TextAlignment
extends java.lang.Object

Enumeration for horizontal alignment of the human readable part of a barcode.

Version:
$Id: TextAlignment.java,v 1.1 2008/05/13 13:00:45 jmaerki Exp $
Author:
Jeremias Maerki

Field Summary
static TextAlignment TA_CENTER
          The human-readable part is centered.
static TextAlignment TA_JUSTIFY
          The human-readable part is justified.
static TextAlignment TA_LEFT
          The human-readable part is left-aligned.
static TextAlignment TA_RIGHT
          The human-readable part is right-aligned.
 
Constructor Summary
protected TextAlignment(java.lang.String name)
          Creates a new TextAlignment instance.
 
Method Summary
static TextAlignment byName(java.lang.String name)
          Returns a TextAlignment instance by name.
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TA_LEFT

public static final TextAlignment TA_LEFT
The human-readable part is left-aligned.


TA_CENTER

public static final TextAlignment TA_CENTER
The human-readable part is centered.


TA_RIGHT

public static final TextAlignment TA_RIGHT
The human-readable part is right-aligned.


TA_JUSTIFY

public static final TextAlignment TA_JUSTIFY
The human-readable part is justified.

Constructor Detail

TextAlignment

protected TextAlignment(java.lang.String name)
Creates a new TextAlignment instance.

Parameters:
name - the name for the instance
Method Detail

getName

public java.lang.String getName()
Returns:
the name of the instance.

byName

public static TextAlignment byName(java.lang.String name)
Returns a TextAlignment instance by name.

Parameters:
name - the name of the instance
Returns:
the requested instance

barcode4j 2.1.0

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