|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--com.ibm.retail.saf.provider.POSInfoImpl | +--com.ibm.retail.saf.provider.Default4690PrintLine
Base implementation of PrintLine
Field Summary | |
---|---|
(package private) boolean |
centered
|
(package private) boolean |
cut
|
(package private) int |
font
|
(package private) int |
lineFeedCount
|
(package private) java.lang.String |
rawText
|
(package private) java.lang.String |
text
|
Fields inherited from class java.util.HashMap |
---|
|
Fields inherited from class java.util.AbstractMap |
---|
|
Fields inherited from interface com.ibm.retail.saf.provider.PrintLine |
---|
FONT_BOLD, FONT_DOUBLE_WIDE, FONT_DOUBLE_WIDE_BOLD, FONT_DOUBLE_WIDE_DOUBLE_HIGH, FONT_DOUBLE_WIDE_DOUBLE_HIGH_BOLD, FONT_MEDIUM, FONT_MEDIUM_WIDE_BOLD, FONT_NORMAL |
Constructor Summary | |
---|---|
Default4690PrintLine()
Constructor |
|
Default4690PrintLine(java.lang.String pRawText,
java.lang.String pText,
int pFont,
boolean pCentered,
int pLineFeedCount)
Constructor |
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 |
void |
setCentered(boolean b)
Set the centered attribute |
void |
setCut(boolean b)
Set true if this is a paper cut. |
void |
setFont(int i)
Set the font atribute. |
void |
setLineFeedCount(int i)
Set the line feed count |
void |
setRawText(java.lang.String string)
Set the raw text. |
void |
setText(java.lang.String string)
Set the plain text. |
Methods inherited from class com.ibm.retail.saf.provider.POSInfoImpl |
---|
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.retail.saf.provider.POSInfo |
---|
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
java.lang.String rawText
java.lang.String text
int font
boolean centered
int lineFeedCount
boolean cut
Constructor Detail |
public Default4690PrintLine()
public Default4690PrintLine(java.lang.String pRawText, java.lang.String pText, int pFont, boolean pCentered, int pLineFeedCount)
pRawText
- raw textpText
- formatted textpFont
- fontpCentered
- centered attributepLineFeedCount
- number of line feedsMethod Detail |
public boolean isCentered()
PrintLine
isCentered
in interface PrintLine
public int getFont()
PrintLine
getFont
in interface PrintLine
public int getLineFeedCount()
PrintLine
getLineFeedCount
in interface PrintLine
public java.lang.String getRawText()
PrintLine
getRawText
in interface PrintLine
public java.lang.String getText()
PrintLine
getText
in interface PrintLine
public boolean isCut()
PrintLine
isCut
in interface PrintLine
public void setCentered(boolean b)
b
- true if centeredpublic void setFont(int i)
i
- fontpublic void setLineFeedCount(int i)
i
- number of line feedspublic void setRawText(java.lang.String string)
string
- raw text of the print linepublic void setText(java.lang.String string)
string
- plain textpublic void setCut(boolean b)
b
- true if paper cut
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |