com.bankframe.services.devices.SlipPrinter
Class SlipPrinter

java.lang.Object
  extended bycom.bankframe.services.devices.MCASerialPort
      extended bycom.bankframe.services.devices.SlipPrinter.SlipPrinter
All Implemented Interfaces:
javax.comm.CommPortOwnershipListener, java.util.EventListener, MCADevice, java.io.Serializable

public class SlipPrinter
extends MCASerialPort
implements java.io.Serializable

This class provides access to a Slip Printer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bankframe.services.devices.MCASerialPort
SERIALPORT_BAUD, SERIALPORT_COMMDRIVER, SERIALPORT_DATABITS, SERIALPORT_FLOWCONTROL, SERIALPORT_NAME, SERIALPORT_PARITY, SERIALPORT_STOPBITS
 
Fields inherited from interface javax.comm.CommPortOwnershipListener
PORT_OWNED, PORT_OWNERSHIP_REQUESTED, PORT_UNOWNED
 
Constructor Summary
SlipPrinter(java.lang.String deviceName)
          Constructor
 
Method Summary
 void addNExtraDotRows(int number)
          This method adds N ( where n = number) extra dot rows
 void carriageReturn()
          This method prints a carriage return
 void clearPrinter()
          This method clears the printer
 void closeForm()
          This method closes the form
 void feedNDotRows(int number)
          This method feeds N (where N=number) dot rows
 void feedNPrintLines(int number)
          This method feeds N (where N=number) print lines
 void fullKnifeCut()
          This method makes a full knife cut
 void generateTone()
          This method generates a tone
 void horizontalTab()
          This method makes a horizontal tab
 void lineFeed()
          This method makes a Line Feed
 void openFormSlipStation()
          This method opens a Form Slip Station
 void partialKnifeCut()
          This method makes a Partial knife cut
 void print()
          This method prints something
 void print(java.lang.String string)
          This method prints a string
 void printEjectSlip()
          This method prints Eject slip
 void setHorizontalTabPositions(int[] tabs)
          This method sets horizontal Tab Positions
 void test()
          This method prints test information to printer
 
Methods inherited from class com.bankframe.services.devices.MCASerialPort
available, close, disableNotifications, disableReceiveFraming, disableReceiveThreshold, disableReceiveTimeout, enableNotifications, enableReceiveFraming, enableReceiveThreshold, enableReceiveTimeout, getBaudRate, getBufferedInputStream, getDataBits, getDeviceName, getFlowControlMode, getInputStream, getOutputStream, getParity, getReceivedData, getReceiveFramingByte, getReceiveThreshold, getReceiveTimeout, getStopBits, isCD, isCTS, isDSR, isDTR, isReceiveFramingEnabled, isReceiveThresholdEnabled, isReceiveTimeoutEnabled, isRI, isRTS, open, ownershipChange, read, read, restartInputThread, sendBreak, setDeviceName, setDTR, setFlowControlMode, setRcvFifoTrigger, setRTS, setSerialPortParams, toString, waitforDataAvailable, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SlipPrinter

public SlipPrinter(java.lang.String deviceName)
            throws DeviceException
Constructor

Parameters:
deviceName - The device name
Throws:
DeviceException - on error
Method Detail

addNExtraDotRows

public void addNExtraDotRows(int number)
                      throws DeviceException
This method adds N ( where n = number) extra dot rows

Parameters:
number - The number of rows to add
Throws:
DeviceException - on error

carriageReturn

public void carriageReturn()
                    throws DeviceException
This method prints a carriage return

Throws:
DeviceException - on error

clearPrinter

public void clearPrinter()
                  throws DeviceException
This method clears the printer

Throws:
DeviceException - on error

closeForm

public void closeForm()
               throws DeviceException
This method closes the form

Throws:
DeviceException - on error

feedNDotRows

public void feedNDotRows(int number)
                  throws DeviceException
This method feeds N (where N=number) dot rows

Parameters:
number - The number of rows
Throws:
DeviceException - on error

feedNPrintLines

public void feedNPrintLines(int number)
                     throws DeviceException
This method feeds N (where N=number) print lines

Parameters:
number - The number of lines
Throws:
DeviceException - on error

fullKnifeCut

public void fullKnifeCut()
                  throws DeviceException
This method makes a full knife cut

Throws:
DeviceException - on error

generateTone

public void generateTone()
                  throws DeviceException
This method generates a tone

Throws:
DeviceException - on error

horizontalTab

public void horizontalTab()
                   throws DeviceException
This method makes a horizontal tab

Throws:
DeviceException - on error

lineFeed

public void lineFeed()
              throws DeviceException
This method makes a Line Feed

Throws:
DeviceException - on error

test

public void test()
          throws DeviceException
This method prints test information to printer

Throws:
DeviceException - on error

openFormSlipStation

public void openFormSlipStation()
                         throws DeviceException
This method opens a Form Slip Station

Throws:
DeviceException - on error

partialKnifeCut

public void partialKnifeCut()
                     throws DeviceException
This method makes a Partial knife cut

Throws:
DeviceException - on error

print

public void print()
           throws DeviceException
This method prints something

Throws:
DeviceException - on error

printEjectSlip

public void printEjectSlip()
                    throws DeviceException
This method prints Eject slip

Throws:
DeviceException - on error

setHorizontalTabPositions

public void setHorizontalTabPositions(int[] tabs)
                               throws DeviceException
This method sets horizontal Tab Positions

Parameters:
tabs - The tab positions (expressed in character indices)
Throws:
DeviceException - on error

print

public void print(java.lang.String string)
           throws DeviceException
This method prints a string

Parameters:
string - The String to print
Throws:
DeviceException - on error


Copyright © 2005, 2007, Oracle. All rights reserved.