com.ibm.retail.saf.provider
Class Default4690PrintLine

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.ibm.retail.saf.provider.POSInfoImpl
                    |
                    +--com.ibm.retail.saf.provider.Default4690PrintLine
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, POSInfo, PrintLine, java.io.Serializable

public class Default4690PrintLine
extends POSInfoImpl
implements PrintLine

Base implementation of PrintLine

See Also:
Serialized Form

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

rawText

java.lang.String rawText

text

java.lang.String text

font

int font

centered

boolean centered

lineFeedCount

int lineFeedCount

cut

boolean cut
Constructor Detail

Default4690PrintLine

public Default4690PrintLine()
Constructor


Default4690PrintLine

public Default4690PrintLine(java.lang.String pRawText,
                            java.lang.String pText,
                            int pFont,
                            boolean pCentered,
                            int pLineFeedCount)
Constructor

Parameters:
pRawText - raw text
pText - formatted text
pFont - font
pCentered - centered attribute
pLineFeedCount - number of line feeds
Method Detail

isCentered

public boolean isCentered()
Description copied from interface: PrintLine
Returns a boolean that determines whether line should be centered

Specified by:
isCentered in interface PrintLine
Returns:
boolean

getFont

public int getFont()
Description copied from interface: PrintLine
Returns a font value

Specified by:
getFont in interface PrintLine
Returns:
integer representing font to use for the line

getLineFeedCount

public int getLineFeedCount()
Description copied from interface: PrintLine
Returns a count of the number of line feeds to insert after line

Specified by:
getLineFeedCount in interface PrintLine
Returns:
integer representing line feed count

getRawText

public java.lang.String getRawText()
Description copied from interface: PrintLine
Returns a text string containing embedded print control characters used by POS

Specified by:
getRawText in interface PrintLine
Returns:
raw print line string

getText

public java.lang.String getText()
Description copied from interface: PrintLine
Returns a filtered text string containing just printable text

Specified by:
getText in interface PrintLine
Returns:
print line string

isCut

public boolean isCut()
Description copied from interface: PrintLine
Returns a boolean that determines whether a paper cut should be done after line

Specified by:
isCut in interface PrintLine
Returns:
boolean

setCentered

public void setCentered(boolean b)
Set the centered attribute

Parameters:
b - true if centered

setFont

public void setFont(int i)
Set the font atribute.

Parameters:
i - font

setLineFeedCount

public void setLineFeedCount(int i)
Set the line feed count

Parameters:
i - number of line feeds

setRawText

public void setRawText(java.lang.String string)
Set the raw text.

Parameters:
string - raw text of the print line

setText

public void setText(java.lang.String string)
Set the plain text.

Parameters:
string - plain text

setCut

public void setCut(boolean b)
Set true if this is a paper cut.

Parameters:
b - true if paper cut