Package org.krysalis.barcode4j
Class TextAlignment
java.lang.Object
org.krysalis.barcode4j.TextAlignment
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
FieldsModifier and TypeFieldDescriptionstatic final TextAlignmentThe human-readable part is centered.static final TextAlignmentThe human-readable part is justified.static final TextAlignmentThe human-readable part is left-aligned.static final TextAlignmentThe human-readable part is right-aligned. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTextAlignment(String name) Creates a new TextAlignment instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextAlignmentReturns a TextAlignment instance by name.getName()
-
Field Details
-
TA_LEFT
The human-readable part is left-aligned. -
TA_CENTER
The human-readable part is centered. -
TA_RIGHT
The human-readable part is right-aligned. -
TA_JUSTIFY
The human-readable part is justified.
-
-
Constructor Details
-
TextAlignment
Creates a new TextAlignment instance.- Parameters:
name- the name for the instance
-
-
Method Details
-
byName
Returns a TextAlignment instance by name.- Parameters:
name- the name of the instance- Returns:
- the requested instance
-
getName
- Returns:
- the name of the instance.
-