com.aspose.barcode.common.helpers

Class RectangleCollection

  • All Implemented Interfaces:
    Serializable


    public class RectangleCollection
    extends Object
    implements Serializable

    This class is used to wrap up the composite Rectangle class to the class appropriate for serialization within generic collection

    See Also:
    Serialized Form
    • Constructor Detail

      • RectangleCollection

        public RectangleCollection()
    • Method Detail

      • getRectangles

        public Rectangle[] getRectangles()

        Gets or sets the rectangles.

        Value: The rectangles.
      • setRectangles

        public void setRectangles(Rectangle[] value)

        Gets or sets the rectangles.

        Value: The rectangles.
      • add

        public void add(Rectangle addRect)

        Adds the specified add rect.

        Parameters:
        addRect - The add rect.
      • exportToXml

        public boolean exportToXml(String xmlFile)

        Exports RectangleCollection properties to the xml-file specified

        Parameters:
        xmlFile - the name for the file
        Returns:
        Whether or not export completed successfully. Returns true in case of success; false otherwise
      • exportToXml

        public boolean exportToXml(String xmlFile,
                          XmlWriterSettings settings)

        Exports RectangleCollection properties to the xml-file specified

        Parameters:
        xmlFile - the name for the file
        settings - the settings for serializing
        Returns:
        Whether or not export completed successfully. Returns true in case of success; false otherwise
      • importFromXml

        public static RectangleCollection importFromXml(String xmlFileName)

        Imports RectangleCollection properties from the xml-file specified

        Returns:
        true in case of success; false otherwise
      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.