public class SVGRectElement extends SVGElement
SVGRectElement
interface corresponds
to the rect element.Modifier | Constructor and Description |
---|---|
protected |
SVGRectElement() |
Modifier and Type | Method and Description |
---|---|
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). |
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() . |
OMSVGAnimatedBoolean |
getExternalResourcesRequired()
Corresponds to attribute
ISVGExternalResourcesRequired.getExternalResourcesRequired()
on the given element. |
SVGElement |
getFarthestViewportElement()
The farthest ancestor svg element.
|
OMSVGAnimatedLength |
getHeight()
Corresponds to attribute
getHeight()
on the given rect element. |
SVGElement |
getNearestViewportElement()
The element which established the current viewport.
|
OMSVGStringList |
getRequiredExtensions()
Corresponds to attribute
ISVGTests.getRequiredExtensions()
on the given element. |
OMSVGStringList |
getRequiredFeatures()
Corresponds to attribute
ISVGTests.getRequiredFeatures()
on the given element. |
OMSVGAnimatedLength |
getRx()
|
OMSVGAnimatedLength |
getRy()
|
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". |
OMSVGStringList |
getSystemLanguage()
Corresponds to attribute
ISVGTests.getSystemLanguage()
on the given element. |
OMSVGAnimatedTransformList |
getTransform()
Corresponds to attribute
ISVGTransformable.getTransform()
on the given element. |
OMSVGMatrix |
getTransformToElement(SVGElement 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). |
OMSVGAnimatedLength |
getWidth()
Corresponds to attribute
getWidth()
on the given rect 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()
|
boolean |
hasExtension(String extension)
Returns true if the user agent supports the given extension, specified
by a URI.
|
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. |
getClassName_, getMarkup, getOwnerSVGElement, getViewportElement, getXmlbase, setXmlbase
addClassName, as, as, blur, dispatchEvent, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getAttribute, getClassName, getClientHeight, getClientWidth, getDir, getDraggable, getElementsByTagName, getFirstChildElement, getId, getInnerHTML, getInnerText, getLang, getNextSiblingElement, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getPreviousSiblingElement, getPropertyBoolean, getPropertyDouble, getPropertyInt, getPropertyJSO, getPropertyObject, getPropertyString, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getString, getStyle, getTabIndex, getTagName, getTitle, hasAttribute, hasClassName, hasTagName, is, is, removeAttribute, removeClassName, replaceClassName, scrollIntoView, setAttribute, setClassName, setDir, setDraggable, setId, setInnerHTML, setInnerSafeHtml, setInnerText, setLang, setPropertyBoolean, setPropertyDouble, setPropertyInt, setPropertyJSO, setPropertyObject, setPropertyString, setScrollLeft, setScrollTop, setTabIndex, setTitle, toggleClassName
appendChild, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, isOrHasChild, removeAllChildren, removeChild, removeFromParent, replaceChild, setNodeValue
public final OMSVGAnimatedLength getX()
public final OMSVGAnimatedLength getY()
public final OMSVGAnimatedLength getWidth()
getWidth()
on the given rect element.public final OMSVGAnimatedLength getHeight()
getHeight()
on the given rect element.public final OMSVGAnimatedLength getRx()
public final OMSVGAnimatedLength getRy()
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()
.public final String getXmllang()
xml:lang
on the given element.public final void setXmllang(String value) throws com.google.gwt.core.client.JavaScriptException
xml:lang
on the given element.DOMException(NO_MODIFICATION_ALLOWED_ERR)
- Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptException
public final String getXmlspace()
xml:space
on the given element.public final void setXmlspace(String value) throws com.google.gwt.core.client.JavaScriptException
xml:space
on the given element.DOMException(NO_MODIFICATION_ALLOWED_ERR)
- Raised on an attempt
to change the value of a read only
attribute.com.google.gwt.core.client.JavaScriptException
public final SVGElement getNearestViewportElement()
public final SVGElement getFarthestViewportElement()
public 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.OMSVGRect
object that defines
the bounding box.public final OMSVGMatrix getCTM()
transform
attribute, if any) to the viewport
coordinate system for the ISVGLocatable.getNearestViewportElement()
.OMSVGMatrix
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.OMSVGMatrix
object that defines
the given transformation matrix.public final OMSVGMatrix getTransformToElement(SVGElement 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).element
- 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.JavaScriptException
public final OMSVGStringList getRequiredFeatures()
ISVGTests.getRequiredFeatures()
on the given element.public final OMSVGStringList getRequiredExtensions()
ISVGTests.getRequiredExtensions()
on the given element.public final OMSVGStringList getSystemLanguage()
ISVGTests.getSystemLanguage()
on the given element.public final boolean hasExtension(String extension)
extension
- The name of the extension, expressed as a URI.public final OMSVGAnimatedTransformList getTransform()
ISVGTransformable.getTransform()
on the given element.Copyright © 2018. All Rights Reserved.