@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.
Modifier and Type | Field and Description |
---|---|
static int |
SVG_MEETORSLICE_MEET
Corresponds to value 'meet' for attribute ’preserveAspectRatio’.
|
static int |
SVG_MEETORSLICE_SLICE
Corresponds to value 'slice' for attribute ’preserveAspectRatio’.
|
static int |
SVG_MEETORSLICE_UNKNOWN
The enumeration was set to a value that is not one of predefined types.
|
static int |
SVG_PRESERVEASPECTRATIO_NONE
Corresponds to value 'none' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_UNKNOWN
The enumeration was set to a value that is not one of predefined types.
|
static int |
SVG_PRESERVEASPECTRATIO_XMAXYMAX
Corresponds to value 'xMaxYMax' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_XMAXYMID
Corresponds to value 'xMaxYMid' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_XMAXYMIN
Corresponds to value 'xMaxYMin' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_XMIDYMAX
Corresponds to value 'xMidYMax' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_XMIDYMID
Corresponds to value 'xMidYMid' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_XMIDYMIN
Corresponds to value 'xMidYMin' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_XMINYMAX
Corresponds to value 'xMinYMax' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_XMINYMID
Corresponds to value 'XMinYMid' for attribute ’preserveAspectRatio’.
|
static int |
SVG_PRESERVEASPECTRATIO_XMINYMIN
Corresponds to value 'xMinYMin' for attribute ’preserveAspectRatio’.
|
flags
PropertyChanged, PropertyChangedDelegate
Constructor and Description |
---|
SVGPreserveAspectRatio(int align,
int meetOrSlice) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deepClone()
Creates a new object that is a copy of the current instance.
|
int |
getAlign()
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.
|
int |
getMeetOrSlice()
The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface.
|
void |
setAlign(int value)
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.
|
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.
|
asReadOnly, dispose, dispose, getKey, isDetached, isObserverSuppressed, isReadOnly, notifyPropertyChanged, setDetached, setObserverSuppressed, toString
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
@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.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_NONE") public static final int SVG_PRESERVEASPECTRATIO_NONE
Corresponds to value 'none' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMINYMIN") public static final int SVG_PRESERVEASPECTRATIO_XMINYMIN
Corresponds to value 'xMinYMin' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMIDYMIN") public static final int SVG_PRESERVEASPECTRATIO_XMIDYMIN
Corresponds to value 'xMidYMin' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMAXYMIN") public static final int SVG_PRESERVEASPECTRATIO_XMAXYMIN
Corresponds to value 'xMaxYMin' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMINYMID") public static final int SVG_PRESERVEASPECTRATIO_XMINYMID
Corresponds to value 'XMinYMid' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMIDYMID") public static final int SVG_PRESERVEASPECTRATIO_XMIDYMID
Corresponds to value 'xMidYMid' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMAXYMID") public static final int SVG_PRESERVEASPECTRATIO_XMAXYMID
Corresponds to value 'xMaxYMid' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMINYMAX") public static final int SVG_PRESERVEASPECTRATIO_XMINYMAX
Corresponds to value 'xMinYMax' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMIDYMAX") public static final int SVG_PRESERVEASPECTRATIO_XMIDYMAX
Corresponds to value 'xMidYMax' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_PRESERVEASPECTRATIO_XMAXYMAX") public static final int SVG_PRESERVEASPECTRATIO_XMAXYMAX
Corresponds to value 'xMaxYMax' for attribute ’preserveAspectRatio’.
@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.
@DOMNameAttribute(name="SVG_MEETORSLICE_MEET") public static final int SVG_MEETORSLICE_MEET
Corresponds to value 'meet' for attribute ’preserveAspectRatio’.
@DOMNameAttribute(name="SVG_MEETORSLICE_SLICE") public static final int SVG_MEETORSLICE_SLICE
Corresponds to value 'slice' for attribute ’preserveAspectRatio’.
@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.
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@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.
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@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.
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@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.
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-slicepublic java.lang.Object deepClone()
Creates a new object that is a copy of the current instance.
deepClone
in class SVGValueType