- All Known Implementing Classes:
AbstractSVGPreserveAspectRatio,SVGOMAnimatedPreserveAspectRatio.AnimSVGPARValue,SVGOMAnimatedPreserveAspectRatio.BaseSVGPARValue
public interface SVGPreserveAspectRatio
Represents the
preserveAspectRatio attribute.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThe meet keyword.static final shortThe slice keyword.static final shortSome other value.static final shortThe none keyword.static final shortSome other value.static final shortThe xMaxYMax keyword.static final shortThe xMaxYMid keyword.static final shortThe xMaxYMin keyword.static final shortThe xMidYMax keyword.static final shortThe xMidYMid keyword.static final shortThe xMidYMin keyword.static final shortThe xMinYMax keyword.static final shortThe xMinYMid keyword.static final shortThe xMinYMin keyword. -
Method Summary
Modifier and TypeMethodDescriptionshortgetAlign()Get the alignment keyword part of the ‘preserveAspectRatio’ value.shortGet the meet-or-slice keyword part of the ‘preserveAspectRatio’ value.voidsetAlign(short align) voidsetMeetOrSlice(short meetOrSlice)
-
Field Details
-
SVG_PRESERVEASPECTRATIO_UNKNOWN
static final short SVG_PRESERVEASPECTRATIO_UNKNOWNSome other value.- See Also:
-
SVG_PRESERVEASPECTRATIO_NONE
static final short SVG_PRESERVEASPECTRATIO_NONEThe none keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMINYMIN
static final short SVG_PRESERVEASPECTRATIO_XMINYMINThe xMinYMin keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMIDYMIN
static final short SVG_PRESERVEASPECTRATIO_XMIDYMINThe xMidYMin keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMAXYMIN
static final short SVG_PRESERVEASPECTRATIO_XMAXYMINThe xMaxYMin keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMINYMID
static final short SVG_PRESERVEASPECTRATIO_XMINYMIDThe xMinYMid keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMIDYMID
static final short SVG_PRESERVEASPECTRATIO_XMIDYMIDThe xMidYMid keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMAXYMID
static final short SVG_PRESERVEASPECTRATIO_XMAXYMIDThe xMaxYMid keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMINYMAX
static final short SVG_PRESERVEASPECTRATIO_XMINYMAXThe xMinYMax keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMIDYMAX
static final short SVG_PRESERVEASPECTRATIO_XMIDYMAXThe xMidYMax keyword.- See Also:
-
SVG_PRESERVEASPECTRATIO_XMAXYMAX
static final short SVG_PRESERVEASPECTRATIO_XMAXYMAXThe xMaxYMax keyword.- See Also:
-
SVG_MEETORSLICE_UNKNOWN
static final short SVG_MEETORSLICE_UNKNOWNSome other value.- See Also:
-
SVG_MEETORSLICE_MEET
static final short SVG_MEETORSLICE_MEETThe meet keyword.- See Also:
-
SVG_MEETORSLICE_SLICE
static final short SVG_MEETORSLICE_SLICEThe slice keyword.- See Also:
-
-
Method Details
-
getAlign
short getAlign()Get the alignment keyword part of the ‘preserveAspectRatio’ value.- Returns:
- the alignment keyword part of the ‘preserveAspectRatio’ value.
-
setAlign
- Throws:
DOMException
-
getMeetOrSlice
short getMeetOrSlice()Get the meet-or-slice keyword part of the ‘preserveAspectRatio’ value.- Returns:
- the meet-or-slice keyword part of the ‘preserveAspectRatio’ value.
-
setMeetOrSlice
- Throws:
DOMException
-