org.vectomatic.dom.svg
Class OMSVGPreserveAspectRatio

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.vectomatic.dom.svg.OMSVGPreserveAspectRatio

public class OMSVGPreserveAspectRatio
extends com.google.gwt.core.client.JavaScriptObject

The 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.


Field Summary
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.
 
Constructor Summary
protected OMSVGPreserveAspectRatio()
           
 
Method Summary
 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.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SVG_PRESERVEASPECTRATIO_UNKNOWN

public static final short 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

public static final short SVG_PRESERVEASPECTRATIO_NONE
Corresponds to value 'none' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMINYMIN

public static final short SVG_PRESERVEASPECTRATIO_XMINYMIN
Corresponds to value 'xMinYMin' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMIDYMIN

public static final short SVG_PRESERVEASPECTRATIO_XMIDYMIN
Corresponds to value 'xMidYMin' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMAXYMIN

public static final short SVG_PRESERVEASPECTRATIO_XMAXYMIN
Corresponds to value 'xMaxYMin' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMINYMID

public static final short SVG_PRESERVEASPECTRATIO_XMINYMID
Corresponds to value 'XMinYMid' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMIDYMID

public static final short SVG_PRESERVEASPECTRATIO_XMIDYMID
Corresponds to value 'xMidYMid' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMAXYMID

public static final short SVG_PRESERVEASPECTRATIO_XMAXYMID
Corresponds to value 'xMaxYMid' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMINYMAX

public static final short SVG_PRESERVEASPECTRATIO_XMINYMAX
Corresponds to value 'xMinYMax' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMIDYMAX

public static final short SVG_PRESERVEASPECTRATIO_XMIDYMAX
Corresponds to value 'xMidYMax' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_PRESERVEASPECTRATIO_XMAXYMAX

public static final short SVG_PRESERVEASPECTRATIO_XMAXYMAX
Corresponds to value 'xMaxYMax' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_MEETORSLICE_UNKNOWN

public static final short 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

public static final short SVG_MEETORSLICE_MEET
Corresponds to value 'meet' for attribute preserveAspectRatio.

See Also:
Constant Field Values

SVG_MEETORSLICE_SLICE

public static final short SVG_MEETORSLICE_SLICE
Corresponds to value 'slice' for attribute preserveAspectRatio.

See Also:
Constant Field Values
Constructor Detail

OMSVGPreserveAspectRatio

protected OMSVGPreserveAspectRatio()
Method Detail

getAlign

public final short getAlign()
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_ constants defined on this interface.


setAlign

public final void setAlign(short value)
                    throws com.google.gwt.core.client.JavaScriptException
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_ constants defined on this interface.

Throws:
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

getMeetOrSlice

public final short getMeetOrSlice()
The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_ constants defined on this interface.


setMeetOrSlice

public final void setMeetOrSlice(short value)
                          throws com.google.gwt.core.client.JavaScriptException
The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_ constants defined on this interface.

Throws:
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 © 2012. All Rights Reserved.