com.toshiba.tgcsapi
Class TGCSMPOS4610Printer

java.lang.Object
  extended by com.toshiba.tgcsapi.TGCSMPOSDevice
      extended by com.toshiba.tgcsapi.TGCSMPOS4610Printer

public class TGCSMPOS4610Printer
extends TGCSMPOSDevice


Constructor Summary
TGCSMPOS4610Printer()
           
 
Method Summary
 void beginInsertion(int timeout)
          Initiate document insert on the printer.
 void beginRemoval(int timeout)
          Initiate the removal of the document from the printer
 void changePrintSide(int side)
          Performs flip document on the DI station if it is necessary.
 void cutPaper(int percentage)
          Perform cutPaper() operation.
 void endInsertion()
          Terminate the wait-for-document mode and register the document.
 void endRemoval()
          Terminate the removal of document process.
 boolean getAsyncMode()
           
 boolean getCapSlpLeft90()
           
 boolean getCapSlpPresent()
           
 boolean getCapSlpRight90()
           
 boolean getCapSlpRotate180()
           
 int getCharacterSet()
           
 java.lang.String getCharacterSetList()
           
 boolean getCoverOpen()
           
 int getErrorLevel()
           
 boolean getFlagWhenIdle()
           
 int getMapMode()
           
 boolean getRecEmpty()
           
 int getRecLineChars()
           
 java.lang.String getRecLineCharsList()
           
 int getRecLineHeight()
           
 int getRecLineWidth()
           
 boolean getSlpEmpty()
           
 int getSlpLineChars()
           
 java.lang.String getSlpLineCharsList()
           
 int getSlpLineHeight()
           
 int getSlpLineSpacing()
           
 int getSlpPrintSide()
           
 void printBarCode(int station, java.lang.String data, int symbology, int height, int width, int alignment, int textPosition)
          Perform printBarCode operation as specified in the UPOS Specification.
 void printBitmap(int station, Bitmap bmp, int width, int alignment)
          Same as above except image is a Bitmap object instance.
 void printBitmap(int station, java.lang.String filename, int width, int alignment)
          printBitmap() operation with given filename.
 void printNormal(int station, java.lang.String data)
          Printnormal() operation.
 void rotatePrint(int station, int rotation)
          Perform rotate print operation.
 void setAsyncMode(boolean value)
          sets the AsyncMode value
 void setCharacterSet(int value)
          Sets the CharacterSet value
 void setFlagWhenIdle(boolean value)
          Sets FlagWhenIdle
 void setMapMode(int value)
          Sets MapMode value
 void setRecLineChars(int value)
          Sets RecLineChars value.
 void setRecLineHeight(int value)
          Sets RecLineHeight value.
 void setSlpLineChars(int value)
          Sets SlpLineChars value.
 void setSlpLineHeight(int value)
          Sets SlpLineHeight value
 void setSlpLineSpacing(int value)
          Sets SlpLineSpacing value.
 void transactionPrint(int station, int control)
          Perform transactionPrint() operation based on settings in control attribute.
 
Methods inherited from class com.toshiba.tgcsapi.TGCSMPOSDevice
addPOSEventListener, claim, clearInput, clearOutput, close, directIO, getClaimed, getDataEventEnabled, getDeviceEnabled, getDevices, getOutputID, getPhysicalDeviceName, getVersion, handleEvent, loadConfigurationFile, loadMICRExceptionFile, open, release, removePOSEventListener, setDataEventEnabled, setDeviceEnabled, unregisterAllEventHandlers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGCSMPOS4610Printer

public TGCSMPOS4610Printer()
Method Detail

cutPaper

public void cutPaper(int percentage)
              throws TGCSMPOSException
Perform cutPaper() operation. Refer to UPOS Specification for more information.

Throws:
TGCSMPOSException

printBarCode

public void printBarCode(int station,
                         java.lang.String data,
                         int symbology,
                         int height,
                         int width,
                         int alignment,
                         int textPosition)
                  throws TGCSMPOSException
