public class OMSVGPreserveAspectRatio
extends com.google.gwt.core.client.JavaScriptObject
OMSVGPreserveAspectRatio
interface corresponds
to the preserveAspectRatio
attribute, which is available for
some of SVG's elements. An OMSVGPreserveAspectRatio
object can be designated as read only, which means that attempts
to modify the object will result in an exception being thrown, as described
below.
Modifier and Type | Field and Description |
---|---|
static short |
SVG_MEETORSLICE_MEET
Corresponds to value 'meet' for attribute
preserveAspectRatio . |
static short |
SVG_MEETORSLICE_SLICE
Corresponds to value 'slice' for attribute
preserveAspectRatio . |
static short |
SVG_MEETORSLICE_UNKNOWN
The enumeration was set to a value that is not one of predefined types.
|
static short |
SVG_PRESERVEASPECTRATIO_NONE
Corresponds to value 'none' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_UNKNOWN
The enumeration was set to a value that is not one of predefined types.
|
static short |
SVG_PRESERVEASPECTRATIO_XMAXYMAX
Corresponds to value 'xMaxYMax' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_XMAXYMID
Corresponds to value 'xMaxYMid' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_XMAXYMIN
Corresponds to value 'xMaxYMin' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_XMIDYMAX
Corresponds to value 'xMidYMax' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_XMIDYMID
Corresponds to value 'xMidYMid' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_XMIDYMIN
Corresponds to value 'xMidYMin' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_XMINYMAX
Corresponds to value 'xMinYMax' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_XMINYMID
Corresponds to value 'XMinYMid' for attribute
preserveAspectRatio . |
static short |
SVG_PRESERVEASPECTRATIO_XMINYMIN
Corresponds to value 'xMinYMin' for attribute
preserveAspectRatio . |
Modifier | Constructor and Description |
---|---|
protected |
OMSVGPreserveAspectRatio() |
Modifier and Type | Method and Description |
---|---|
short |
getAlign()
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_
constants defined on this interface.
|
short |
getMeetOrSlice()
The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_
constants defined on this interface.
|
void |
setAlign(short value)
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_
constants defined on this interface.
|
void |
setMeetOrSlice(short value)
The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_
constants defined on this interface.
|
public static final short SVG_PRESERVEASPECTRATIO_UNKNOWN
public static final short SVG_PRESERVEASPECTRATIO_NONE
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMINYMIN
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMIDYMIN
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMAXYMIN
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMINYMID
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMIDYMID
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMAXYMID
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMINYMAX
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMIDYMAX
preserveAspectRatio
.public static final short SVG_PRESERVEASPECTRATIO_XMAXYMAX
preserveAspectRatio
.public static final short SVG_MEETORSLICE_UNKNOWN
public static final short SVG_MEETORSLICE_MEET
preserveAspectRatio
.public static final short SVG_MEETORSLICE_SLICE
preserveAspectRatio
.public final short getAlign()
public final void setAlign(short value) throws com.google.gwt.core.client.JavaScriptException
DOMException(NO_MODIFICATION_ALLOWED_ERR)
- Raised when the object
corresponds to a read only attribute
or when the object itself is read
only.com.google.gwt.core.client.JavaScriptException
public final short getMeetOrSlice()
public final void setMeetOrSlice(short value) throws com.google.gwt.core.client.JavaScriptException
DOMException(NO_MODIFICATION_ALLOWED_ERR)
- Raised when the object
corresponds to a read only attribute
or when the object itself is read
only.com.google.gwt.core.client.JavaScriptException
Copyright © 2018. All Rights Reserved.