com.aspose.omr.elements

Class OmrElement

    • Constructor Detail

      • OmrElement

        protected OmrElement(String name,
                  Point2D.Float position,
                  Dimension2D size)

        Initializes a new instance of the OmrElement 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

      • getCells

        public List<OmrCell> getCells()

        Gets a collection of cells in the element.

      • getConfiguration

        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.


        This settings are used during data extraction only and are not saved in the template file.

      • isHorizontal

        public boolean isHorizontal()

        Gets a value indicating whether values of this element are located horizontally.

      • loadProperties

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

        Initializes the properties of an element from their string representation.

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

        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.


        This settings are used during data extraction only and are not saved in the template file.

      • setHorizontal

        public void setHorizontal(boolean value)

        Sets a value indicating whether values of this element are located horizontally.