Perform printBarCode operation as specified in the UPOS Specification. For predefined constants of the attributes, refer to POS.java for more information.

Throws:
TGCSMPOSException

printNormal

public void printNormal(int station,
                        java.lang.String data)
                 throws TGCSMPOSException
Printnormal() operation. Refer to UPOS Specificaiton for more information.

Throws:
TGCSMPOSException

printBitmap

public void printBitmap(int station,
                        java.lang.String filename,
                        int width,
                        int alignment)
                 throws java.io.IOException,
                        TGCSMPOSException
printBitmap() operation with given filename. Should the file not be accessible, an IOException will be thrown. This method performs dithering and data conversion to suit the printer's 1BPP format. NOTE: - The maximum size that is supported by the printer is 64KB in 1BPP format. - Dimension restraints supported by the printer applies. Refer to Printer Programming Interface Specification for more information.

Throws:
java.io.IOException
TGCSMPOSException

printBitmap

public void printBitmap(int station,
                        Bitmap bmp,
                        int width,
                        int alignment)
                 throws TGCSMPOSException
Same as above except image is a Bitmap object instance.

Throws:
TGCSMPOSException

transactionPrint

public void transactionPrint(int station,
                             int control)
                      throws TGCSMPOSException
Perform transactionPrint() operation based on settings in control attribute. Refer to UPOS Specification for more information.

Throws:
TGCSMPOSException

rotatePrint

public void rotatePrint(int station,
                        int rotation)
                 throws TGCSMPOSException
Perform rotate print operation. Refer to UPOS Specification for more more information.

Throws:
TGCSMPOSException

beginInsertion

public void beginInsertion(int timeout)
                    throws TGCSMPOSException
Initiate document insert on the printer.

Throws:
TGCSMPOSException

endInsertion

public void endInsertion()
                  throws TGCSMPOSException
Terminate the wait-for-document mode and register the document.

Throws:
TGCSMPOSException

beginRemoval

public void beginRemoval(int timeout)
                  throws TGCSMPOSException
Initiate the removal of the document from the printer

Throws:
TGCSMPOSException

endRemoval

public void endRemoval()
                throws TGCSMPOSException
Terminate the removal of document process.

Throws:
TGCSMPOSException

changePrintSide

public void changePrintSide(int side)
                     throws TGCSMPOSException
Performs flip document on the DI station if it is necessary. Should the virtual tracking of the correspond to the selected side, no operation will occur. Refer to UPOS Specification for more information.

Throws:
TGCSMPOSException

getAsyncMode

public boolean getAsyncMode()
                     throws TGCSMPOSException
Returns:
AsyncMode
Throws:
TGCSMPOSException

setAsyncMode

public void setAsyncMode(boolean value)
                  throws TGCSMPOSException
sets the AsyncMode value

Parameters:
value -
Throws:
TGCSMPOSException

getCapSlpLeft90

public boolean getCapSlpLeft90()
                        throws TGCSMPOSException
Returns:
CapSlpLeft90
Throws:
TGCSMPOSException

getCapSlpPresent

public boolean getCapSlpPresent()
                         throws TGCSMPOSException
Returns:
CapSlpPresent
Throws:
TGCSMPOSException

getCapSlpRight90

public boolean getCapSlpRight90()
                         throws TGCSMPOSException
Returns:
CapSlpRight90
Throws:
TGCSMPOSException

getCapSlpRotate180

public boolean getCapSlpRotate180()
                           throws TGCSMPOSException
Returns:
CapSlpRotate180
Throws:
TGCSMPOSException

getCoverOpen

public boolean getCoverOpen()
                     throws TGCSMPOSException
Returns:
CoverOpen
Throws:
TGCSMPOSException

getErrorLevel

public int getErrorLevel()
                  throws TGCSMPOSException
Returns:
ErrorLevel
Throws:
TGCSMPOSException

getCharacterSet

