com.aspose.html.dom.svg.datatypes

Class SVGPreserveAspectRatio

  • All Implemented Interfaces:
    com.aspose.html.internal.ms.System.IDisposable


    @DOMObjectAttribute
     @DOMNameAttribute(name="SVGPreserveAspectRatio")
    public class SVGPreserveAspectRatio
    extends SVGValueType

    The SVGPreserveAspectRatio interface corresponds to the ‘preserveAspectRatio’ attribute, which is available for some of SVG's elements.

    • Field Detail

      • SVG_PRESERVEASPECTRATIO_UNKNOWN

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_UNKNOWN")
        public static final int SVG_PRESERVEASPECTRATIO_UNKNOWN

        The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_NONE

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_NONE")
        public static final int SVG_PRESERVEASPECTRATIO_NONE

        Corresponds to value 'none' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMINYMIN

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMINYMIN")
        public static final int SVG_PRESERVEASPECTRATIO_XMINYMIN

        Corresponds to value 'xMinYMin' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMIDYMIN

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMIDYMIN")
        public static final int SVG_PRESERVEASPECTRATIO_XMIDYMIN

        Corresponds to value 'xMidYMin' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMAXYMIN

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMAXYMIN")
        public static final int SVG_PRESERVEASPECTRATIO_XMAXYMIN

        Corresponds to value 'xMaxYMin' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMINYMID

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMINYMID")
        public static final int SVG_PRESERVEASPECTRATIO_XMINYMID

        Corresponds to value 'XMinYMid' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMIDYMID

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMIDYMID")
        public static final int SVG_PRESERVEASPECTRATIO_XMIDYMID

        Corresponds to value 'xMidYMid' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMAXYMID

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMAXYMID")
        public static final int SVG_PRESERVEASPECTRATIO_XMAXYMID

        Corresponds to value 'xMaxYMid' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMINYMAX

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMINYMAX")
        public static final int SVG_PRESERVEASPECTRATIO_XMINYMAX

        Corresponds to value 'xMinYMax' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMIDYMAX

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMIDYMAX")
        public static final int SVG_PRESERVEASPECTRATIO_XMIDYMAX

        Corresponds to value 'xMidYMax' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_PRESERVEASPECTRATIO_XMAXYMAX

        @DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMAXYMAX")
        public static final int SVG_PRESERVEASPECTRATIO_XMAXYMAX

        Corresponds to value 'xMaxYMax' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_MEETORSLICE_UNKNOWN

        @DOMNameAttribute(name="SVG_MEETORSLICE_UNKNOWN")
        public static final int SVG_MEETORSLICE_UNKNOWN

        The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.

        See Also:
        Constant Field Values
      • SVG_MEETORSLICE_MEET

        @DOMNameAttribute(name="SVG_MEETORSLICE_MEET")
        public static final int SVG_MEETORSLICE_MEET

        Corresponds to value 'meet' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
      • SVG_MEETORSLICE_SLICE

        @DOMNameAttribute(name="SVG_MEETORSLICE_SLICE")
        public static final int SVG_MEETORSLICE_SLICE

        Corresponds to value 'slice' for attribute ‘preserveAspectRatio’.

        See Also:
        Constant Field Values
    • Constructor Detail

      • SVGPreserveAspectRatio

        public SVGPreserveAspectRatio(int align,
                                      int meetOrSlice)
    • Method Detail

      • getAlign

        @DOMNameAttribute(name="align")
        public int getAlign()

        The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.

        Throws:
        DOMException - Code DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised when the object corresponds to a read only attribute or when the object itself is read only. Value: The type of the alignment
      • setAlign

        @DOMNameAttribute(name="align")
        public void setAlign(int value)

        The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.

        Throws:
        DOMException - Code DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised when the object corresponds to a read only attribute or when the object itself is read only. Value: The type of the alignment
      • getMeetOrSlice

        @DOMNameAttribute(name="meetOrSlice")
        public int getMeetOrSlice()

        The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface.

        Throws:
        DOMException - Code DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised when the object corresponds to a read only attribute or when the object itself is read only. Value: The type of the meet-or-slice
      • setMeetOrSlice

        @DOMNameAttribute(name="meetOrSlice")
        public void setMeetOrSlice(int value)

        The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface.

        Throws:
        DOMException - Code DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised when the object corresponds to a read only attribute or when the object itself is read only. Value: The type of the meet-or-slice
      • deepClone

        public Object deepClone()

        Creates a new object that is a copy of the current instance.

        Specified by:
        deepClone in class SVGValueType
        Returns:
        A new object that is a copy of this instance.