public abstract class OmrElement extends BasicElement
Represents an abstract OMR element on a sheet.
| Modifier | Constructor and Description |
|---|---|
protected |
OmrElement(String name,
Point2D.Float position,
Dimension2D.Float size)
Initializes a new instance of the
OmrElement class. |
| Modifier and Type | Method and Description |
|---|---|
List<OmrCell> |
getCells()
Gets a collection of cells in the element.
|
OmrConfig |
getConfiguration()
Gets element-level configuration for OMR extraction algorithm.
|
boolean |
isHorizontal()
Gets a value indicating whether values of this element are located horizontally.
|
void |
isHorizontal(boolean value)
Sets a value indicating whether values of this element are located horizontally.
|
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 |
setConfiguration(OmrConfig value)
Sets element-level configuration for OMR extraction algorithm.
|
extractData, getName, getPosition, getSize, setName, setPosition, setSizeprotected OmrElement(String name, Point2D.Float position, Dimension2D.Float size)
Initializes a new instance of the OmrElement 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 List<OmrCell> getCells()
Gets a collection of cells in the element.
public OmrConfig getConfiguration()
Gets element-level configuration for OMR extraction algorithm.
Overrides page-level configuration if set.
If set to null (by default), page-level configuration will be used.
public boolean isHorizontal()
Gets a value indicating whether values of this element are located horizontally.
true if values of this element are located horizontally; otherwise falsepublic void isHorizontal(boolean value)
Sets a value indicating whether values of this element are located horizontally.
value - true if values of this element should located horizontally; otherwise falsepublic void loadProperties(StringDictionary properties)
Initializes the properties of an element from their string representation.
loadProperties in class BasicElementproperties - A collection of properties' values.public StringDictionary saveProperties()
Converts values of the properties of an element from their string representation.
saveProperties in class BasicElementpublic void setConfiguration(OmrConfig value)
Sets element-level configuration for OMR extraction algorithm.
Overrides page-level configuration if set.
If set to null (by default), page-level configuration will be used.
value - element-level configuration for OMR extraction algorithm.Copyright © 2014. All rights reserved.