public int getCharacterSet()
                    throws TGCSMPOSException
Returns:
CharacterSet
Throws:
TGCSMPOSException

setCharacterSet

public void setCharacterSet(int value)
                     throws TGCSMPOSException
Sets the CharacterSet value

Parameters:
value -
Throws:
TGCSMPOSException

getCharacterSetList

public java.lang.String getCharacterSetList()
                                     throws TGCSMPOSException
Returns:
CharacterSetList
Throws:
TGCSMPOSException

getFlagWhenIdle

public boolean getFlagWhenIdle()
                        throws TGCSMPOSException
Returns:
FlagWhenIdle
Throws:
TGCSMPOSException

setFlagWhenIdle

public void setFlagWhenIdle(boolean value)
                     throws TGCSMPOSException
Sets FlagWhenIdle

Parameters:
value -
Throws:
TGCSMPOSException

getMapMode

public int getMapMode()
               throws TGCSMPOSException
Returns:
MapMode
Throws:
TGCSMPOSException

setMapMode

public void setMapMode(int value)
                throws TGCSMPOSException
Sets MapMode value

Parameters:
value -
Throws:
TGCSMPOSException

getRecLineChars

public int getRecLineChars()
                    throws TGCSMPOSException
Returns:
RecLineChars
Throws:
TGCSMPOSException

setRecLineChars

public void setRecLineChars(int value)
                     throws TGCSMPOSException
Sets RecLineChars value.

Parameters:
value -
Throws:
TGCSMPOSException

getRecLineCharsList

public java.lang.String getRecLineCharsList()
                                     throws TGCSMPOSException
Returns:
RecLineCharsList
Throws:
TGCSMPOSException

getRecLineHeight

public int getRecLineHeight()
                     throws TGCSMPOSException
Returns:
RecLineHeight
Throws:
TGCSMPOSException

setRecLineHeight

public void setRecLineHeight(int value)
                      throws TGCSMPOSException
Sets RecLineHeight value.

Parameters:
value -
Throws:
TGCSMPOSException

getRecLineWidth

public int getRecLineWidth()
                    throws TGCSMPOSException
Returns:
RecLineWidth
Throws:
TGCSMPOSException

getRecEmpty

public boolean getRecEmpty()
                    throws TGCSMPOSException
Returns:
RecEmpty
Throws:
TGCSMPOSException

getSlpLineCharsList

public java.lang.String getSlpLineCharsList()
                                     throws TGCSMPOSException
Returns:
SlpLineCharsList
Throws:
TGCSMPOSException

getSlpLineChars

public int getSlpLineChars()
                    throws TGCSMPOSException
Returns:
SlpLineChars
Throws:
TGCSMPOSException

setSlpLineChars

public void setSlpLineChars(int value)
                     throws TGCSMPOSException
Sets SlpLineChars value.

Parameters:
value -
Throws:
TGCSMPOSException

getSlpLineHeight

public int getSlpLineHeight()
                     throws TGCSMPOSException
Returns:
SlpLineHeight
Throws:
TGCSMPOSException

setSlpLineHeight

public void setSlpLineHeight(int value)
                      throws TGCSMPOSException
Sets SlpLineHeight value

Parameters:
value -
Throws:
TGCSMPOSException

getSlpLineSpacing

public int getSlpLineSpacing()
                      throws TGCSMPOSException
Returns:
SlpLineSpacing
Throws:
TGCSMPOSException

setSlpLineSpacing

public void setSlpLineSpacing(int value)
                       throws TGCSMPOSException
Sets SlpLineSpacing value.

Parameters:
value -
Throws:
TGCSMPOSException

getSlpPrintSide

public int getSlpPrintSide()
                    throws TGCSMPOSException
Returns:
SlpPrintSide
Throws:
TGCSMPOSException

getSlpEmpty

public boolean getSlpEmpty()
                    throws TGCSMPOSException
Returns:
SlpEmpty
Throws:
TGCSMPOSException