org.hcilab.btprinter.platform.j2se
Class ImageHandlerImpl

java.lang.Object
  extended by org.hcilab.btprinter.abstractionlayer.ImageHandler
      extended by org.hcilab.btprinter.platform.j2se.ImageHandlerImpl

public class ImageHandlerImpl
extends org.hcilab.btprinter.abstractionlayer.ImageHandler

Implementation for the J2SE using a buffered image as image object.

Version:
1.0.0
Author:
Dominik Schmidt

Field Summary
 
Fields inherited from class org.hcilab.btprinter.abstractionlayer.ImageHandler
MAX_IMG_HEIGHT, MAX_IMG_WIDTH
 
Constructor Summary
ImageHandlerImpl()
           
 
Method Summary
 int getLineCount()
           
 byte[] getNextLine()
           
 boolean hasNextLine()
           
 void initialize(java.lang.Object imgObject)
           
 void setLogHandler(org.hcilab.btprinter.abstractionlayer.LogHandler logHandler)
           
 
Methods inherited from class org.hcilab.btprinter.abstractionlayer.ImageHandler
compressImageLine, processImageLine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageHandlerImpl

public ImageHandlerImpl()
Method Detail

getLineCount

public int getLineCount()
                 throws java.lang.IllegalStateException
Specified by:
getLineCount in class org.hcilab.btprinter.abstractionlayer.ImageHandler
Throws:
java.lang.IllegalStateException

getNextLine

public byte[] getNextLine()
                   throws java.lang.IllegalStateException,
                          java.util.NoSuchElementException
Specified by:
getNextLine in class org.hcilab.btprinter.abstractionlayer.ImageHandler
Throws:
java.lang.IllegalStateException
java.util.NoSuchElementException

hasNextLine

public boolean hasNextLine()
                    throws java.lang.IllegalStateException
Specified by:
hasNextLine in class org.hcilab.btprinter.abstractionlayer.ImageHandler
Throws:
java.lang.IllegalStateException

initialize

public void initialize(java.lang.Object imgObject)
                throws java.lang.IllegalArgumentException
Specified by:
initialize in class org.hcilab.btprinter.abstractionlayer.ImageHandler
Throws:
java.lang.IllegalArgumentException

setLogHandler

public void setLogHandler(org.hcilab.btprinter.abstractionlayer.LogHandler logHandler)
Specified by:
setLogHandler in class org.hcilab.btprinter.abstractionlayer.ImageHandler