public class ChoiceBoxElement extends OmrElement
Represents an OMR choice element
| Constructor and Description |
|---|
ChoiceBoxElement(String name,
Point2D.Float position,
Dimension2D.Float 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(StringDictionary properties)
Initializes the properties of an element from their string representation.
|
StringDictionary |
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, isHorizontal, setConfigurationgetName, getPosition, getSize, setName, setPosition, setSizepublic ChoiceBoxElement(String name, Point2D.Float position, Dimension2D.Float 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 BasicElementimage - 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.
true if the choice box can have multiple items selected at once; otherwise falsepublic void loadProperties(StringDictionary properties)
Initializes the properties of an element from their string representation.
loadProperties in class OmrElementproperties - A collection of properties' values.public StringDictionary saveProperties()
Converts values of the properties of an element from their string representation.
saveProperties in class OmrElementpublic void setMultipleSelectionAllowed(boolean value)
Sets a value indicating whether the choice box can have multiple items selected at once.
value - true if the choice box should have multiple items selected at once; otherwise falseCopyright © 2014. All rights reserved.