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 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 |
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 |
setConfiguration(OmrConfig value)
Sets element-level configuration for OMR extraction algorithm.
|
void |
setHorizontal(boolean value)
Sets a value indicating whether values of this element are located horizontally.
|
extractData, getDataCollections, getName, getPosition, getSize, setName, setPosition, setSize
protected OmrElement(String name, Point2D.Float position, Dimension2D 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 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.
public void loadProperties(com.aspose.omr.StringDictionary properties)
Initializes the properties of an element from their string representation.
loadProperties
in class BasicElement
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 BasicElement
public 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.
public void setHorizontal(boolean value)
Sets a value indicating whether values of this element are located horizontally.
Copyright © 2017. All Rights Reserved.