@TagName(value="svg") public class OMSVGSVGElement extends OMSVGElement implements HasGraphicalHandlers, HasDocumentHandlers, ISVGTests, ISVGLangSpace, ISVGExternalResourcesRequired, ISVGStylable, ISVGLocatable, ISVGFitToViewBox, ISVGZoomAndPan, ISVGContainerElement
A key interface definition is the OMSVGSVGElement
interface, which is the interface that corresponds to the svg element. This interface contains
various miscellaneous commonly-used utility methods, such as matrix operations
and the ability to control the time of redraw on visual rendering devices.
OMSVGSVGElement extends ViewCSS
and DocumentCSS to provide access to the computed values of
properties and the override style sheet as described in DOM
Level 2 Style [DOM2STYLE].
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Constructor and Description |
|---|
OMSVGSVGElement() |
OMSVGSVGElement(SVGSVGElement ot) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addActivateHandler(ActivateHandler handler)
Adds a
ActivateHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragEndHandler(com.google.gwt.event.dom.client.DragEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragHandler(com.google.gwt.event.dom.client.DragHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragStartHandler(com.google.gwt.event.dom.client.DragStartHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDropHandler(com.google.gwt.event.dom.client.DropHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addFocusInHandler(FocusInHandler handler)
Adds a
FocusInHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addFocusOutHandler(FocusOutHandler handler)
Adds a
FocusOutHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addLoadHandler(com.google.gwt.event.dom.client.LoadHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addSVGZoomHandler(SVGZoomHandler handler)
Adds a
SVGZoomHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addTouchCancelHandler(com.google.gwt.event.dom.client.TouchCancelHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchEndHandler(com.google.gwt.event.dom.client.TouchEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchMoveHandler(com.google.gwt.event.dom.client.TouchMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchStartHandler(com.google.gwt.event.dom.client.TouchStartHandler handler) |
boolean |
animationsPaused()
Returns true if this SVG document fragment is in a paused state.
|
boolean |
checkEnclosure(OMSVGElement element,
OMSVGRect rect)
Returns true if the rendered content of the given element is entirely contained
within the supplied rectangle.
|
boolean |
checkIntersection(OMSVGElement element,
OMSVGRect rect)
Returns true if the rendered content of the given element intersects the
supplied rectangle.
|
OMSVGAngle |
createSVGAngle()
Creates an
OMSVGAngle object outside of
any document trees. |
OMSVGAngle |
createSVGAngle(OMSVGAngle a)
Creates an
OMSVGAngle object outside of
any document trees. |
OMSVGAngle |
createSVGAngle(short unitType,
float valueInSpecifiedUnits)
Creates an
OMSVGAngle object outside of
any document trees. |
OMSVGLength |
createSVGLength()
Creates an
OMSVGLength object outside of
any document trees. |
OMSVGLength |
createSVGLength(OMSVGLength l)
Creates an
OMSVGLength object outside of
any document trees. |
OMSVGLength |
createSVGLength(short unitType,
float valueInSpecifiedUnits)
Creates an
OMSVGLength object outside of
any document trees. |
OMSVGLength |
createSVGLength(com.google.gwt.dom.client.Style.Unit unitType,
float valueInSpecifiedUnits)
Creates an
OMSVGLength object outside of
any document trees. |
OMSVGMatrix |
createSVGMatrix()
Creates an
OMSVGMatrix object outside of
any document trees. |
OMSVGMatrix |
createSVGMatrix(float a,
float b,
float c,
float d,
float e,
float f)
Creates an
OMSVGMatrix object outside of
any document trees. |
OMSVGMatrix |
createSVGMatrix(OMSVGMatrix m)
Creates an
OMSVGMatrix object outside of
any document trees. |
OMSVGNumber |
createSVGNumber()
Creates an
OMSVGNumber object outside of
any document trees. |
OMSVGNumber |
createSVGNumber(float value)
Creates an
OMSVGNumber object outside of
any document trees. |
OMSVGPoint |
createSVGPoint()
Creates an
OMSVGPoint object outside of
any document trees. |
OMSVGPoint |
createSVGPoint(float x,
float y)
Creates an
OMSVGPoint object outside of
any document trees. |
OMSVGPoint |
createSVGPoint(OMSVGPoint p)
Creates an
OMSVGPoint object outside of
any document trees. |
OMSVGRect |
createSVGRect()
Creates an
OMSVGRect object outside of any
document trees. |
OMSVGRect |
createSVGRect(float x,
float y,
float width,
float height)
Creates an
OMSVGRect object outside of
any document trees. |
OMSVGRect |
createSVGRect(OMSVGRect rect)
Creates an
OMSVGRect object outside of
any document trees. |
OMSVGTransform |
createSVGTransform()
Creates an
OMSVGTransform object outside
of any document trees. |
OMSVGTransform |
createSVGTransformFromMatrix(OMSVGMatrix matrix)
Creates an |
void |
deselectAll()
Unselects any selected objects, including any selections of text strings
and type-in bars.
|
void |
forceRedraw()
In rendering environments supporting interactivity, forces the user agent
to immediately redraw all regions of the viewport that require updating.
|
OMSVGRect |
getBBox()
Returns the tight bounding box in current user space (i.e., after application
of the
transform attribute, if any) on the geometry of all
contained graphics elements, exclusive of stroking, clipping, masking and
filter effects). |
String |
getContentScriptType()
Corresponds to attribute
getContentScriptType()
on the given svg element. |
String |
getContentStyleType()
Corresponds to attribute
getContentStyleType()
on the given svg element. |
OMSVGMatrix |
getCTM()
Returns the transformation matrix from current user units (i.e., after
application of the
transform attribute, if any) to the viewport
coordinate system for the ISVGLocatable.getNearestViewportElement(). |
float |
getCurrentScale()
On an outermost svg element, this attribute indicates
the current scale factor relative to the initial view to take into account
user magnification and panning operations, as described under Magnification
and panning.
|
float |
getCurrentTime()
Returns the current time in seconds relative to the start time for the
current SVG document fragment.
|
OMSVGPoint |
getCurrentTranslate()
On an outermost svg element, the corresponding translation
factor that takes into account user "magnification".
|
OMSVGViewSpec |
getCurrentView()
The definition of the initial view (i.e., before magnification and panning)
of the current innermost SVG document fragment.
|
OMElement |
getElementById(String elementId)
Searches this SVG document fragment (i.e., the search is restricted to
a subset of the document tree) for an Element whose id is given by elementId.
|
com.google.gwt.dom.client.NodeList<? extends com.google.gwt.dom.client.Node> |
getEnclosureList(OMSVGRect rect,
OMSVGElement referenceElement)
Returns the list of graphics elements whose rendered content is entirely
contained within the supplied rectangle.
|
OMSVGAnimatedBoolean |
getExternalResourcesRequired()
Corresponds to attribute
ISVGExternalResourcesRequired.getExternalResourcesRequired()
on the given element. |
OMSVGElement |
getFarthestViewportElement()
The farthest ancestor svg element.
|
OMSVGAnimatedLength |
getHeight()
Corresponds to attribute
getHeight()
on the given svg element. |
com.google.gwt.dom.client.NodeList<? extends com.google.gwt.dom.client.Node> |
getIntersectionList(OMSVGRect rect,
OMSVGElement referenceElement)
Returns the list of graphics elements whose rendered content intersects
the supplied rectangle.
|
OMSVGElement |
getNearestViewportElement()
The element which established the current viewport.
|
float |
getPixelUnitToMillimeterX()
Size of a pixel units (as defined by CSS2) along the x-axis of the viewport,
which represents a unit somewhere in the range of 70dpi to 120dpi, and,
on systems that support this, might actually match the characteristics
of the target medium.
|
float |
getPixelUnitToMillimeterY()
Corresponding size of a pixel unit along the y-axis of the viewport.
|
OMSVGAnimatedPreserveAspectRatio |
getPreserveAspectRatio()
Corresponds to attribute
ISVGFitToViewBox.getPreserveAspectRatio()
on the given element. |
OMSVGStringList |
getRequiredExtensions()
Corresponds to attribute
ISVGTests.getRequiredExtensions()
on the given element. |
OMSVGStringList |
getRequiredFeatures()
Corresponds to attribute
ISVGTests.getRequiredFeatures()
on the given element. |
OMSVGMatrix |
getScreenCTM()
Returns the transformation matrix from current user units (i.e., after
application of the
transform attribute, if any) to the parent
user agent's notice of a "pixel". |
float |
getScreenPixelToMillimeterX()
User interface (UI) events in DOM Level 2 indicate the screen positions
at which the given UI event occurred.
|
float |
getScreenPixelToMillimeterY()
Corresponding size of a screen pixel along the y-axis of the viewport.
|
OMSVGStringList |
getSystemLanguage()
Corresponds to attribute
ISVGTests.getSystemLanguage()
on the given element. |
OMSVGMatrix |
getTransformToElement(OMSVGElement element)
Returns the transformation matrix from the user coordinate system on the
current element (after application of the
transform attribute,
if any) to the user coordinate system on parameter element (after
application of its transform attribute, if any). |
boolean |
getUseCurrentView()
The initial view (i.e., before magnification and panning) of the current
innermost SVG document fragment can be either the "standard" view (i.e.,
based on attributes on the svg element such as
svg/viewBox)
or to a "custom" view (i.e., a hyperlink into a particular view or other element - see Linking
into SVG content: URI fragments and SVG views). |
OMSVGAnimatedRect |
getViewBox()
Corresponds to attribute
ISVGFitToViewBox.getViewBox()
on the given element. |
OMSVGRect |
getViewport()
The position and size of the viewport (implicit or explicit) that corresponds
to this svg element.
|
OMSVGAnimatedLength |
getWidth()
Corresponds to attribute
getWidth()
on the given svg element. |
OMSVGAnimatedLength |
getX()
|
String |
getXmllang()
Corresponds to attribute
xml:lang on the given element. |
String |
getXmlspace()
Corresponds to attribute
xml:space on the given element. |
OMSVGAnimatedLength |
getY()
|
short |
getZoomAndPan()
Corresponds to attribute
ISVGZoomAndPan.getZoomAndPan()
on the given element. |
boolean |
hasExtension(String extension)
Returns true if the user agent supports the given extension, specified
by a URI.
|
void |
pauseAnimations()
Suspends (i.e., pauses) all currently running animations that are defined
within the SVG document fragment corresponding to this svg element, causing the animation
clock corresponding to this document fragment to stand still until it is
unpaused.
|
void |
setContentScriptType(String value)
Corresponds to attribute
getContentScriptType()
on the given svg element. |
void |
setContentStyleType(String value)
Corresponds to attribute
getContentStyleType()
on the given svg element. |
void |
setCurrentScale(float value)
On an outermost svg element, this attribute indicates
the current scale factor relative to the initial view to take into account
user magnification and panning operations, as described under Magnification
and panning.
|
void |
setCurrentTime(float seconds)
Adjusts the clock for this SVG document fragment, establishing a new current
time.
|
void |
setHeight(short unitType,
float height)
Sets the base value for the height of this
OMSVGSVGElement
to the specified value and unit type. |
void |
setHeight(com.google.gwt.dom.client.Style.Unit unitType,
float height)
Sets the base value for the height of this
OMSVGSVGElement
to the specified value and unit type. |
void |
setViewBox(float x,
float y,
float width,
float height)
Sets the base value for the viewbox of this
OMSVGSVGElement
to the specified coordinates and size. |
void |
setViewBox(OMSVGRect rect)
Sets the base value for the viewbox of this
OMSVGSVGElement
to the specified rectangle. |
void |
setWidth(short unitType,
float width)
Sets the base value for the width of this
OMSVGSVGElement
to the specified value and unit type. |
void |
setWidth(com.google.gwt.dom.client.Style.Unit unitType,
float width)
Sets the base value for the width of this
OMSVGSVGElement
to the specified value and unit type. |
void |
setXmllang(String value)
Corresponds to attribute
xml:lang on the given element. |
void |
setXmlspace(String value)
Corresponds to attribute
xml:space on the given element. |
void |
setZoomAndPan(short value)
Corresponds to attribute
ISVGZoomAndPan.getZoomAndPan()
on the given element. |
int |
suspendRedraw(int maxWaitMilliseconds)
Takes a time-out value which indicates that redraw shall not occur until:
the corresponding unsuspendRedraw() call has been made,
an unsuspendRedrawAll() call has been made, or its timer
has timed out.
|
void |
unpauseAnimations()
Unsuspends (i.e., unpauses) currently running animations that are defined
within the SVG document fragment, causing the animation clock to continue
from the time at which it was suspended.
|
void |
unsuspendRedraw(int suspendHandleID)
Cancels a specified suspendRedraw() by providing a unique suspend handle
ID that was returned by a previous suspendRedraw() call.
|
void |
unsuspendRedrawAll()
Cancels all currently active suspendRedraw() method calls.
|
addClassNameBaseVal, getClassName, getMarkup, getOwnerSVGElement, getStyle, getViewportElement, getXmlbase, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseVal, setId, setXmlbasegetAttribute, getAttributeNode, getAttributeNS, getAttributes, getElement, getElementsByTagName, getElementsByTagNameNS, getId, getTagName, hasAttribute, hasAttributeNS, removeAttribute, setAttribute, setAttributeNode, setAttributeNSaddDomHandler, addHandler, appendChild, cleanup, cloneNode, convert, convertList, dispatch, fireEvent, getChildNodes, getEventBus, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddClassNameBaseVal, getClassName, getStyle, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseValpublic OMSVGSVGElement()
public OMSVGSVGElement(SVGSVGElement ot)
public final OMSVGAnimatedLength getX()
public final OMSVGAnimatedLength getY()
public final OMSVGAnimatedLength getWidth()
getWidth()
on the given svg element.public final OMSVGAnimatedLength getHeight()
getHeight()
on the given svg element.public final String getContentScriptType()
getContentScriptType()
on the given svg element.public final void setContentScriptType(String value) throws com.google.gwt.core.client.JavaScriptException
getContentScriptType()
on the given svg element.DOMException(NO_MODIFICATION_ALLOWED_ERR) - Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptExceptionpublic final String getContentStyleType()
getContentStyleType()
on the given svg element.public final void setContentStyleType(String value) throws com.google.gwt.core.client.JavaScriptException
getContentStyleType()
on the given svg element.DOMException(NO_MODIFICATION_ALLOWED_ERR) - Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptExceptionpublic final OMSVGRect getViewport()
The position and size of the viewport (implicit or explicit) that corresponds to this svg element. When the user agent is actually rendering the content, then the position and size values represent the actual values when rendering. The position and size values are unitless values in the coordinate system of the parent element. If no parent element exists (i.e., svg element represents the root of the document tree), if this SVG document is embedded as part of another document (e.g., via the HTML 'object' element), then the position and size are unitless values in the coordinate system of the parent document. (If the parent uses CSS or XSL layout, then unitless values represent pixel units for the current CSS or XSL viewport, as described in the CSS2 specification.) If the parent element does not have a coordinate system, then the user agent should provide reasonable default values for this attribute.
public final float getPixelUnitToMillimeterX()
public final float getPixelUnitToMillimeterY()
public final float getScreenPixelToMillimeterX()
public final float getScreenPixelToMillimeterY()
public final boolean getUseCurrentView()
svg/viewBox)
or to a "custom" view (i.e., a hyperlink into a particular view or other element - see Linking
into SVG content: URI fragments and SVG views). If the initial view
is the "standard" view, then this attribute is false. If the initial view
is a "custom" view, then this attribute is true.public final OMSVGViewSpec getCurrentView()
The definition of the initial view (i.e., before magnification and panning) of the current innermost SVG document fragment. The meaning depends on the situation:
ISVGFitToViewBox.getViewBox(),
ISVGFitToViewBox.getPreserveAspectRatio()
and ISVGZoomAndPan.getZoomAndPan()
within getCurrentView()
will match the values for the corresponding DOM attributes that are
on SVGSVGElement directlyISVGViewSpec.getTransform()
and ISVGViewSpec.getViewTarget()
within getCurrentView()
will be nullISVGFitToViewBox.getViewBox(),
ISVGFitToViewBox.getPreserveAspectRatio()
and ISVGZoomAndPan.getZoomAndPan()
within getCurrentView()
will correspond to the corresponding attributes for the given view elementISVGViewSpec.getTransform() and ISVGViewSpec.getViewTarget() within getCurrentView() will be
nullISVGFitToViewBox.getViewBox(),
ISVGFitToViewBox.getPreserveAspectRatio()
and ISVGZoomAndPan.getZoomAndPan()
within getCurrentView()
will match the values for the corresponding DOM attributes that are
on SVGSVGElement directly for the closest ancestor svg elementISVGViewSpec.getTransform() within
getCurrentView() will be
nullISVGViewSpec.getViewTarget()
within getCurrentView()
will represent the target of the linkISVGFitToViewBox.getViewBox(),
ISVGFitToViewBox.getPreserveAspectRatio(),
ISVGZoomAndPan.getZoomAndPan(),
ISVGViewSpec.getTransform() and
ISVGViewSpec.getViewTarget() within
getCurrentView() will
correspond to the values from the SVG view specification fragment
identifierThe object itself and its contents are both read only.
public final float getCurrentScale()
getCurrentScale()
and getCurrentTranslate()
are equivalent to the 2x3 matrix [a b c d e f] = [currentScale 0 0 currentScale currentTranslate.x currentTranslate.y].
If "magnification" is enabled (i.e., zoomAndPan="magnify"),
then the effect is as if an extra transformation were placed at the outermost
level on the SVG document fragment (i.e., outside the outermost svg element). When accessed on an svg element that is not an outermost svg element, it is undefined what behavior this attribute has.
public final void setCurrentScale(float value)
getCurrentScale()
and getCurrentTranslate()
are equivalent to the 2x3 matrix [a b c d e f] = [currentScale 0 0 currentScale currentTranslate.x currentTranslate.y].
If "magnification" is enabled (i.e., zoomAndPan="magnify"),
then the effect is as if an extra transformation were placed at the outermost
level on the SVG document fragment (i.e., outside the outermost svg element). When accessed on an svg element that is not an outermost svg element, it is undefined what behavior this attribute has.
public final OMSVGPoint getCurrentTranslate()
public final int suspendRedraw(int maxWaitMilliseconds)
In environments that do not support interactivity (e.g., print media), then redraw shall not be suspended. Calls to suspendRedraw() and unsuspendRedraw() should, but need not be, made in balanced pairs.
To suspend redraw actions as a collection of SVG DOM changes occur, precede the changes to the SVG DOM with a method call similar to:
suspendHandleID = suspendRedraw(maxWaitMilliseconds);
and follow the changes with a method call similar to:
unsuspendRedraw(suspendHandleID);
Note that multiple suspendRedraw calls can be used at once and that each such method call is treated independently of the other suspendRedraw method calls.
maxWaitMilliseconds - The amount of time in milliseconds to hold
off before redrawing the device. Values greater than 60 seconds will
be truncated down to 60 seconds.public final void unsuspendRedraw(int suspendHandleID)
suspendHandleID - A number which acts as a unique identifier for
the desired suspendRedraw() call. The number supplied must be a value
returned from a previous call to suspendRedraw(). If an invalid handle
ID value is provided then the request to unsuspendRedraw() is silently
ignored.public final void unsuspendRedrawAll()
public final void forceRedraw()
public final void pauseAnimations()
public final void unpauseAnimations()
public final boolean animationsPaused()
public final float getCurrentTime()
public final void setCurrentTime(float seconds)
seconds - The new current time in seconds relative to the start
time for the current SVG document fragment.public final com.google.gwt.dom.client.NodeList<? extends com.google.gwt.dom.client.Node> getIntersectionList(OMSVGRect rect, OMSVGElement referenceElement)
pointer-events processing.rect - The test rectangle. The values are in the initial coordinate
system for the current svg element.referenceElement - If not null, then any intersected element that
doesn't have the referenceElement as ancestor must not be included in
the returned NodeList.NodeList must be implemented identically
to the NodeList interface as defined
in DOM Level 2 Core ([DOM2], section
1.2) with the exception that the interface is not live.public final com.google.gwt.dom.client.NodeList<? extends com.google.gwt.dom.client.Node> getEnclosureList(OMSVGRect rect, OMSVGElement referenceElement)
pointer-events processing.rect - The test rectangle. The values are in the initial coordinate
system for the current svg element.referenceElement - If not null, then any intersected element that
doesn't have the referenceElement as ancestor must not be included in
the returned NodeList.NodeList must be implemented
identically to the NodeList interface
as defined in DOM Level 2 Core ([DOM2],
section 1.2) with the exception that the interface is not live.public final boolean checkIntersection(OMSVGElement element, OMSVGRect rect)
pointer-events processing.element - The element on which to perform the given test.rect - The test rectangle. The values are in the initial coordinate
system for the current svg element.public final boolean checkEnclosure(OMSVGElement element, OMSVGRect rect)
pointer-events processing.element - The element on which to perform the given test.rect - The test rectangle. The values are in the initial coordinate
system for the current svg element.public final void deselectAll()
public final OMSVGNumber createSVGNumber()
OMSVGNumber object outside of
any document trees. The object is initialized to a value of zero.OMSVGNumber object.public final OMSVGLength createSVGLength()
OMSVGLength object outside of
any document trees. The object is initialized to the value of 0 user units.OMSVGLength object.public final OMSVGAngle createSVGAngle()
OMSVGAngle object outside of
any document trees. The object is initialized to the value 0 degrees (unitless).OMSVGAngle object.public final OMSVGPoint createSVGPoint()
OMSVGPoint object outside of
any document trees. The object is initialized to the point (0,0) in the
user coordinate system.OMSVGPoint object.public final OMSVGMatrix createSVGMatrix()
OMSVGMatrix object outside of
any document trees. The object is initialized to the identity matrix.OMSVGMatrix object.public final OMSVGRect createSVGRect()
OMSVGRect object outside of any
document trees. The object is initialized such that all values are set
to 0 user units.OMSVGRect object.public final OMSVGTransform createSVGTransform()
OMSVGTransform object outside
of any document trees. The object is initialized to an identity matrix
transform (SVG_TRANSFORM_MATRIX).OMSVGTransform object.public final OMSVGTransform createSVGTransformFromMatrix(OMSVGMatrix matrix)
Creates an OMSVGTransform
object outside of any document trees. The object is initialized to the
given matrix transform (i.e., SVG_TRANSFORM_MATRIX). The values from the
parameter matrix are copied, the matrix parameter
is not adopted as SVGTransform::matrix.
matrix - The transform matrix.OMSVGTransform object.public final OMElement getElementById(String elementId)
elementId - The unique id value for an element.public final OMSVGAnimatedBoolean getExternalResourcesRequired()
ISVGExternalResourcesRequired.getExternalResourcesRequired()
on the given element. Note that the SVG DOM defines the attribute ISVGExternalResourcesRequired.getExternalResourcesRequired()
as being of type OMSVGAnimatedBoolean, whereas
the SVG language definition says that ISVGExternalResourcesRequired.getExternalResourcesRequired()
is not animated. Because the SVG language definition states that ISVGExternalResourcesRequired.getExternalResourcesRequired()
cannot be animated, the OMSVGAnimatedBoolean.getAnimVal()
will always be the same as the OMSVGAnimatedBoolean.getBaseVal().getExternalResourcesRequired in interface ISVGExternalResourcesRequiredpublic final OMSVGAnimatedRect getViewBox()
ISVGFitToViewBox.getViewBox()
on the given element.getViewBox in interface ISVGFitToViewBoxpublic final OMSVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
ISVGFitToViewBox.getPreserveAspectRatio()
on the given element.getPreserveAspectRatio in interface ISVGFitToViewBoxpublic final String getXmllang()
xml:lang on the given element.getXmllang in interface ISVGLangSpacepublic final void setXmllang(String value) throws com.google.gwt.core.client.JavaScriptException
xml:lang on the given element.setXmllang in interface ISVGLangSpaceDOMException(NO_MODIFICATION_ALLOWED_ERR) - Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptExceptionpublic final String getXmlspace()
xml:space on the given element.getXmlspace in interface ISVGLangSpacepublic final void setXmlspace(String value) throws com.google.gwt.core.client.JavaScriptException
xml:space on the given element.setXmlspace in interface ISVGLangSpaceDOMException(NO_MODIFICATION_ALLOWED_ERR) - Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptExceptionpublic final OMSVGElement getNearestViewportElement()
getNearestViewportElement in interface ISVGLocatablepublic final OMSVGElement getFarthestViewportElement()
getFarthestViewportElement in interface ISVGLocatablepublic final OMSVGRect getBBox()
transform attribute, if any) on the geometry of all
contained graphics elements, exclusive of stroking, clipping, masking and
filter effects). Note that getBBox must return the actual bounding box
at the time the method was called, even in case the element has not yet
been rendered.getBBox in interface ISVGLocatableOMSVGRect object that defines
the bounding box.public final OMSVGMatrix getCTM()
transform attribute, if any) to the viewport
coordinate system for the ISVGLocatable.getNearestViewportElement().getCTM in interface ISVGLocatableOMSVGMatrix object that defines
the CTM.public final OMSVGMatrix getScreenCTM()
transform attribute, if any) to the parent
user agent's notice of a "pixel". For display devices, ideally this represents
a physical screen pixel. For other devices or environments where physical
pixel sizes are not known, then an algorithm similar to the CSS2 definition
of a "pixel" can be used instead. Note that null is returned if this element
is not hooked into the document tree. This method would have been more
aptly named as getClientCTM, but the name getScreenCTM
is kept for historical reasons.getScreenCTM in interface ISVGLocatableOMSVGMatrix object that defines
the given transformation matrix.public final OMSVGMatrix getTransformToElement(OMSVGElement element) throws com.google.gwt.core.client.JavaScriptException
transform attribute,
if any) to the user coordinate system on parameter element (after
application of its transform attribute, if any).getTransformToElement in interface ISVGLocatableelement - The target element.OMSVGMatrix object that defines
the transformation.SVGException(SVG_MATRIX_NOT_INVERTABLE) - Raised if the currently
defined transformation matrices make it impossible to compute the given
matrix (e.g., because one of the transformations is singular).com.google.gwt.core.client.JavaScriptExceptionpublic final OMSVGStringList getRequiredFeatures()
ISVGTests.getRequiredFeatures()
on the given element.getRequiredFeatures in interface ISVGTestspublic final OMSVGStringList getRequiredExtensions()
ISVGTests.getRequiredExtensions()
on the given element.getRequiredExtensions in interface ISVGTestspublic final OMSVGStringList getSystemLanguage()
ISVGTests.getSystemLanguage()
on the given element.getSystemLanguage in interface ISVGTestspublic final boolean hasExtension(String extension)
hasExtension in interface ISVGTestsextension - The name of the extension, expressed as a URI.public final short getZoomAndPan()
ISVGZoomAndPan.getZoomAndPan()
on the given element. The value must be one of the SVG_ZOOMANDPAN_ constants
defined on this interface.getZoomAndPan in interface ISVGZoomAndPanpublic final void setZoomAndPan(short value)
throws com.google.gwt.core.client.JavaScriptException
ISVGZoomAndPan.getZoomAndPan()
on the given element. The value must be one of the SVG_ZOOMANDPAN_ constants
defined on this interface.setZoomAndPan in interface ISVGZoomAndPanDOMException(NO_MODIFICATION_ALLOWED_ERR) - Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptExceptionpublic final com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addDragEndHandler(com.google.gwt.event.dom.client.DragEndHandler handler)
addDragEndHandler in interface com.google.gwt.event.dom.client.HasDragEndHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler)
addDragEnterHandler in interface com.google.gwt.event.dom.client.HasDragEnterHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addDragHandler(com.google.gwt.event.dom.client.DragHandler handler)
addDragHandler in interface com.google.gwt.event.dom.client.HasDragHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler)
addDragLeaveHandler in interface com.google.gwt.event.dom.client.HasDragLeaveHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler)
addDragOverHandler in interface com.google.gwt.event.dom.client.HasDragOverHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addDragStartHandler(com.google.gwt.event.dom.client.DragStartHandler handler)
addDragStartHandler in interface com.google.gwt.event.dom.client.HasDragStartHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addDropHandler(com.google.gwt.event.dom.client.DropHandler handler)
addDropHandler in interface com.google.gwt.event.dom.client.HasDropHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addLoadHandler(com.google.gwt.event.dom.client.LoadHandler handler)
addLoadHandler in interface com.google.gwt.event.dom.client.HasLoadHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
addMouseDownHandler in interface com.google.gwt.event.dom.client.HasMouseDownHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
addMouseMoveHandler in interface com.google.gwt.event.dom.client.HasMouseMoveHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
addMouseOutHandler in interface com.google.gwt.event.dom.client.HasMouseOutHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
addMouseOverHandler in interface com.google.gwt.event.dom.client.HasMouseOverHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
addMouseUpHandler in interface com.google.gwt.event.dom.client.HasMouseUpHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
addScrollHandler in interface com.google.gwt.event.dom.client.HasScrollHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addTouchCancelHandler(com.google.gwt.event.dom.client.TouchCancelHandler handler)
addTouchCancelHandler in interface com.google.gwt.event.dom.client.HasTouchCancelHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addTouchEndHandler(com.google.gwt.event.dom.client.TouchEndHandler handler)
addTouchEndHandler in interface com.google.gwt.event.dom.client.HasTouchEndHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addTouchMoveHandler(com.google.gwt.event.dom.client.TouchMoveHandler handler)
addTouchMoveHandler in interface com.google.gwt.event.dom.client.HasTouchMoveHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addTouchStartHandler(com.google.gwt.event.dom.client.TouchStartHandler handler)
addTouchStartHandler in interface com.google.gwt.event.dom.client.HasTouchStartHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler)
addResizeHandler in interface com.google.gwt.event.logical.shared.HasResizeHandlerspublic final com.google.gwt.event.shared.HandlerRegistration addActivateHandler(ActivateHandler handler)
HasActivateHandlersActivateHandler handler.addActivateHandler in interface HasActivateHandlershandler - the activate handlerHandlerRegistration used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addFocusInHandler(FocusInHandler handler)
HasFocusInHandlersFocusInHandler handler.addFocusInHandler in interface HasFocusInHandlershandler - the focusin handlerHandlerRegistration used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addFocusOutHandler(FocusOutHandler handler)
HasFocusOutHandlersFocusOutHandler handler.addFocusOutHandler in interface HasFocusOutHandlershandler - the focusout handlerHandlerRegistration used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addSVGZoomHandler(SVGZoomHandler handler)
HasSVGZoomHandlersSVGZoomHandler handler.addSVGZoomHandler in interface HasSVGZoomHandlershandler - the zoom handlerHandlerRegistration used to remove this handlerpublic final OMSVGNumber createSVGNumber(float value)
OMSVGNumber object outside of
any document trees. The object is initialized to the specified value.value - the value to use for initializationOMSVGNumber object.public final OMSVGLength createSVGLength(short unitType, float valueInSpecifiedUnits)
OMSVGLength object outside of
any document trees. The object is initialized to the specified value
and unit type.unitType - the unit type to use for initializationvalueInSpecifiedUnits - the value to use for initialization, in the specified unitsOMSVGLength object.public final OMSVGLength createSVGLength(com.google.gwt.dom.client.Style.Unit unitType, float valueInSpecifiedUnits)
OMSVGLength object outside of
any document trees. The object is initialized to the specified value
and unit type.unitType - the unit type to use for initializationvalueInSpecifiedUnits - the value to use for initialization, in the specified unitsOMSVGLength object.public final OMSVGLength createSVGLength(OMSVGLength l)
OMSVGLength object outside of
any document trees. The object is initialized to the specified length.l - the length to use for initializationOMSVGLength object.public final OMSVGAngle createSVGAngle(short unitType, float valueInSpecifiedUnits)
OMSVGAngle object outside of
any document trees. The object is initialized to the specified value
and unit type.unitType - the unit type to use for initializationvalueInSpecifiedUnits - the value to use for initialization, in the specified unitsOMSVGAngle object.public final OMSVGAngle createSVGAngle(OMSVGAngle a)
OMSVGAngle object outside of
any document trees. The object is initialized to the specified angle.a - the angle to use for initializationOMSVGAngle object.public final OMSVGPoint createSVGPoint(float x, float y)
OMSVGPoint object outside of
any document trees. The object is initialized to the specified coordinates.x - the X coordinate to use for initializationy - the Y coordinate to use for initializationOMSVGPoint object.public final OMSVGPoint createSVGPoint(OMSVGPoint p)
OMSVGPoint object outside of
any document trees. The object is initialized to the specified point.p - the point to use for initializationOMSVGPoint object.public final OMSVGMatrix createSVGMatrix(float a, float b, float c, float d, float e, float f)
OMSVGMatrix object outside of
any document trees. The object is initialized to the specified components.a - the A component to use for initializationb - the B component to use for initializationc - the C component to use for initializationd - the D component to use for initializatione - the E component to use for initializationf - the F component to use for initializationOMSVGMatrix object.public final OMSVGMatrix createSVGMatrix(OMSVGMatrix m)
OMSVGMatrix object outside of
any document trees. The object is initialized to the specified matrix.m - the matrix to use for initializationOMSVGMatrix object.public final OMSVGRect createSVGRect(float x, float y, float width, float height)
OMSVGRect object outside of
any document trees. The object is initialized to the specified coordinates
and size.x - the X coordinate to use for initializationy - the Y coordinate to use for initializationwidth - the width to use for initializationheight - the height to use for initializationOMSVGRect object.public final OMSVGRect createSVGRect(OMSVGRect rect)
OMSVGRect object outside of
any document trees. The object is initialized to the specified rectangle.rect - the rect to use for initializationOMSVGRect object.public final void setHeight(short unitType,
float height)
OMSVGSVGElement
to the specified value and unit type.unitType - the unit type in which the height is specifiedheight - the height in the specified unitspublic final void setHeight(com.google.gwt.dom.client.Style.Unit unitType,
float height)
OMSVGSVGElement
to the specified value and unit type.unitType - the unit type in which the height is specifiedheight - the height in the specified unitspublic final void setViewBox(OMSVGRect rect)
OMSVGSVGElement
to the specified rectangle.rect - the rectangle used to specify the viewboxpublic final void setViewBox(float x,
float y,
float width,
float height)
OMSVGSVGElement
to the specified coordinates and size.x - the X coordinate to use for the viewboxy - the Y coordinate to use for the viewboxwidth - the width to use for the viewboxheight - the height to use for the viewboxpublic final void setWidth(short unitType,
float width)
OMSVGSVGElement
to the specified value and unit type.unitType - the unit type in which the width is specifiedwidth - the width in the specified unitspublic final void setWidth(com.google.gwt.dom.client.Style.Unit unitType,
float width)
OMSVGSVGElement
to the specified value and unit type.unitType - the unit type in which the width is specifiedwidth - the width in the specified unitsCopyright © 2018. All Rights Reserved.