com.aspose.omr.elements

Class BarcodeElement



  • public class BarcodeElement
    extends BasicElement

    Represent a barcode block.

    • Constructor Detail

      • BarcodeElement

        public BarcodeElement(String name,
                      Point2D.Float position,
                      Dimension2D size)

        Initializes a new instance of the BarcodeElement class.

        Parameters:
        name - The name of the element.
        position - Element position, in millimeters, relative to top left corner of an image
        size - Size of the element, in millimeters.
    • Method Detail

      • extractData

        public String extractData(OmrImage image,
                         OmrConfig ignored)

        Extracts data from a portion of scanned OMR sheet assigned to this element.

        Specified by:
        extractData in class BasicElement
        Parameters:
        image - The image to extract data from.
        ignored - Configuration for OMR extraction algorithm (ignored.)
        Returns:
        A string that contains data extracted from the sheet.
      • getBarCodeType

        public long getBarCodeType()

        Gets type of bar code to read

      • loadProperties

        public void loadProperties(com.aspose.omr.StringDictionary properties)

        Initializes the properties of an element from their string representation.

        Overrides:
        loadProperties in class BasicElement
        Parameters:
        properties - A collection of properties' values.
      • saveProperties

        public Map<String,String> saveProperties()

        Converts values of the properties of an element from their string representation.

        Overrides:
        saveProperties in class BasicElement
        Returns:
        A collection of properties' values.
      • setBarCodeType

        public void setBarCodeType(long value)

        Sets type of bar code to read