com.aspose.omr.elements

Class ChoiceBoxElement



  • public class ChoiceBoxElement
    extends OmrElement

    Represents an OMR choice element

    • Constructor Detail

      • ChoiceBoxElement

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

        Initializes a new instance of the ChoiceBoxElement 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 config)

        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.
        config - Configuration for OMR extraction algorithm.
        Returns:
        An string that contains data extracted from the element.
      • getMultipleSelectionAllowed

        public boolean getMultipleSelectionAllowed()

        Gets a value indicating whether the choice box can have multiple items selected at once.

      • loadProperties

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

        Initializes the properties of an element from their string representation.

        Overrides:
        loadProperties in class OmrElement
        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 OmrElement
        Returns:
        A collection of properties' values.
      • setMultipleSelectionAllowed

        public void setMultipleSelectionAllowed(boolean value)

        Sets a value indicating whether the choice box can have multiple items selected at once.