|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PrintLine provides access to the line that was sent to the point-of-sale printer by the POS application.
The line is available as filtered text along with format getter methods andalso as raw text with the printer control characters embedded in the string.
The filtered text string contains print line text including the spacing and blank lines, but printer attributes such as emphasized or double-high text are removed from the string and made available in getter methods.
The raw text string contains an embedded representation of the printer control characters (escape sequences) that are used by the POS application to indicate text attributes such as bold text and font sizes.
Field Summary | |
---|---|
static int |
FONT_BOLD
|
static int |
FONT_DOUBLE_WIDE
|
static int |
FONT_DOUBLE_WIDE_BOLD
|
static int |
FONT_DOUBLE_WIDE_DOUBLE_HIGH
|
static int |
FONT_DOUBLE_WIDE_DOUBLE_HIGH_BOLD
|
static int |
FONT_MEDIUM
|
static int |
FONT_MEDIUM_WIDE_BOLD
|
static int |
FONT_NORMAL
|
Method Summary | |
---|---|
int |
getFont()
Returns a font value |
int |
getLineFeedCount()
Returns a count of the number of line feeds to insert after line |
java.lang.String |
getRawText()
Returns a text string containing embedded print control characters used by POS |
java.lang.String |
getText()
Returns a filtered text string containing just printable text |
boolean |
isCentered()
Returns a boolean that determines whether line should be centered |
boolean |
isCut()
Returns a boolean that determines whether a paper cut should be done after line |
Methods inherited from interface com.ibm.retail.saf.provider.POSInfo |
---|
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute |
Field Detail |
public static final int FONT_NORMAL
public static final int FONT_MEDIUM
public static final int FONT_DOUBLE_WIDE
public static final int FONT_DOUBLE_WIDE_DOUBLE_HIGH
public static final int FONT_BOLD
public static final int FONT_MEDIUM_WIDE_BOLD
public static final int FONT_DOUBLE_WIDE_BOLD
public static final int FONT_DOUBLE_WIDE_DOUBLE_HIGH_BOLD
Method Detail |
public java.lang.String getText()
public int getFont()
public boolean isCentered()
public int getLineFeedCount()
public java.lang.String getRawText()
public boolean isCut()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |