Module org.tquadrat.foundation.svg
Class SVGElementImpl
java.lang.Object
org.tquadrat.foundation.xml.builder.internal.XMLElementImpl
org.tquadrat.foundation.xml.builder.spi.XMLElementAdapter
org.tquadrat.foundation.svg.internal.SVGElementImpl
- All Implemented Interfaces:
SVGElement,Element,XMLElement
- Direct Known Subclasses:
SVGClipPathImpl,SVGElementAdapter,SVGGroupImpl,SVGImpl,SVGLineImpl,SVGMarkerImpl,SVGPathImpl,SVGRectangleImpl,SVGStyleImpl,SVGSymbolImpl,SVGTextBase,SVGUseImpl
@ClassVersion(sourceVersion="$Id: SVGElementImpl.java 1074 2023-10-02 12:05:06Z tquadrat $")
@API(status=INTERNAL,
since="0.0.5")
public sealed class SVGElementImpl
extends XMLElementAdapter
implements SVGElement
permits SVGElementAdapter, SVGClipPathImpl, SVGGroupImpl, SVGImpl, SVGLineImpl, SVGMarkerImpl, SVGPathImpl, SVGRectangleImpl, SVGStyleImpl, SVGSymbolImpl, SVGTextBase, SVGUseImpl
The base class for all SVG elements.
Some internal elements are even implemented by this class only (that's why it is not abstract).
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: SVGElementImpl.java 1074 2023-10-02 12:05:06Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.svg.internal.SVGElementImpl"
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.tquadrat.foundation.xml.builder.XMLElement
XMLElement.Flags -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag that indicates whether a description was already provided for this element.private booleanFlag that indicates whether a title was already provided for this element.Fields inherited from interface org.tquadrat.foundation.svg.SVGElement
CORE_ATTRIBUTESFields inherited from interface org.tquadrat.foundation.xml.builder.XMLElement
EMPTY_XMLElement_ARRAY, NO_APPEND -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSVGElementImpl(String elementName, XMLElement.Flags... flags) Creates a newSVGElementImplinstance. -
Method Summary
Modifier and TypeMethodDescription<E extends SVGElement>
voidaddChild(E child) Adds a child to this element.voidsetAbortHandler(String value) Sets the abort handler for this SVG element.voidsetActivationHandler(String value) Sets the activation handler for this SVG element.voidSets the presentation attributealignment-baselinefor this SVG element.voidsetAttribute(String name, SVGNumber value) Sets the attribute with the given name.voidsetBaselineShift(String value) Sets the presentation attributebaseline-shiftfor this SVG element.voidsetCancelHandler(String value) Sets the cancel handler for this SVG element.voidsetCanPlayHandler(String value) Sets the can-play handler for this SVG element.voidsetCanPlayThroughHandler(String value) Sets the can-play-through handler for this SVG element.voidsetChangeHandler(String value) Sets the change handler for this SVG element.voidsetClass(CharSequence value) Sets the CSS class for the SVG element.voidsetClickHandler(String value) Sets the click handler for this SVG element.voidSets the presentation attributeclipfor this SVG element.voidsetClipPath(URI value) Sets theclip-pathattribute for this SVG element.voidsetClipRule(String value) Sets the presentation attributeclip-rulefor this SVG element.voidsetCloseHandler(String value) Sets the global event attributeonclosefor this SVG element.voidSets the colour for this SVG element.voidsetColorInterpolation(String value) Sets the presentation attributecolor-interpolationfor this SVG element.voidSets the presentation attributecolor-interpolation-filtersfor this SVG element.voidsetColorProfile(String value) Sets the presentation attributecolor-profilefor this SVG element.voidsetColorRendering(String value) Sets the presentation attributecolor-renderingfor this SVG element.voidsetCopyHandler(String value) Sets the copy handler for this SVG element.voidsetCueChangeHandler(String value) Sets the global event attributeoncuechangefor this SVG element.voidSets the presentation attributecursorfor this SVG element.voidsetCutHandler(String value) Sets the cut handler for this SVG element.voidsetDblClickHandler(String value) Sets the global event attributeondblclickfor this SVG element.voidsetDescription(CharSequence description) Sets the description for the SVG element.
This is not an attribute, instead a<"desc">element will be added as a child.voidsetDirection(String value) Sets the presentation attributedirectionfor this SVG element.voidsetDisplay(String value) Sets the presentation attributedisplayfor this SVG element.voidsetDominantBaseline(String value) Sets the presentation attributedominant-baselinefor this SVG element.voidsetDragEndHandler(String value) Sets the global event attributeondragendfor this SVG element.voidsetDragEnterHandler(String value) Sets the global event attributeondragenterfor this SVG element.voidsetDragExitHandler(String value) Sets the global event attributeondragexitfor this SVG element.voidsetDragHandler(String value) Sets the global event attributeondragfor this SVG element.voidsetDragLeaveHandler(String value) Sets the global event attributeondragleavefor this SVG element.voidsetDragOverHandler(String value) Sets the global event attributeondragoverfor this SVG element.voidsetDragStartHandler(String value) Sets the global event attributeondragstartfor this SVG element.voidsetDropHandler(String value) Sets the global event attributeondropfor this SVG element.voidsetDurationChangeHandler(String value) Sets the global event attributeondurationchangefor this SVG element.voidsetEmptiedHandler(String value) Sets the global event attributeonemptiedfor this SVG element.voidsetEnableBackground(String value) Sets the presentation attributeenable-backgroundfor this SVG element.voidsetEndedHandler(String value) Sets the global event attributeonendedfor this SVG element.voidsetErrorHandler(String value) Sets the global event attributeonerrorfor this SVG element.voidsetExternalResourcesRequired(boolean flag) Sets the attribute that indicates whether external resources are required to render this SVG element.voidSets the presentation attributefillfor this SVG element.voidsetFillOpacity(String value) Sets the presentation attributefill-opacityfor this SVG element.voidsetFillRule(String value) Sets the presentation attributefill-rulefor this SVG element.voidSets the presentation attributefilterfor this SVG element.voidsetFloodColor(String value) Sets the presentation attributeflood-colorfor this SVG element.voidsetFloodOpacity(String value) Sets the presentation attributeflood-opacityfor this SVG element.voidsetFocusHandler(String value) Sets the global event attributeonfocusfor this SVG element.voidsetFocusInHandler(String value) Sets the focus-in handler for this SVG element.voidsetFocusOutHandler(String value) Sets the focus-out handler for this SVG element.voidsetFontFamily(String value) Sets the presentation attributefont-familyfor this SVG element.voidsetFontSize(String value) Sets the presentation attributefont-sizefor this SVG element.voidsetFontSizeAdjust(String value) Sets the presentation attributefont-size-adjustfor this SVG element.voidsetFontStretch(String value) Sets the presentation attributefont-stretchfor this SVG element.voidsetFontStyle(String value) Sets the presentation attributefont-stylefor this SVG element.voidsetFontVariant(String value) Sets the presentation attributefont-variantfor this SVG element.voidsetFontWeight(String value) Sets the presentation attributefont-weightfor this SVG element.voidSets the presentation attributeglyph-orientation-horizontalfor this SVG element.voidSets the presentation attributeglyph-orientation-verticalfor this SVG element.voidSets the height of the element.Sets the SVG id for the element.
The type will be validated using the method that is provided by a call toXMLBuilderUtils.getNMTokenValidator().voidsetImageRendering(String value) Sets the presentation attributeimage-renderingfor this SVG element.voidsetInputHandler(String value) Sets the global event attributeoninputfor this SVG element.voidsetInvalidHandler(String value) Sets the global event attributeoninvalidfor this SVG element.voidsetKerning(String value) Sets the presentation attributekerningfor this SVG element.voidsetKeyDownHandler(String value) Sets the global event attributeonkeydownfor this SVG element.voidsetKeyPressHandler(String value) Sets the global event attributeonkeypressfor this SVG element.voidsetKeyUpHandler(String value) Sets the global event attributeonkeyupfor this SVG element.voidSets the human language attribute for this SVG element.voidsetLetterSpacing(String value) Sets the presentation attributeletter-spacingfor this SVG element.voidsetLightingColor(String value) Sets the presentation attributelighting-colorfor this SVG element.voidsetLoadedDataHandler(String value) Sets the global event attributeonloadeddatafor this SVG element.voidsetLoadedMetadataHandler(String value) Sets the global event attributeonloadedmetadatafor this SVG element.voidsetLoadHandler(String value) Sets the global event attributeonloadfor this SVG element.voidsetLoadStartHandler(String value) Sets the global event attributeonloadstartfor this SVG element.voidsetMarkerEnd(URI value) Sets themarker-endattribute for this SVG element.voidsetMarkerMid(URI value) Sets themarker-midattribute for this SVG element.voidsetMarkerStart(URI value) Sets themarker-startattribute for this SVG element.voidSets the presentation attributemaskfor this SVG element.voidsetMouseDownHandler(String value) Sets the global event attributeonmousedownfor this SVG element.voidsetMouseEnterHandler(String value) Sets the global event attributeonmouseenterfor this SVG element.voidsetMouseLeaveHandler(String value) Sets the global event attributeonmouseleavefor this SVG element.voidsetMouseMoveHandler(String value) Sets the global event attributeonmousemovefor this SVG element.voidsetMouseOutHandler(String value) Sets the global event attributeonmouseoutfor this SVG element.voidsetMouseOverHandler(String value) Sets the global event attributeonmouseoverfor this SVG element.voidsetMouseUpHandler(String value) Sets the global event attributeonmouseupfor this SVG element.voidsetMouseWheelHandler(String value) Sets the global event attributeonmousewheelfor this SVG element.voidsetOpacity(String value) Sets the presentation attributeopacityfor this SVG element.voidsetOverflow(String value) Sets the presentation attributeoverflowfor this SVG element.voidsetPasteHandler(String value) Sets the paste handler for this SVG element.voidSets the length of the path represented by this SVG element.
Various operations, including text on a path and motion animation and various stroke operations, require that the user agent compute the distance along the geometry of a graphics element, such as a ‘path’.
Exact mathematics exist for computing distance along a path, but the formulas are highly complex and require substantial computation.voidsetPauseHandler(String value) Sets the global event attributeonpausefor this SVG element.voidsetPlayHandler(String value) Sets the global event attributeonplayfor this SVG element.voidsetPlayingHandler(String value) Sets the global event attributeonplayingfor this SVG element.voidsetPointerEvents(String value) Sets the presentation attributepointer-eventsfor this SVG element.voidSets the mode for the aspect ratio preservation for this element.voidsetPreserveSpace(boolean flag) Sets attribute that defines how space is handled by this SVG element.voidsetProgressHandler(String value) Sets the global event attributeonprogressfor this SVG element.voidsetRateChangeHandler(String value) Sets the global event attributeonratechangefor this SVG element.voidsetReference(URI reference) Sets the "xlink:href" attribute that refers to another SVG element.voidsetRequiredExtensions(URI... values) Sets a list of extensions that are required to render this SVG element.voidsetRequiredFeatures(URI... values) Sets a list of features that are required to render this SVG element.voidsetResetHandler(String value) Sets the global event attributeonresetfor this SVG element.voidsetResizeHandler(String value) Sets the resize handler for this SVG element.voidSets the "rx" attribute for this SVG element.
The attribute is a radius, but what kind of radius and where it is used depends on the type of the SVG element.voidSets the "ry" attribute for this SVG element.
The attribute is a radius, but what kind of radius and where it is used depends on the type of the SVG element.voidsetScrollHandler(String value) Sets the scroll handler for this SVG element.voidsetSeekedHandler(String value) Sets the global event attributeonseekedfor this SVG element.voidsetSeekingHandler(String value) Sets the global event attributeonseekingfor this SVG element.voidsetSelectHandler(String value) Sets the global event attributeonselectfor this SVG element.voidsetShapeRendering(String value) Sets the presentation attributeshape-renderingfor this SVG element.voidsetShowHandler(String value) Sets the global event attributeonshowfor this SVG element.voidsetStalledHandler(String value) Sets the global event attributeonstalledfor this SVG element.voidsetStopColor(String value) Sets the presentation attributestop-colorfor this SVG element.voidsetStopOpacity(String value) Sets the presentation attributestop-opacityfor this SVG element.voidSets the presentation attributestrokefor this SVG element.voidsetStrokeDashArray(String value) Sets the presentation attributestroke-dasharrayfor this SVG element.voidsetStrokeDashOffset(String value) Sets the presentation attributestroke-dashoffsetfor this SVG element.voidsetStrokeLineCap(String value) Sets the presentation attributestroke-linecapfor this SVG element.voidsetStrokeLineJoin(String value) Sets the presentation attributestroke-linejoinfor this SVG element.voidsetStrokeMiterLimit(String value) Sets the presentation attributestroke-miterlimitfor this SVG element.voidsetStrokeOpacity(double value) Sets the presentation attributestroke-opacityfor this SVG element.
Any type outside the range 0.0 (fully transparent) to 1.0 (fully opaque) will be clamped to this range.voidsetStrokeWidth(SVGNumber value) Sets the presentation attributestroke-widthfor this SVG element.voidsetStyle(CharSequence value) Sets the CSS style for the SVG element.voidsetSubmitHandler(String value) Sets the global event attributeonsubmitfor this SVG element.voidsetSuspendHandler(String value) Sets the global event attributeonsuspendfor this SVG element.voidsetSystemLanguage(Locale... values) Sets a list of languages; the current SVG element will be rendered only if the current system language matches one entry of this list.voidsetTabIndex(int value) Sets the tabulator index for the SVG element.voidsetTextAnchor(String value) Sets the presentation attributetext-anchorfor this SVG element.voidsetTextDecoration(String value) Sets the presentation attributetext-decorationfor this SVG element.voidsetTextRendering(String value) Sets the presentation attributetext-renderingfor this SVG element.voidsetTimeUpdateHandler(String value) Sets the global event attributeontimeupdatefor this SVG element.voidsetTitle(CharSequence title) Sets the title for the SVG element.
This is not an attribute, instead a<"title">element will be added as a child.voidsetToggleHandler(String value) Sets the global event attributeontogglefor this SVG element.voidsetTransform(SVGTransform... values) Sets the transformations for this SVG element.voidsetUnicodeBidi(String value) Sets the presentation attributeunicode-bidifor this SVG element.voidsetUnloadHandler(String value) Sets the "unload" handler for this SVG element.voidsetVectorEffect(String value) Sets the presentation attributevector-effectfor this SVG element.voidsetViewBox(SVGNumber x, SVGNumber y, SVGNumber width, SVGNumber height) Defines the visible area for this element.voidsetVisibility(String value) Sets the presentation attributevisibilityfor this SVG element.voidsetVolumeChangeHandler(String value) Sets the global event attributeonvolumechangefor this SVG element.voidsetWaitHandler(String value) Sets the wait handler for this SVG element.voidSets the width of the element.voidsetWordSpacing(String value) Sets the presentation attributeword-spacingfor this SVG element.voidsetWritingMode(String value) Sets the presentation attributewriting-modefor this SVG element.voidSets the x coordinate for the upper left corner of the element.voidsetXlinkActuate(CharSequence value) Sets the XLinkactuateattribute.voidsetXLinkArcRole(CharSequence value) Sets the XLinkarcroleattribute.voidsetXLinkReference(CharSequence value) Sets the XLinkreferenceattribute.voidsetXLinkRole(CharSequence value) Sets the XLinkroleattribute.voidsetXLinkShow(CharSequence value) Sets the XLinkshowattribute.voidsetXLinkTitle(CharSequence value) Sets the XLinktitleattribute.voidsetXLinkType(CharSequence value) Sets the XLinktypeattribute.voidsetXMLBase(URI value) Sets XML attribute for the base URI that is used to reference external resources.voidSets the id for the element.
The type will be validated using the method that is provided by a call toXMLBuilderUtils.getNMTokenValidator().voidsetXMLLang(Locale value) Sets XML attribute for the human language for this SVG element.voidSets the y coordinate for the upper left corner of the element.protected final voidupdateRegistries(Collection<String> childElements, Collection<String> attributes) Updates the registries with the valid children and attributes for this element.Methods inherited from class org.tquadrat.foundation.xml.builder.internal.XMLElementImpl
addCDATA, addChild, addComment, addPredefinedMarkup, addText, getAttribute, getAttributes, getChildren, getElementName, getFlags, getNamespaces, getParent, getSortOrder, hasChildren, registerAttributeSequence, registerAttributeSequence, registerValidAttributes, registerValidChildren, retrieveValidAttributes, retrieveValidChildren, setAttribute, setNamespace, setNamespace, setNamespace, setNamespace, setNamespace, setParent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tquadrat.foundation.xml.builder.spi.Element
getAttribute, getAttributes, getChildren, getElementName, getNamespaces, getParent, hasChildren, isBlock, toStringMethods inherited from interface org.tquadrat.foundation.svg.SVGElement
addComment, getSVGElementCategoryMethods inherited from interface org.tquadrat.foundation.xml.builder.XMLElement
addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeIfNotEmpty, setAttributeIfNotEmpty
-
Field Details
-
m_HasDescription
Flag that indicates whether a description was already provided for this element. -
m_HasTitle
Flag that indicates whether a title was already provided for this element.
-
-
Constructor Details
-
SVGElementImpl
Creates a newSVGElementImplinstance.- Parameters:
elementName- The name of the element.flags- The configuration flags for the new element.
-
-
Method Details
-
addChild
public <E extends SVGElement> void addChild(E child) throws IllegalArgumentException, IllegalStateException Adds a child to this element.- Type Parameters:
E- The implementation type for thechildren.- Parameters:
child- The child to add.- Throws:
IllegalArgumentException- The given child is not valid for this element or no children are allowed at all.IllegalStateException- The child has already a parent that is not this element.
-
setAbortHandler
Sets the abort handler for this SVG element.- Parameters:
value- The abort handler.- See Also:
-
setActivationHandler
Sets the activation handler for this SVG element.- Parameters:
value- The activation handler.- See Also:
-
setAlignmentBaseline
Sets the presentation attributealignment-baselinefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setAttribute
Sets the attribute with the given name.- Parameters:
name- The name of the attribute; the name is case-sensitive.value- The attribute's type; ifnullthe attribute will be removed.- Throws:
IllegalArgumentException- An attribute with the given name is not valid for the element, or no attributes are allowed at all.
-
setBaselineShift
Sets the presentation attributebaseline-shiftfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setCancelHandler
Sets the cancel handler for this SVG element.- Parameters:
value- The cancel handler.- See Also:
-
setCanPlayHandler
Sets the can-play handler for this SVG element.- Parameters:
value- The can-play handler.- See Also:
-
setCanPlayThroughHandler
Sets the can-play-through handler for this SVG element.- Parameters:
value- The can-play-through handler.- See Also:
-
setChangeHandler
Sets the change handler for this SVG element.- Parameters:
value- The change handler.- See Also:
-
setClass
Sets the CSS class for the SVG element.- Parameters:
value- The name of a CSS class for this SVG element.
-
setClickHandler
Sets the click handler for this SVG element.- Parameters:
value- The click handler.- See Also:
-
setClip
Sets the presentation attributeclipfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setClipPath
Sets theclip-pathattribute for this SVG element.- Parameters:
value- The URI for the clip path.- See Also:
-
setClipRule
Sets the presentation attributeclip-rulefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setCloseHandler
Sets the global event attributeonclosefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setColor
Sets the colour for this SVG element.- Parameters:
value- The colour.- See Also:
-
setColorInterpolation
Sets the presentation attributecolor-interpolationfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setColorInterpolationFilters
Sets the presentation attributecolor-interpolation-filtersfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setColorProfile
Sets the presentation attributecolor-profilefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setColorRendering
Sets the presentation attributecolor-renderingfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setCopyHandler
Sets the copy handler for this SVG element.- Parameters:
value- The copy handler.- See Also:
-
setCueChangeHandler
Sets the global event attributeoncuechangefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setCursor
Sets the presentation attributecursorfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setCutHandler
Sets the cut handler for this SVG element.- Parameters:
value- The cut handler.- See Also:
-
setDblClickHandler
Sets the global event attributeondblclickfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDescription
Sets the description for the SVG element.
This is not an attribute, instead a<"desc">element will be added as a child.- Parameters:
description- The description; nothing happens ifnull, empty, or blank.- Throws:
IllegalStateException- The given description is notnull, empty, or blank, and a title was applied already earlier.
-
setDirection
Sets the presentation attributedirectionfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDisplay
Sets the presentation attributedisplayfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDominantBaseline
Sets the presentation attributedominant-baselinefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDragEndHandler
Sets the global event attributeondragendfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDragEnterHandler
Sets the global event attributeondragenterfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDragExitHandler
Sets the global event attributeondragexitfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDragHandler
Sets the global event attributeondragfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDragLeaveHandler
Sets the global event attributeondragleavefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDragOverHandler
Sets the global event attributeondragoverfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDragStartHandler
Sets the global event attributeondragstartfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDropHandler
Sets the global event attributeondropfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setDurationChangeHandler
Sets the global event attributeondurationchangefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setEmptiedHandler
Sets the global event attributeonemptiedfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setEnableBackground
Sets the presentation attributeenable-backgroundfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setEndedHandler
Sets the global event attributeonendedfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setErrorHandler
Sets the global event attributeonerrorfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setExternalResourcesRequired
Sets the attribute that indicates whether external resources are required to render this SVG element.- Parameters:
flag-trueif external resources are needed,falseif all required resources are local to the current context.
-
setFill
Sets the presentation attributefillfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFillOpacity
Sets the presentation attributefill-opacityfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFillRule
Sets the presentation attributefill-rulefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFilter
Sets the presentation attributefilterfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFloodColor
Sets the presentation attributeflood-colorfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFloodOpacity
Sets the presentation attributeflood-opacityfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFocusHandler
Sets the global event attributeonfocusfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFocusInHandler
Sets the focus-in handler for this SVG element.- Parameters:
value- The focus-in handler.- See Also:
-
setFocusOutHandler
Sets the focus-out handler for this SVG element.- Parameters:
value- The focus-out handler.- See Also:
-
setFontFamily
Sets the presentation attributefont-familyfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFontSize
Sets the presentation attributefont-sizefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFontSizeAdjust
Sets the presentation attributefont-size-adjustfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFontStretch
Sets the presentation attributefont-stretchfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFontStyle
Sets the presentation attributefont-stylefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFontVariant
Sets the presentation attributefont-variantfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setFontWeight
Sets the presentation attributefont-weightfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setGlyphOrientationHorizontal
Sets the presentation attributeglyph-orientation-horizontalfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setGlyphOrientationVertical
Sets the presentation attributeglyph-orientation-verticalfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setHeight
Sets the height of the element.- Parameters:
value- The height.
-
setId
Sets the SVG id for the element.
The type will be validated using the method that is provided by a call toXMLBuilderUtils.getNMTokenValidator().- Specified by:
setIdin interfaceSVGElement- Specified by:
setIdin interfaceXMLElement- Parameters:
id- The id.- Returns:
- This instance.
- Throws:
IllegalArgumentException- An attribute with the given name is not valid for the element, or no attributes are allowed at all, or the type is not a valid NMToken.- See Also:
-
setImageRendering
Sets the presentation attributeimage-renderingfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setInputHandler
Sets the global event attributeoninputfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setInvalidHandler
Sets the global event attributeoninvalidfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setKerning
Sets the presentation attributekerningfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setKeyDownHandler
Sets the global event attributeonkeydownfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setKeyPressHandler
Sets the global event attributeonkeypressfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setKeyUpHandler
Sets the global event attributeonkeyupfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setLang
Sets the human language attribute for this SVG element.- Specified by:
setLangin interfaceSVGElement- Parameters:
value- The language code.
-
setLetterSpacing
Sets the presentation attributeletter-spacingfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setLightingColor
Sets the presentation attributelighting-colorfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setLoadedDataHandler
Sets the global event attributeonloadeddatafor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setLoadedMetadataHandler
Sets the global event attributeonloadedmetadatafor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setLoadHandler
Sets the global event attributeonloadfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setLoadStartHandler
Sets the global event attributeonloadstartfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMarkerEnd
Sets themarker-endattribute for this SVG element.- Parameters:
value- The URI for the marker.- See Also:
-
setMarkerMid
Sets themarker-midattribute for this SVG element.- Parameters:
value- The URI for the marker.- See Also:
-
setMarkerStart
Sets themarker-startattribute for this SVG element.- Parameters:
value- The URI for the marker.- See Also:
-
setMask
Sets the presentation attributemaskfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMouseDownHandler
Sets the global event attributeonmousedownfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMouseEnterHandler
Sets the global event attributeonmouseenterfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMouseLeaveHandler
Sets the global event attributeonmouseleavefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMouseMoveHandler
Sets the global event attributeonmousemovefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMouseOutHandler
Sets the global event attributeonmouseoutfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMouseOverHandler
Sets the global event attributeonmouseoverfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMouseUpHandler
Sets the global event attributeonmouseupfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setMouseWheelHandler
Sets the global event attributeonmousewheelfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setOpacity
Sets the presentation attributeopacityfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setOverflow
Sets the presentation attributeoverflowfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setPasteHandler
Sets the paste handler for this SVG element.- Parameters:
value- The paste handler.- See Also:
-
setPathLength
Sets the length of the path represented by this SVG element.
Various operations, including text on a path and motion animation and various stroke operations, require that the user agent compute the distance along the geometry of a graphics element, such as a ‘path’.
Exact mathematics exist for computing distance along a path, but the formulas are highly complex and require substantial computation. It is recommended that authoring products and user agents employ algorithms that produce as precise results as possible; however, to accommodate implementation differences and to help distance calculations produce results that approximate author intent, thepathLengthattribute can be used to provide the author's computation of the total length of the path so that the user agent can scale distance-along-a-path computations by the ratio ofpathLengthto the user agent's own computed type for total path length.- Parameters:
length- The author's computation of the total length of the path, in user units. This type is used to calibrate the user agent's own distance-along-a-path calculations with that of the author. The user agent will scale all distance-along-a-path computations by the ratio of this type to the user agent's own computed type for total path length.
A type of zero is valid, but a negative type is an error.- Throws:
IllegalArgumentException- The type is less than 0.
-
setPauseHandler
Sets the global event attributeonpausefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setPlayHandler
Sets the global event attributeonplayfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setPlayingHandler
Sets the global event attributeonplayingfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setPointerEvents
Sets the presentation attributepointer-eventsfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setPreserveAspectRatio
Sets the mode for the aspect ratio preservation for this element.- Parameters:
value- The type; ifnullthe attribute will be removed.
-
setPreserveSpace
Sets attribute that defines how space is handled by this SVG element.- Specified by:
setPreserveSpacein interfaceSVGElement- Parameters:
flag-trueto preserve space in the source,falsefor the XML default behaviour (ignoring excessive whitespace).
-
setProgressHandler
Sets the global event attributeonprogressfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setRateChangeHandler
Sets the global event attributeonratechangefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setReference
Sets the "xlink:href" attribute that refers to another SVG element.- Parameters:
reference- The reference.
-
setRequiredExtensions
Sets a list of extensions that are required to render this SVG element.- Parameters:
values- The URIs that identify the required extensions.
-
setRequiredFeatures
Sets a list of features that are required to render this SVG element.- Parameters:
values- The URIs that identify the required features.
-
setResetHandler
Sets the global event attributeonresetfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setResizeHandler
Sets the resize handler for this SVG element.- Parameters:
value- The resize handler.- See Also:
-
setRx
Sets the "rx" attribute for this SVG element.
The attribute is a radius, but what kind of radius and where it is used depends on the type of the SVG element.- Parameters:
value- The attribute type.- See Also:
-
setRy
Sets the "ry" attribute for this SVG element.
The attribute is a radius, but what kind of radius and where it is used depends on the type of the SVG element.- Parameters:
value- The attribute type.- See Also:
-
setScrollHandler
Sets the scroll handler for this SVG element.- Parameters:
value- The scroll handler.- See Also:
-
setSeekedHandler
Sets the global event attributeonseekedfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setSeekingHandler
Sets the global event attributeonseekingfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setSelectHandler
Sets the global event attributeonselectfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setShapeRendering
Sets the presentation attributeshape-renderingfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setShowHandler
Sets the global event attributeonshowfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStalledHandler
Sets the global event attributeonstalledfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStopColor
Sets the presentation attributestop-colorfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStopOpacity
Sets the presentation attributestop-opacityfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStroke
Sets the presentation attributestrokefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStrokeDashArray
Sets the presentation attributestroke-dasharrayfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStrokeDashOffset
Sets the presentation attributestroke-dashoffsetfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStrokeLineCap
Sets the presentation attributestroke-linecapfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStrokeLineJoin
Sets the presentation attributestroke-linejoinfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStrokeMiterLimit
Sets the presentation attributestroke-miterlimitfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStrokeOpacity
Sets the presentation attributestroke-opacityfor this SVG element.
Any type outside the range 0.0 (fully transparent) to 1.0 (fully opaque) will be clamped to this range.- Parameters:
value- The attribute type.- See Also:
-
setStrokeWidth
Sets the presentation attributestroke-widthfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setStyle
Sets the CSS style for the SVG element.- Parameters:
value- A CSS style definition.
-
setSubmitHandler
Sets the global event attributeonsubmitfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setSuspendHandler
Sets the global event attributeonsuspendfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setSystemLanguage
Sets a list of languages; the current SVG element will be rendered only if the current system language matches one entry of this list.- Parameters:
values- The allowed languages.
-
setTabIndex
Sets the tabulator index for the SVG element.- Specified by:
setTabIndexin interfaceSVGElement- Parameters:
value- The tabindex type.
-
setTextAnchor
Sets the presentation attributetext-anchorfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setTextDecoration
Sets the presentation attributetext-decorationfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setTextRendering
Sets the presentation attributetext-renderingfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setTimeUpdateHandler
Sets the global event attributeontimeupdatefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setTitle
Sets the title for the SVG element.
This is not an attribute, instead a<"title">element will be added as a child.- Specified by:
setTitlein interfaceSVGElement- Parameters:
title- The title; nothing happens ifnull, empty, or blank.
-
setToggleHandler
Sets the global event attributeontogglefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setTransform
Sets the transformations for this SVG element.- Parameters:
values- The transformations.- See Also:
-
setUnicodeBidi
Sets the presentation attributeunicode-bidifor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setUnloadHandler
Sets the "unload" handler for this SVG element.- Parameters:
value- The unload handler.- See Also:
-
setVectorEffect
Sets the presentation attributevector-effectfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setViewBox
Defines the visible area for this element.- Parameters:
x- The x coordinate of top left corner of the area.y- The y coordinate of top left corner of the area.width- The width of the area.height- The height of the area.
-
setVisibility
Sets the presentation attributevisibilityfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setVolumeChangeHandler
Sets the global event attributeonvolumechangefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setWaitHandler
Sets the wait handler for this SVG element.- Parameters:
value- The wait handler.- See Also:
-
setWidth
Sets the width of the element.- Parameters:
value- The width.
-
setWordSpacing
Sets the presentation attributeword-spacingfor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setWritingMode
Sets the presentation attributewriting-modefor this SVG element.- Parameters:
value- The attribute type.- See Also:
-
setX
Sets the x coordinate for the upper left corner of the element.- Parameters:
value- The x coordinate.
-
setXlinkActuate
Sets the XLinkactuateattribute.- Parameters:
value- The attribute type.
-
setXLinkArcRole
Sets the XLinkarcroleattribute.- Parameters:
value- The attribute type.
-
setXLinkReference
Sets the XLinkreferenceattribute.- Parameters:
value- The attribute type.
-
setXLinkRole
Sets the XLinkroleattribute.- Parameters:
value- The attribute type.
-
setXLinkShow
Sets the XLinkshowattribute.- Parameters:
value- The attribute type.
-
setXLinkTitle
Sets the XLinktitleattribute.- Parameters:
value- The attribute type.
-
setXLinkType
Sets the XLinktypeattribute.- Parameters:
value- The attribute type.
-
setXMLBase
Sets XML attribute for the base URI that is used to reference external resources.- Specified by:
setXMLBasein interfaceSVGElement- Parameters:
value- The base URI.
-
setXMLId
Sets the id for the element.
The type will be validated using the method that is provided by a call toXMLBuilderUtils.getNMTokenValidator().- Specified by:
setXMLIdin interfaceSVGElement- Parameters:
id- The id.- Throws:
IllegalArgumentException- An attribute with the given name is not valid for the element, or no attributes are allowed at all, or the type is not a valid NMToken.- See Also:
-
setXMLLang
Sets XML attribute for the human language for this SVG element.- Specified by:
setXMLLangin interfaceSVGElement- Parameters:
value- The language code.
-
setY
Sets the y coordinate for the upper left corner of the element.- Parameters:
value- The y coordinate.
-
updateRegistries
protected final void updateRegistries(Collection<String> childElements, Collection<String> attributes) Updates the registries with the valid children and attributes for this element.- Parameters:
childElements- The names of valid child elements.attributes- The names of valid attributes in the sequence they should have when the element written to output.- See Also:
-
