public class ChoiceBoxElement extends OmrElement
Represents an OMR choice element
Constructor and Description |
---|
ChoiceBoxElement(String name,
Point2D.Float position,
Dimension2D size)
Initializes a new instance of the
ChoiceBoxElement class. |
Modifier and Type | Method and Description |
---|---|
String |
extractData(OmrImage image,
OmrConfig config)
Extracts data from a portion of scanned OMR sheet assigned to this element.
|
boolean |
getMultipleSelectionAllowed()
Gets a value indicating whether the choice box can have multiple items selected at once.
|
void |
loadProperties(com.aspose.omr.StringDictionary properties)
Initializes the properties of an element from their string representation.
|
Map<String,String> |
saveProperties()
Converts values of the properties of an element from their string representation.
|
void |
setMultipleSelectionAllowed(boolean value)
Sets a value indicating whether the choice box can have multiple items selected at once.
|
getCells, getConfiguration, isHorizontal, setConfiguration, setHorizontal
getDataCollections, getName, getPosition, getSize, setName, setPosition, setSize
public ChoiceBoxElement(String name, Point2D.Float position, Dimension2D size)
Initializes a new instance of the ChoiceBoxElement
class.
name
- The name of the element.position
- Element position, in millimeters, relative to top left corner of an imagesize
- Size of the element, in millimeters.public String extractData(OmrImage image, OmrConfig config)
Extracts data from a portion of scanned OMR sheet assigned to this element.
extractData
in class BasicElement
image
- The image to extract data from.config
- Configuration for OMR extraction algorithm.public boolean getMultipleSelectionAllowed()
Gets a value indicating whether the choice box can have multiple items selected at once.
public void loadProperties(com.aspose.omr.StringDictionary properties)
Initializes the properties of an element from their string representation.
loadProperties
in class OmrElement
properties
- A collection of properties' values.public Map<String,String> saveProperties()
Converts values of the properties of an element from their string representation.
saveProperties
in class OmrElement
public void setMultipleSelectionAllowed(boolean value)
Sets a value indicating whether the choice box can have multiple items selected at once.
Copyright © 2017. All Rights Reserved.