Class TextAlignment

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

public class TextAlignment extends 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 Details

    • 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 Details

    • TextAlignment

      protected TextAlignment(String name)
      Creates a new TextAlignment instance.
      Parameters:
      name - the name for the instance
  • Method Details

    • byName

      public static TextAlignment byName(String name)
      Returns a TextAlignment instance by name.
      Parameters:
      name - the name of the instance
      Returns:
      the requested instance
    • getName

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