Class ImageScannerDataEvent

java.lang.Object
java.util.EventObject
jpos.events.JposEvent
jpos.events.DataEvent
de.gmxhome.conrad.jpos.jpos_base.JposDataEvent
de.gmxhome.conrad.jpos.jpos_base.imagescanner.ImageScannerDataEvent
All Implemented Interfaces:
Serializable

public class ImageScannerDataEvent extends JposDataEvent
Data event implementation for ImageScanner devices.
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    New contents of BitsPerPixel property.
    byte[]
    New contents of FrameData property.
    int
    New contents of FrameType property.
    int
    New contents of ImageHeight property.
    int
    New contents of ImageLength property.
    int
    New contents of ImageType property.
    int
    New contents of ImageWidth property.

    Fields inherited from class jpos.events.DataEvent

    status

    Fields inherited from class jpos.events.JposEvent

    sequenceNumber

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    ImageScannerDataEvent​(JposBase source, int state, byte[] frameData, int bitsPerPixel, int frameType, int imageHeight, int imageWidth, int imageLength, int imageType)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sets the data properties stored within the JposDataEvent into the JposCommonProperties object.
    Generates string describing the data event for logging purposes.

    Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposDataEvent

    getPropertySet

    Methods inherited from class jpos.events.DataEvent

    getStatus

    Methods inherited from class jpos.events.JposEvent

    getSequenceNumber, getWhen, incrSequenceNumber, updateSequenceNumber

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • FrameData

      public final byte[] FrameData
      New contents of FrameData property. For details, see UPOS specification.
    • BitsPerPixel

      public final int BitsPerPixel
      New contents of BitsPerPixel property. For details, see UPOS specification.
    • FrameType

      public final int FrameType
      New contents of FrameType property. For details, see UPOS specification.
    • ImageHeight

      public final int ImageHeight
      New contents of ImageHeight property. For details, see UPOS specification.
    • ImageWidth

      public final int ImageWidth
      New contents of ImageWidth property. For details, see UPOS specification.
    • ImageLength

      public final int ImageLength
      New contents of ImageLength property. For details, see UPOS specification.
    • ImageType

      public final int ImageType
      New contents of ImageType property. For details, see UPOS specification.
  • Constructor Details

    • ImageScannerDataEvent

      public ImageScannerDataEvent(JposBase source, int state, byte[] frameData, int bitsPerPixel, int frameType, int imageHeight, int imageWidth, int imageLength, int imageType)
      Constructor. Parameters passed to base class unchanged.
      Parameters:
      source - Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.
      state - Status, see UPOS specification.
      bitsPerPixel - Holds the value to be stored in BitsPerPixel property.
      frameData - Holds the value to be stored in FrameData property.
      frameType - Holds the value to be stored in FrameType property.
      imageHeight - Holds the value to be stored in ImageHeight property.
      imageWidth - Holds the value to be stored in ImageWidth property.
      imageLength - Holds the value to be stored in ImageLength property.
      imageType - Holds the value to be stored in ImageType property.
  • Method Details

    • setDataProperties

      public void setDataProperties()
      Description copied from class: JposDataEvent
      Sets the data properties stored within the JposDataEvent into the JposCommonProperties object. The corresponding properties must be defined within derived classes.
      Overrides:
      setDataProperties in class JposDataEvent
    • toLogString

      public String toLogString()
      Description copied from class: JposDataEvent
      Generates string describing the data event for logging purposes.
      Overrides:
      toLogString in class JposDataEvent
      Returns:
      Describing string.