Class SVGUtils
java.lang.Object
org.tquadrat.foundation.svg.SVGUtils
@UtilityClass
@ClassVersion(sourceVersion="$Id: SVGUtils.java 1086 2024-01-05 23:18:33Z tquadrat $")
public final class SVGUtils
extends Object
A collection of SVG related utility methods and factory methods for SVG
elements.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: SVGUtils.java 1086 2024-01-05 23:18:33Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.svg.SVGUtils"
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default namespace prefix for SVG: "svg".static final StringThe name for the SVG presentation attributealignment-baseline: "alignment-baseline".static final StringThe name for the SVG presentation attributebaseline-shift: "baseline-shift".static final StringThe name for the SVG base profile attribute: "baseProfile".static final StringThe name for the attribute for the CSS class of an SVG element: "class".static final StringThe name for the SVG presentation attributeclip: "clip".static final StringThe name for the SVG presentation attributeclip-path: "clip-path".static final StringThe name for the SVG<clipPath>element attributeclipPathUnitsthat defines the coordinate system used by the element: "clipPathUnits".static final StringThe name for the SVG presentation attributeclip-rule: "clip-rule".static final StringThe name for the SVG presentation attributecolor: "color".static final StringThe name for the SVG presentation attributecolor-interpolation: "color-interpolation".static final StringThe name for the SVG presentation attributecolor-interpolation-filters: "color-interpolation-filters".static final StringThe name for the SVG presentation attributecolor-profile: "color-profile".static final StringThe name for the SVG presentation attributecolor-rendering: "color-rendering".static final StringThe name for the default script language attribute: "contentScriptType".static final StringThe name for the SVG presentation attributecursor: "cursor".static final StringThe name for the SVG presentation attributedirection: "direction".static final StringThe name for the SVG presentation attributedisplay: "display".static final StringThe name for the SVG presentation attributedominant-baseline: "dominant-baseline".static final StringThe name for the SVGdxattribute: "dx".static final StringThe name for the SVGdyattribute: "dy".static final StringThe name for the SVG presentation attributeenable-background: "enable-background".static final StringThe name for the SVG attributeexternalResourcesRequired: "externalResourcesRequired".static final StringThe name for the SVG presentation attributefill: "fill".static final StringThe name for the SVG presentation attributefill-opacity: "fill-opacity".static final StringThe name for the SVG presentation attributefill-rule: "fill-rule".static final StringThe name for the SVG presentation attributefilter: "filter".static final StringThe name for the SVG presentation attributeflood-color: "flood-color".static final StringThe name for the SVG presentation attributeflood-opacity: "flood-opacity".static final StringThe name for the SVG presentation attributefont-family: "font-family".static final StringThe name for the SVG presentation attributefont-size: "font-size".static final StringThe name for the SVG presentation attributefont-size-adjust: "font-size-adjust".static final StringThe name for the SVG presentation attributefont-stretch: "font-stretch".static final StringThe name for the SVG presentation attributefont-style: "font-style".static final StringThe name for the SVG presentation attributefont-variant: "font-variant".static final StringThe name for the SVG presentation attributefont-weight: "font-weight".static final StringThe name for the SVG presentation attributeglyph-orientation-horizontal: "glyph-orientation-horizontal".static final StringThe name for the SVG presentation attributeglyph-orientation-vertical: "glyph-orientation-vertical".static final StringThe name for the SVGheightattribute: "height".static final StringThe name for the SVGidattribute: "id".static final StringThe name for the SVG presentation attributeimage-rendering: "image-rendering".static final StringThe name for the SVG presentation attributekerning: "kerning".static final StringThe name for the SVGlangattribute: "lang".static final StringThe name for the SVGlengthAdjustattribute: "lengthAdjust".static final StringThe name for the SVG presentation attributeletter-spacing: "letter-spacing".static final StringThe name for the SVG presentation attributelighting-color: "lighting-color".static final StringThe name for the SVG presentation attributemarker-end: "marker-end".static final StringThe name for the SVG marker attributemarkerHeight: "markerHeight".static final StringThe name for the SVG presentation attributemarker-mid: "marker-mid".static final StringThe name for the SVG presentation attributemarker-start: "marker-start".static final StringThe name for the SVG marker attributemarkerUnits: "markerUnits".static final StringThe name for the SVG marker attributemarkerWidth: "markerWidth".static final StringThe name for the SVG presentation attributemask: "mask".static final StringThe name for the SVG event attributeonabort: "onabort".static final StringThe name for the SVG event attributeonactivate: "onactivate".static final StringThe name for the SVG event attributeoncancel: "oncancel".static final StringThe name for the SVG event attributeoncanplay: "oncanplay".static final StringThe name for the SVG event attributeoncanplaythrough: "oncanplaythrough".static final StringThe name for the SVG event attributeonchange: "onchange".static final StringThe name for the SVG event attributeonclick: "onclick".static final StringThe name for the SVG event attributeonclose: "onclose".static final StringThe name for the SVG document element event attributeoncopy: "oncopy".static final StringThe name for the SVG event attributeoncuechange: "oncuechange".static final StringThe name for the SVG document element event attributeoncut: "oncut".static final StringThe name for the SVG event attributeondblclick: "ondblclick".static final StringThe name for the SVG event attributeondrag: "ondrag".static final StringThe name for the SVG event attributeondragend: "ondragend".static final StringThe name for the SVG event attributeondragenter: "ondragenter".static final StringThe name for the SVG event attributeondragexit: "ondragexit".static final StringThe name for the SVG event attributeondragleave: "ondragleave".static final StringThe name for the SVG event attributeondragover: "ondragover".static final StringThe name for the SVG event attributeondragstart: "ondragstart".static final StringThe name for the SVG event attributeondrop: "ondrop".static final StringThe name for the SVG event attributeondurationchange: "ondurationchange".static final StringThe name for the SVG event attributeonemptied: "onemptied".static final StringThe name for the SVG event attributeonended: "onended".static final StringThe name for the SVG event attributeonerror: "onerror".static final StringThe name for the SVG event attributeonfocus: "onfocus".static final StringThe name for the SVG event attributeonfocusin: "onfocusin".static final StringThe name for the SVG event attributeonfocusout: "onfocusout".static final StringThe name for the SVG event attributeoninput: "oninput".static final StringThe name for the SVG event attributeoninvalid: "oninvalid".static final StringThe name for the SVG event attributeonkeydown: "onkeydown".static final StringThe name for the SVG event attributeonkeypress: "onkeypress".static final StringThe name for the SVG event attributeonkeyup: "onkeyup".static final StringThe name for the SVG event attributeonload: "onload".static final StringThe name for the SVG event attributeonloadeddata: "onloadeddata".static final StringThe name for the SVG event attributeonloadedmetadata: "onloadedmetadata".static final StringThe name for the SVG event attributeonloadstart: "onloadstart".static final StringThe name for the SVG event attributeonmousedown: "onmousedown".static final StringThe name for the SVG event attributeonmouseenter: "onmouseenter".static final StringThe name for the SVG event attributeonmouseleave: "onmouseleave".static final StringThe name for the SVG event attributeonmousemove: "onmousemove".static final StringThe name for the SVG event attributeonmouseout: "onmouseout".static final StringThe name for the SVG event attributeonmouseover: "onmouseover".static final StringThe name for the SVG event attributeonmouseup: "onmouseup".static final StringThe name for the SVG event attributeonmousewheel: "onmousewheel".static final StringThe name for the SVG document element event attributeonpaste: "onpaste".static final StringThe name for the SVG event attributeonpause: "onpause".static final StringThe name for the SVG event attributeonplay: "onplay".static final StringThe name for the SVG event attributeonplaying: "onplaying".static final StringThe name for the SVG event attributeonprogress: "onprogress".static final StringThe name for the SVG event attributeonratechange: "onratechange".static final StringThe name for the SVG event attributeonreset: "onreset".static final StringThe name for the SVG event attributeonresize: "onresize".static final StringThe name for the SVG event attributeonscroll: "onscroll".static final StringThe name for the SVG event attributeonseeked: "onseeked".static final StringThe name for the SVG event attributeonseeking: "onseeking".static final StringThe name for the SVG event attributeonselect: "onselect".static final StringThe name for the SVG event attributeonshow: "onshow".static final StringThe name for the SVG event attributeonstalled: "onstalled".static final StringThe name for the SVG event attributeonsubmit: "onsubmit".static final StringThe name for the SVG event attributeonsuspend: "onsuspend".static final StringThe name for the SVG event attributeontimeupdate: "ontimeupdate".static final StringThe name for the SVG event attributeontoggle: "ontoggle".static final StringThe name for the SVG event attributeonunload: "onunload".static final StringThe name for the SVG event attributeonvolumechange: "onvolumechange".static final StringThe name for the SVG event attributeonwaiting: "onwaiting".static final StringThe name for the SVG presentation attributeopacity: "opacity".static final StringThe name for the SVG marker attributeorient: "orient".static final StringThe name for the SVG presentation attributeoverflow: "overflow".static final StringThe name for the SVG attributedthat defines a path: "d".static final StringThe name for the SVG attributepathLength: "pathLength".static final StringThe name for the SVG presentation attributepointer-events: "pointer-events".static final StringThe name for the SVG marker attributeposition: "position".static final StringThe name for the SVGpreserveAspectRatioattribute: "preserveAspectRatio".static final StringThe name for the attribute that is used to set references in SVG: "xlink:href".static final StringThe name for the SVG marker attributerefX: "refX".static final StringThe name for the SVG marker attributerefY: "refY".static final StringThe name for the SVG attribute that defines the extensions that are required to render an element: "requiredExtensions".static final StringThe name for the SVG attribute that defines the features that are required to render an element: "requiredFeatures".static final StringThe name for the SVGrotateattribute: "rotate".static final StringThe name for the SVGrxattribute: "rx".static final StringThe name for the SVGryattribute: "ry".static final StringThe name for the SVG presentation attributeshape-rendering: "shape-rendering".static final StringThe name for the SVG presentation attributestop-color: "stop-color".static final StringThe name for the SVG presentation attributestop-opacity: "stop-opacity".static final StringThe name for the SVG presentation attributestroke: "stroke".static final StringThe name for the SVG presentation attributestroke-dasharray: "stroke-dasharray".static final StringThe name for the SVG presentation attributestroke-dashoffset: "stroke-dashoffset".static final StringThe name for the SVG presentation attributestroke-linecap: "stroke-linecap".static final StringThe name for the SVG presentation attributestroke-linejoin: "stroke-linejoin".static final StringThe name for the SVG presentation attributestroke-miterlimit: "stroke-miterlimit".static final StringThe name for the SVG presentation attributestroke-opacity: "stroke-opacity".static final StringThe name for the SVG presentation attributestroke-width: "stroke-width".static final StringThe name for the SVG CSSstyleattribute: "style".static final StringThe name for the SVG attribute that defines the languages that are supported by an SVG element: "systemLanguage".
It will be rendered only when the current system language matches one entry in the list.static final StringThe name for the SVGtabindexattribute: "tabindex".static final StringThe name for the SVG presentation attributetext-anchor: "text-anchor".static final StringThe name for the SVG presentation attributetext-decoration: "text-decoration".static final StringThe name for the SVGtextLengthattribute: "textLength".static final StringThe name for the SVG presentation attributetext-rendering: "text-rendering".static final StringThe name for the SVG presentation attributetransform: "transform".static final StringThe name for the SVG presentation attributeunicode-bidi: "unicode-bidi".static final StringThe name for the SVG presentation attributevector-effect: "vector-effect".static final StringThe name for the SVGversionattribute: "version".static final StringThe name for the SVGviewBoxattribute: "viewBox".static final StringThe name for the SVG presentation attributevisibility: "visibility".static final StringThe name for the SVGwidthattribute: "width".static final StringThe name for the SVG presentation attributeword-spacing: "word-spacing".static final StringThe name for the SVG presentation attributewriting-mode: "writing-mode".static final StringThe name for the SVGxcoordinate attribute: "x".static final StringThe name for the SVGx1coordinate attribute: "x1".static final StringThe name for the SVGx2coordinate attribute: "x2".static final StringThe name for the XLinkactuateattribute: "xlink:actuate".static final StringThe name for the XLinkarcroleattribute: "xlink:arcrole".static final StringThe name for the XLink attribute that is used to set references in SVG: "xlink:href".static final StringThe name for the XLinkroleattribute: "xlink:role".static final StringThe name for the XLinkshowattribute: "xlink:show".static final StringThe name for the XLinktitleattribute: "xlink:title".static final StringThe name for the XLinktypeattribute: "xlink:type".static final StringThe name for the SVGycoordinate attribute: "y".static final StringThe name for the SVGy1coordinate attribute: "y1".static final StringThe name for the SVGy2coordinate attribute: "y2".static final StringThe name for the SVGzoomAndPanattribute: "zoomAndPan".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG anchor element: "a".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element representing a circle shape: "circle".static final StringThe name for the SVG element that defines a clipping path: "clipPath".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element that holds definitions of elements that will be referenced elsewhere: "defs".static final StringThe name for the SVG element that can be added to any other element to assign a description to it: "desc".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element representing an ellipse shape: "ellipse".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG group element: "g".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element representing a line: "line".static final StringThe name for the SVG<marker>element: "marker".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element representing a polygon shape: "polygon".static final StringThe name for the SVG element representing a poly line: "polyline".static final StringThe name for the SVG element representing a rectangle shape: "rect".static final StringThe name for the SVG root element: "svg".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element<solidcolor>: "solidcolor".
The form<solidColor>had been abandoned before the final specification was published.static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG<symbol>element that allows to create reusable parts of an image: "symbol".static final StringThe name for an SVG element holding text: "text".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element that can be added to any other element to assign a title to it: "title".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG<tspan>element: "tspan".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element that is used to clone other elements: "use".static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the SVG element TODO - Add the proper description!static final StringThe name for the XMLbaseattribute: "xml:base". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final SVGPathElementarcTo(double rx, double ry, double rotation, boolean largeArc, boolean sweep, double x, double y) Creates an instance of the path elementSVGPathElement.SVGArcTothat uses relative coordinates.static final SVGPathElementarcTo(long rx, long ry, long rotation, boolean largeArc, boolean sweep, long x, long y) Creates an instance of the path elementSVGPathElement.SVGArcTothat uses relative coordinates.static final SVGPathElementarcToAbs(double rx, double ry, double rotation, boolean largeArc, boolean sweep, double x, double y) Creates an instance of the path elementSVGPathElement.SVGArcTothat uses absolute coordinates.static final SVGPathElementarcToAbs(long rx, long ry, long rotation, boolean largeArc, boolean sweep, long x, long y) Creates an instance of the path elementSVGPathElement.SVGArcTothat uses absolute coordinates.static final SVGNumbercentimeter(double value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.CENTIMETER.static final SVGNumbercentimeter(long value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.CENTIMETER.static final SVGElementcloneElement(SVGElement element) Clones the given element.
The clone will be semantically identical to the given element (it looks the same in the final output), but it will not be of the same Java type.static final SVGPathElementCreates an instance of the path elementSVGPathElement.SVGClosePaththat uses relative coordinates.static final SVGColorcolor()Returns theSVGColorinstance with the type "inherit".static final SVGColorcolor(boolean flag, int red, int green, int blue) Creates a newSVGColorinstance from the given colour values.
Allowed are the values from 0 to 255, or 0% to 100% respectively, other values will be normalised accordingly.static final SVGColorcolor(int red, int green, int blue) Creates a newSVGColorinstance from the given colour values.
Allowed are the values from 0 to 255, other values will be normalised accordingly.static final SVGColorCreates a newSVGColorinstance, using the given argument as a CSS colour name.
The given argument may not benullnor the empty String, but it will not undergo any further validation.private static final NamespaceCreates the namespace instance that is used for all Creative Commons stuff.static final SVGClipPathcreateClipPath(String id) Creates an SVG<clipPath>element instance.static final SVGClipPathcreateClipPath(String id, SVG parent) Creates an SVG<clipPath>element instance and adds it to the given<svg>element.static final SVGGenericElementcreateGenericElement(String elementName) Creates a generic SVG element.
This method should be used to create an SVG element that does not have (yet) its specific implementation class.static final SVGGroupCreates an SVG<g>element instance.static final SVGGroupcreateGroup(SVGElementWithChildren parent) Creates an SVG<g>element instance.static final SVGLineCreates an SVG<line>element instance.static final SVGLinecreateLine(SVGElementWithChildren parent) Creates an SVG<line>element instance and adds it to the given parent element.static final SVGLinecreateLine(SVGElementWithChildren parent, SVGNumber x1, SVGNumber y1, SVGNumber x2, SVGNumber y2) Creates an SVG<line>element instance with the given start and end points and adds it to the given parent element.static final SVGLinecreateLine(SVGNumber x1, SVGNumber y1, SVGNumber x2, SVGNumber y2) Creates an SVG<line>element instance with the given start and end points.static final SVGMarkercreateMarker(String id, SVG parent) Creates an SVG<marker>element instance and adds it to the given<svg>element.static final SVGPathCreates an SVG<path>element instance.static final SVGPathcreatePath(SVGElementWithChildren parent) Creates an SVG<Path>element instance and adds it to the given parent element.static final SVGPathcreatePath(SVGElementWithChildren parent, SVGPathElement... pathDefinition) Creates an SVG<path>element instance with the given path definition and adds it to the given parent element.static final SVGPathcreatePath(SVGPathElement... pathDefinition) Creates an SVG<path>element instance with the given path definition.static final SVGPositionedMarkerCreates an SVG<marker>element instance that is used as a positioned marker.static final SVGPositionedMarkercreatePositionedMarker(String id, SVGElementWithChildren parent) Creates an SVG<marker>element instance that is used as a positioned marker and adds it to the given parent.private static final NamespaceCreates the namespace instance that is used for all RDF stuff.static final SVGRectangleCreates an SVG<rect>element instance.static final SVGRectangleCreates an SVG<rect>element instance and adds it to the given parent element.static final SVGRectanglecreateRectangle(SVGElementWithChildren parent, SVGNumber x, SVGNumber y, SVGNumber width, SVGNumber height) Creates an SVG<rect>element instance with the given start and end points and adds it to the given parent element.static final SVGRectanglecreateRectangle(SVGNumber x, SVGNumber y, SVGNumber width, SVGNumber height) Creates an SVG<rect>element instance with the given start and end points.static final SVGStyleCreates an SVG<style>element instance.static final SVGStylecreateStyle(CharSequence... styles) Creates an SVG<style>element instance and adds it to the given<svg>element.static final SVGStylecreateStyle(SVG parent) Creates an SVG<style>element instance and adds it to the given<svg>element.static final SVGStylecreateStyle(SVG parent, CharSequence... styles) Creates an SVG<style>element instance and adds it to the given<svg>element.static final SVGCreates an SVG<svg>element instance.static final SVGcreateSVG(SVGElementWithChildren parent) Creates an SVG<svg>element instance and adds it to the given parent.static final XMLDocumentcreateSVGDocument(SVG rootElement) Creates an XML document instance with the given<svg>element as the root element.private static final NamespacecreateSVGNamespace(String prefix) Creates the namespace instance that is used for all SVG stuff.static final SVGSymbolcreateSymbol(String id) Creates an SVG<symbol>element instance.static final SVGSymbolcreateSymbol(String id, SVG parent) Creates an SVG<symbol>element instance and adds it to the given<svg>element.static final SVGTextCreates an SVG<text>element instance.static final SVGTextcreateText(CharSequence text) Creates an SVG<text>element instance and adds it to the given parent.static final SVGTextcreateText(SVGElementWithChildren parent) Creates an SVG<text>element instance and adds it to the given parent.static final SVGTextcreateText(SVGElementWithChildren parent, CharSequence text) Creates an SVG<text>element instance and adds it to the given parent.static final SVGTSpanCreates an SVG<tspan>element instance.static final SVGTSpancreateTSpan(CharSequence text) Creates an SVG<tspan>element as child of the given<text>.static final SVGTSpancreateTSpan(SVGText parent) Creates an SVG<tspan>element as child of the given<text>.static final SVGTSpancreateTSpan(SVGText parent, CharSequence text) Creates an SVG<tspan>element as child of the given<text>.static final SVGTSpancreateTSpan(SVGTSpan parent) Creates an SVG<tspan>element as child of the given<tspan>.static final SVGTSpancreateTSpan(SVGTSpan parent, CharSequence text) Creates an SVG<tspan>element as child of the given<tspan>.static final SVGUseCreates an SVG<use>element instance.static final SVGUsecreateUse(SVGElementWithChildren parent, URI reference) Creates an SVG<use>element instance and adds it to the given parent.private static final NamespaceCreates the namespace instance that is used for all XLINK stuff.static final SVGPathElementcubicCurveTo(double x2, double y2, double x, double y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses relative coordinates.static final SVGPathElementcubicCurveTo(double x1, double y1, double x2, double y2, double x, double y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses relative coordinates.static final SVGPathElementcubicCurveTo(long x2, long y2, long x, long y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses relative coordinates.static final SVGPathElementcubicCurveTo(long x1, long y1, long x2, long y2, long x, long y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses relative coordinates.static final SVGPathElementcubicCurveToAbs(double x2, double y2, double x, double y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses absolute coordinates.static final SVGPathElementcubicCurveToAbs(double x1, double y1, double x2, double y2, double x, double y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses absolute coordinates.static final SVGPathElementcubicCurveToAbs(long x2, long y2, long x, long y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses absolute coordinates.static final SVGPathElementcubicCurveToAbs(long x1, long y1, long x2, long y2, long x, long y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses absolute coordinates.static final SVGNumber.SVGDegreedegree(double value) Creates an instance ofSVGNumber.SVGDegreewith the given numeric type.static final SVGNumber.SVGDegreedegree(long value) Creates an instance ofSVGNumber.SVGDegreewith the given numeric type.static final SVGNumberem(double value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.EM.static final SVGNumberem(long value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.EM.static final SVGNumberex(double value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.EX.static final SVGNumberex(long value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.EX.static final SVGPathElementhLineTo(double x) Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses relative coordinates.static final SVGPathElementhLineTo(long x) Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses relative coordinates.static final SVGPathElementhLineToAbs(double x) Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses absolute coordinates.static final SVGPathElementhLineToAbs(long x) Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses absolute coordinates.static final SVGNumberinch(double value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.INCH.static final SVGNumberinch(long value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.INCH.static final SVGPathElementlineTo(double x, double y) Creates an instance of the path elementSVGPathElement.SVGLineTothat uses relative coordinates.static final SVGPathElementlineTo(long x, long y) Creates an instance of the path elementSVGPathElement.SVGLineTothat uses relative coordinates.static final SVGPathElementlineToAbs(double x, double y) Creates an instance of the path elementSVGPathElement.SVGLineTothat uses absolute coordinates.static final SVGPathElementlineToAbs(long x, long y) Creates an instance of the path elementSVGPathElement.SVGLineTothat uses absolute coordinates.static final SVGTransform.SVGMatrixmatrix(double a, double b, double c, double d, double e, double f) Creates an instance ofSVGTransform.SVGMatrix.static final SVGTransform.SVGMatrixmatrix(long a, long b, long c, long d, long e, long f) Creates an instance ofSVGTransform.SVGMatrix.static final SVGNumber.SVGMillimetermillimeter(double value) Creates an instance ofSVGNumber.SVGMillimeterwith the given numeric type.static final SVGNumber.SVGMillimetermillimeter(long value) Creates an instance ofSVGNumber.SVGMillimeterwith the given numeric type.static final SVGPathElementmoveTo(double x, double y) Creates an instance of the path elementSVGPathElement.SVGMoveTothat uses relative coordinates.static final SVGPathElementmoveTo(long x, long y) Creates an instance of the path elementSVGPathElement.SVGMoveTothat uses relative coordinates.static final SVGPathElementmoveToAbs(double x, double y) Creates an instance of the path elementSVGPathElement.SVGMoveTothat uses absolute coordinates.static final SVGPathElementmoveToAbs(long x, long y) Creates an instance of the path elementSVGPathElement.SVGMoveTothat uses absolute coordinates.static final SVGNumber.SVGUserUnitValuenumber(double value) Creates an instance ofSVGNumber.SVGUserUnitValuewith the given numeric type.static final SVGNumber.SVGUserUnitValuenumber(long value) Creates an instance ofSVGNumber.SVGUserUnitValuewith the given numeric type.numberList(SVGNumber... values) static final SVGNumber[]Creates an array ofSVGNumberinstances.static final SVGNumber.SVGPercentpercent(double value) Creates an instance ofSVGNumber.SVGPercentwith the given numeric type.static final SVGNumber.SVGPercentpercent(long value) Creates an instance ofSVGNumber.SVGPercentwith the given numeric type.static final SVGNumberpica(double value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.PICA.static final SVGNumberpica(long value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.PICA.static final SVGNumber.SVGPixelpixel(double value) Creates an instance ofSVGNumber.SVGPixelwith the given numeric type.static final SVGNumber.SVGPixelpixel(long value) Creates an instance ofSVGNumber.SVGPixelwith the given numeric type.static final SVGNumberpoint(double value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.POINT.static final SVGNumberpoint(long value) Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.POINT.static final SVGPathElementquadraticCurveTo(double x, double y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses relative coordinates.static final SVGPathElementquadraticCurveTo(double x1, double y1, double x, double y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses relative coordinates.static final SVGPathElementquadraticCurveTo(long x, long y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses relative coordinates.static final SVGPathElementquadraticCurveTo(long x1, long y1, long x, long y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses relative coordinates.static final SVGPathElementquadraticCurveToAbs(double x, double y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses absolute coordinates.static final SVGPathElementquadraticCurveToAbs(double x1, double y1, double x, double y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses absolute coordinates.static final SVGPathElementquadraticCurveToAbs(long x, long y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses absolute coordinates.static final SVGPathElementquadraticCurveToAbs(long x1, long y1, long x, long y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses absolute coordinates.static final SVGTransform.SVGRotaterotate(double a) Creates an instance ofSVGTransform.SVGRotate.static final SVGTransform.SVGRotaterotate(double a, double x, double y) Creates an instance ofSVGTransform.SVGRotate.static final SVGTransform.SVGRotaterotate(long a) Creates an instance ofSVGTransform.SVGRotate.static final SVGTransform.SVGRotaterotate(long a, long x, long y) Creates an instance ofSVGTransform.SVGRotate.static final SVGTransform.SVGScalescale(double x) Creates an instance ofSVGTransform.SVGScale.static final SVGTransform.SVGScalescale(double x, double y) Creates an instance ofSVGTransform.SVGScale.static final SVGTransform.SVGScalescale(long x) Creates an instance ofSVGTransform.SVGScale.static final SVGTransform.SVGScalescale(long x, long y) Creates an instance ofSVGTransform.SVGScale.static final SVGTransform.SVGSkewXskewX(double a) Creates an instance ofSVGTransform.SVGSkewX.static final SVGTransform.SVGSkewXskewX(long a) Creates an instance ofSVGTransform.SVGSkewX.static final SVGTransform.SVGSkewYskewY(double a) Creates an instance ofSVGTransform.SVGSkewY.static final SVGTransform.SVGSkewYskewY(long a) Creates an instance ofSVGTransform.SVGSkewY.static final SVGTransform.SVGTranslatetranslate(double x) Creates an instance ofSVGTransform.SVGTranslate.static final SVGTransform.SVGTranslatetranslate(double x, double y) Creates an instance ofSVGTransform.SVGTranslate.static final SVGTransform.SVGTranslatetranslate(long x) Creates an instance ofSVGTransform.SVGTranslate.static final SVGTransform.SVGTranslatetranslate(long x, long y) Creates an instance ofSVGTransform.SVGTranslate.static final SVGPathElementvLineTo(double y) Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses relative coordinates.static final SVGPathElementvLineTo(long y) Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses relative coordinates.static final SVGPathElementvLineToAbs(double y) Creates an instance of the path elementSVGPathElement.SVGVLineTothat uses absolute coordinates.static final SVGPathElementvLineToAbs(long y) Creates an instance of the path elementSVGPathElement.SVGVLineTothat uses absolute coordinates.
-
Field Details
-
SVG_PREFIX
-
SVGATTRIBUTE_AlignmentBaseline
-
SVGATTRIBUTE_BaselineShift
-
SVGATTRIBUTE_BaseProfile
-
SVGATTRIBUTE_Class
-
SVGATTRIBUTE_Clip
-
SVGATTRIBUTE_ClipPath
-
SVGATTRIBUTE_ClipRule
-
SVGATTRIBUTE_ClipPathUnits
-
SVGATTRIBUTE_Color
-
SVGATTRIBUTE_ColorInterpolation
-
SVGATTRIBUTE_ColorInterpolationFilters
-
SVGATTRIBUTE_ColorProfile
-
SVGATTRIBUTE_ColorRendering
-
SVGATTRIBUTE_ContentScriptType
-
SVGATTRIBUTE_Cursor
-
SVGATTRIBUTE_Direction
-
SVGATTRIBUTE_Display
-
SVGATTRIBUTE_DominantBaseline
-
SVGATTRIBUTE_dx
-
SVGATTRIBUTE_dy
-
SVGATTRIBUTE_EnableBackground
-
SVGATTRIBUTE_ExternalResourcesRequired
-
SVGATTRIBUTE_Fill
-
SVGATTRIBUTE_FillOpacity
-
SVGATTRIBUTE_FillRule
-
SVGATTRIBUTE_Filter
-
SVGATTRIBUTE_FloodColor
-
SVGATTRIBUTE_FloodOpacity
-
SVGATTRIBUTE_FontFamily
-
SVGATTRIBUTE_FontSize
-
SVGATTRIBUTE_FontSizeAdjust
-
SVGATTRIBUTE_FontStretch
-
SVGATTRIBUTE_FontStyle
-
SVGATTRIBUTE_FontVariant
-
SVGATTRIBUTE_FontWeight
-
SVGATTRIBUTE_GlyphOrientationHorizontal
-
SVGATTRIBUTE_GlyphOrientationVertical
-
SVGATTRIBUTE_Height
-
SVGATTRIBUTE_Id
-
SVGATTRIBUTE_ImageRendering
-
SVGATTRIBUTE_Kerning
-
SVGATTRIBUTE_Lang
-
SVGATTRIBUTE_LengthAdjust
-
SVGATTRIBUTE_LetterSpacing
-
SVGATTRIBUTE_LightingColor
-
SVGATTRIBUTE_MarkerEnd
-
SVGATTRIBUTE_MarkerHeight
-
SVGATTRIBUTE_MarkerMid
-
SVGATTRIBUTE_MarkerStart
-
SVGATTRIBUTE_MarkerUnits
-
SVGATTRIBUTE_MarkerWidth
-
SVGATTRIBUTE_Mask
-
SVGATTRIBUTE_OnAbort
-
SVGATTRIBUTE_OnActivate
-
SVGATTRIBUTE_OnCancel
-
SVGATTRIBUTE_OnCanPlay
-
SVGATTRIBUTE_OnCanPlayThrough
-
SVGATTRIBUTE_OnChange
-
SVGATTRIBUTE_OnClick
-
SVGATTRIBUTE_OnClose
-
SVGATTRIBUTE_OnCopy
-
SVGATTRIBUTE_OnCueChange
-
SVGATTRIBUTE_OnCut
-
SVGATTRIBUTE_OnDblClick
-
SVGATTRIBUTE_OnDrag
-
SVGATTRIBUTE_OnDragEnd
-
SVGATTRIBUTE_OnDragEnter
-
SVGATTRIBUTE_OnDragExit
-
SVGATTRIBUTE_OnDragLeave
-
SVGATTRIBUTE_OnDragOver
-
SVGATTRIBUTE_OnDragStart
-
SVGATTRIBUTE_OnDrop
-
SVGATTRIBUTE_OnDurationChange
-
SVGATTRIBUTE_OnEmptied
-
SVGATTRIBUTE_OnEnded
-
SVGATTRIBUTE_OnError
-
SVGATTRIBUTE_OnFocus
-
SVGATTRIBUTE_OnFocusIn
-
SVGATTRIBUTE_OnFocusOut
-
SVGATTRIBUTE_OnInput
-
SVGATTRIBUTE_OnInvalid
-
SVGATTRIBUTE_OnKeyDown
-
SVGATTRIBUTE_OnKeyPress
-
SVGATTRIBUTE_OnKeyUp
-
SVGATTRIBUTE_OnLoad
-
SVGATTRIBUTE_OnLoadedData
-
SVGATTRIBUTE_OnLoadedMetadata
-
SVGATTRIBUTE_OnLoadStart
-
SVGATTRIBUTE_OnMouseDown
-
SVGATTRIBUTE_OnMouseEnter
-
SVGATTRIBUTE_OnMouseLeave
-
SVGATTRIBUTE_OnMouseMove
-
SVGATTRIBUTE_OnMouseOut
-
SVGATTRIBUTE_OnMouseOver
-
SVGATTRIBUTE_OnMouseUp
-
SVGATTRIBUTE_OnMouseWheel
-
SVGATTRIBUTE_OnPaste
-
SVGATTRIBUTE_OnPause
-
SVGATTRIBUTE_OnPlay
-
SVGATTRIBUTE_OnPlaying
-
SVGATTRIBUTE_OnProgress
-
SVGATTRIBUTE_OnRateChange
-
SVGATTRIBUTE_OnReset
-
SVGATTRIBUTE_OnResize
-
SVGATTRIBUTE_OnScroll
-
SVGATTRIBUTE_OnSeeked
-
SVGATTRIBUTE_OnSeeking
-
SVGATTRIBUTE_OnSelect
-
SVGATTRIBUTE_OnShow
-
SVGATTRIBUTE_OnStalled
-
SVGATTRIBUTE_OnSubmit
-
SVGATTRIBUTE_OnSuspend
-
SVGATTRIBUTE_OnTimeUpdate
-
SVGATTRIBUTE_OnToggle
-
SVGATTRIBUTE_OnUnload
-
SVGATTRIBUTE_OnVolumeChange
-
SVGATTRIBUTE_OnWaiting
-
SVGATTRIBUTE_Opacity
-
SVGATTRIBUTE_Orientation
-
SVGATTRIBUTE_Overflow
-
SVGATTRIBUTE_PathDefinition
-
SVGATTRIBUTE_PathLength
-
SVGATTRIBUTE_PointerEvents
-
SVGATTRIBUTE_Position
-
SVGATTRIBUTE_PreserveAspectRatio
-
SVGATTRIBUTE_Reference
-
SVGATTRIBUTE_ReferenceX
-
SVGATTRIBUTE_ReferenceY
-
SVGATTRIBUTE_RequiredExtensions
-
SVGATTRIBUTE_RequiredFeatures
-
SVGATTRIBUTE_Rotate
-
SVGATTRIBUTE_rx
-
SVGATTRIBUTE_ry
-
SVGATTRIBUTE_ShapeRendering
-
SVGATTRIBUTE_StopColor
-
SVGATTRIBUTE_StopOpacity
-
SVGATTRIBUTE_Stroke
-
SVGATTRIBUTE_StrokeDashArray
-
SVGATTRIBUTE_StrokeDashOffset
-
SVGATTRIBUTE_StrokeLineCap
-
SVGATTRIBUTE_StrokeLineJoin
-
SVGATTRIBUTE_StrokeMiterLimit
-
SVGATTRIBUTE_StrokeOpacity
-
SVGATTRIBUTE_StrokeWidth
-
SVGATTRIBUTE_Style
-
SVGATTRIBUTE_SystemLanguage
The name for the SVG attribute that defines the languages that are supported by an SVG element: "systemLanguage".
It will be rendered only when the current system language matches one entry in the list.- See Also:
-
SVGATTRIBUTE_TabIndex
-
SVGATTRIBUTE_TextAnchor
-
SVGATTRIBUTE_TextDecoration
-
SVGATTRIBUTE_TextLength
-
SVGATTRIBUTE_TextRendering
-
SVGATTRIBUTE_Transform
-
SVGATTRIBUTE_UnicodeBidi
-
SVGATTRIBUTE_VectorEffect
-
SVGATTRIBUTE_Version
-
SVGATTRIBUTE_ViewBox
-
SVGATTRIBUTE_Visibility
-
SVGATTRIBUTE_Width
-
SVGATTRIBUTE_WordSpacing
-
SVGATTRIBUTE_WritingMode
-
SVGATTRIBUTE_x
-
SVGATTRIBUTE_x1
-
SVGATTRIBUTE_x2
-
SVGATTRIBUTE_XLink_Actuate
-
SVGATTRIBUTE_XLink_ArcRole
-
SVGATTRIBUTE_XLink_Reference
-
SVGATTRIBUTE_XLink_Role
-
SVGATTRIBUTE_XLink_Show
-
SVGATTRIBUTE_XLink_Title
-
SVGATTRIBUTE_XLink_Type
-
SVGATTRIBUTE_y
-
SVGATTRIBUTE_y1
-
SVGATTRIBUTE_y2
-
SVGATTRIBUTE_ZoomAndPan
-
SVGELEMENT_AltGlyph
-
SVGELEMENT_AltGlyphDef
-
SVGELEMENT_AltGlyphItem
-
SVGELEMENT_Anchor
-
SVGELEMENT_Animate
-
SVGELEMENT_AnimateColor
-
SVGELEMENT_AnimateMotion
-
SVGELEMENT_AnimateTransform
-
SVGELEMENT_Circle
-
SVGELEMENT_ClipPath
-
SVGELEMENT_ColorProfile
-
SVGELEMENT_Cursor
-
SVGELEMENT_Defs
-
SVGELEMENT_Description
-
SVGELEMENT_Discard
-
SVGELEMENT_Ellipse
-
SVGELEMENT_Filter
-
SVGELEMENT_Filter_feBlend
-
SVGELEMENT_Filter_feColorMatrix
-
SVGELEMENT_Filter_feComponentTransfer
-
SVGELEMENT_Filter_feComposite
-
SVGELEMENT_Filter_feConvolveMatrix
-
SVGELEMENT_Filter_feDiffuseLighting
-
SVGELEMENT_Filter_feDisplacementMap
-
SVGELEMENT_Filter_feDropShadow
-
SVGELEMENT_Filter_feFlood
-
SVGELEMENT_Filter_feFuncA
-
SVGELEMENT_Filter_feFuncB
-
SVGELEMENT_Filter_feFuncG
-
SVGELEMENT_Filter_feFuncR
-
SVGELEMENT_Filter_feGaussianBlur
-
SVGELEMENT_Filter_feImage
-
SVGELEMENT_Filter_feMerge
-
SVGELEMENT_Filter_feMergeNode
-
SVGELEMENT_Filter_feMorphology
-
SVGELEMENT_Filter_feOffset
-
SVGELEMENT_Filter_feSpecularLighting
-
SVGELEMENT_Filter_feTile
-
SVGELEMENT_Filter_feTurbulence
-
SVGELEMENT_Font
-
SVGELEMENT_FontFace
-
SVGELEMENT_FontFaceFormat
-
SVGELEMENT_FontFaceName
-
SVGELEMENT_FontFaceSource
-
SVGELEMENT_FontFaceURI
-
SVGELEMENT_ForeignObject
-
SVGELEMENT_Glyph
-
SVGELEMENT_GlyphRef
-
SVGELEMENT_GradientLinear
-
SVGELEMENT_GradientMesh
-
SVGELEMENT_GradientRadial
-
SVGELEMENT_Group
-
SVGELEMENT_Hatch
-
SVGELEMENT_HatchPath
-
SVGELEMENT_HKern
-
SVGELEMENT_Image
-
SVGELEMENT_Light_feDistantLight
-
SVGELEMENT_Light_fePointLight
-
SVGELEMENT_Light_feSpotLight
-
SVGELEMENT_Line
-
SVGELEMENT_Marker
-
SVGELEMENT_Mask
-
SVGELEMENT_Mesh
-
SVGELEMENT_MeshPatch
-
SVGELEMENT_MeshRow
-
SVGELEMENT_Metadata
-
SVGELEMENT_MissingGlyph
-
SVGELEMENT_MPath
-
SVGELEMENT_Path
-
SVGELEMENT_Pattern
-
SVGELEMENT_Polygon
-
SVGELEMENT_PolyLine
-
SVGELEMENT_Rectangle
-
SVGELEMENT_Root
-
SVGELEMENT_Script
-
SVGELEMENT_Set
-
SVGELEMENT_SolidColor
-
SVGELEMENT_Stop
-
SVGELEMENT_Style
-
SVGELEMENT_Switch
-
SVGELEMENT_Symbol
-
SVGELEMENT_Text
-
SVGELEMENT_TextPath
-
SVGELEMENT_Title
-
SVGELEMENT_TRef
-
SVGELEMENT_TSpan
-
SVGELEMENT_Unknown
-
SVGELEMENT_Use
-
SVGELEMENT_View
-
SVGELEMENT_VKern
-
XMLATTRIBUTE_Base
-
-
Constructor Details
-
SVGUtils
private SVGUtils()No instance allowed for this class.
-
-
Method Details
-
arcTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement arcTo(double rx, double ry, double rotation, boolean largeArc, boolean sweep, double x, double y) Creates an instance of the path elementSVGPathElement.SVGArcTothat uses relative coordinates.- Parameters:
rx- The x radius for the ellipsis.ry- The y radius for the ellipsis.rotation- The rotation of the x-axis.largeArc-trueto draw the larger arc,falsefor the smaller arc.sweep-trueto draw the arc in "positive-angle" direction,falsefor drawing it in a "negative-angle" direction.x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
arcTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement arcTo(long rx, long ry, long rotation, boolean largeArc, boolean sweep, long x, long y) Creates an instance of the path elementSVGPathElement.SVGArcTothat uses relative coordinates.- Parameters:
rx- The x radius for the ellipsis.ry- The y radius for the ellipsis.rotation- The rotation of the x-axis.largeArc-trueto draw the larger arc,falsefor the smaller arc.sweep-trueto draw the arc in "positive-angle" direction,falsefor drawing it in a "negative-angle" direction.x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
arcToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement arcToAbs(double rx, double ry, double rotation, boolean largeArc, boolean sweep, double x, double y) Creates an instance of the path elementSVGPathElement.SVGArcTothat uses absolute coordinates.- Parameters:
rx- The x radius for the ellipsis.ry- The y radius for the ellipsis.rotation- The rotation of the x-axis.largeArc-trueto draw the larger arc,falsefor the smaller arc.sweep-trueto draw the arc in "positive-angle" direction,falsefor drawing it in a "negative-angle" direction.x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
arcToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement arcToAbs(long rx, long ry, long rotation, boolean largeArc, boolean sweep, long x, long y) Creates an instance of the path elementSVGPathElement.SVGArcTothat uses absolute coordinates.- Parameters:
rx- The x radius for the ellipsis.ry- The y radius for the ellipsis.rotation- The rotation of the x-axis.largeArc-trueto draw the larger arc,falsefor the smaller arc.sweep-trueto draw the arc in "positive-angle" direction,falsefor drawing it in a "negative-angle" direction.x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
centimeter
Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.CENTIMETER.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
centimeter
Creates an instance ofSVGNumberwith the given numeric type and with the unitSVGUnit.CENTIMETER.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
cloneElement
Clones the given element.
The clone will be semantically identical to the given element (it looks the same in the final output), but it will not be of the same Java type.- Parameters:
element- The element to clone.- Returns:
- The clone.
-
closePath
Creates an instance of the path elementSVGPathElement.SVGClosePaththat uses relative coordinates.- Returns:
- The new path element.
-
color
-
color
Creates a newSVGColorinstance from the given colour values.
Allowed are the values from 0 to 255, other values will be normalised accordingly.- Parameters:
red- The red component for the colour.green- The green component for the colour.blue- The blue component for the colour.- Returns:
- The new instance of
SVGColor.
-
color
@API(status=STABLE, since="0.0.5") public static final SVGColor color(boolean flag, int red, int green, int blue) Creates a newSVGColorinstance from the given colour values.
Allowed are the values from 0 to 255, or 0% to 100% respectively, other values will be normalised accordingly.- Parameters:
flag-trueif the given values are percentages,falseif they are absolute values.red- The red component for the colour.green- The green component for the colour.blue- The blue component for the colour.- Returns:
- The new instance of
SVGColor.
-
color
Creates a newSVGColorinstance, using the given argument as a CSS colour name.
The given argument may not benullnor the empty String, but it will not undergo any further validation.- Parameters:
color- The CSS colour name.- Returns:
- The new instance of
SVGColor.
-
createCCNamespace
Creates the namespace instance that is used for all Creative Commons stuff.- Returns:
- The new namespace instance.
-
createClipPath
Creates an SVG<clipPath>element instance.- Parameters:
id- The id for the new<marker>element.- Returns:
- The new
<clipPath>element.
-
createClipPath
@API(status=STABLE, since="0.0.5") public static final SVGClipPath createClipPath(String id, SVG parent) Creates an SVG<clipPath>element instance and adds it to the given<svg>element.- Parameters:
id- The id for the new<marker>element.parent- The parent<svg>element.- Returns:
- The new
<clipPath>element.
-
createGenericElement
@API(status=STABLE, since="0.0.5") public static final SVGGenericElement createGenericElement(String elementName) Creates a generic SVG element.
This method should be used to create an SVG element that does not have (yet) its specific implementation class. It does not work to introduce completely new, still unknown SVG elements, as it checks the given element name.
The returned instance will also check which attributes are allowed for the element it represents as well as which children are allowed to it.- Parameters:
elementName- The name for the new element.- Returns:
- The new generic SVG element.
- Throws:
IllegalArgumentException- The given element name does not denote a define SVG element.
-
createGroup
-
createGroup
@API(status=STABLE, since="0.0.5") public static final SVGGroup createGroup(SVGElementWithChildren parent) Creates an SVG<g>element instance.- Parameters:
parent- The parent for the new<g>element.- Returns:
- The new
<g>element.
-
createLine
-
createLine
@API(status=STABLE, since="0.0.5") public static final SVGLine createLine(SVGElementWithChildren parent) Creates an SVG<line>element instance and adds it to the given parent element.- Parameters:
parent- The parent element.- Returns:
- The new
<line>element.
-
createLine
@API(status=STABLE, since="0.0.5") public static final SVGLine createLine(SVGNumber x1, SVGNumber y1, SVGNumber x2, SVGNumber y2) Creates an SVG<line>element instance with the given start and end points.- Parameters:
x1- The x coordinate for the starting point of the line.y1- The y coordinate for the starting point of the line.x2- The x coordinate for the ending point of the line.y2- The y coordinate for the ending point of the line.- Returns:
- The new
<line>element.
-
createLine
@API(status=STABLE, since="0.0.5") public static final SVGLine createLine(SVGElementWithChildren parent, SVGNumber x1, SVGNumber y1, SVGNumber x2, SVGNumber y2) Creates an SVG<line>element instance with the given start and end points and adds it to the given parent element.- Parameters:
parent- The parent element.x1- The x coordinate for the starting point of the line.y1- The y coordinate for the starting point of the line.x2- The x coordinate for the ending point of the line.y2- The y coordinate for the ending point of the line.- Returns:
- The new
<line>element.
-
createMarker
@API(status=STABLE, since="0.0.5") public static final SVGMarker createMarker(String id, SVG parent) Creates an SVG<marker>element instance and adds it to the given<svg>element.- Parameters:
id- The id for the new<marker>element.parent- The parent<svg>element.- Returns:
- The new
<marker>element.
-
createPath
-
createPath
@API(status=STABLE, since="0.0.5") public static final SVGPath createPath(SVGElementWithChildren parent) Creates an SVG<Path>element instance and adds it to the given parent element.- Parameters:
parent- The parent element.- Returns:
- The new
<path>element.
-
createPath
@API(status=STABLE, since="0.0.5") public static final SVGPath createPath(SVGPathElement... pathDefinition) Creates an SVG<path>element instance with the given path definition.- Parameters:
pathDefinition- The path definition.- Returns:
- The new
<path>element.
-
createPath
@API(status=STABLE, since="0.0.5") public static final SVGPath createPath(SVGElementWithChildren parent, SVGPathElement... pathDefinition) Creates an SVG<path>element instance with the given path definition and adds it to the given parent element.- Parameters:
parent- The parent element.pathDefinition- The path definition.- Returns:
- The new
<path>element.
-
createPositionedMarker
Creates an SVG<marker>element instance that is used as a positioned marker.- Returns:
- The new
<marker>element.
-
createPositionedMarker
@API(status=STABLE, since="0.0.5") public static final SVGPositionedMarker createPositionedMarker(String id, SVGElementWithChildren parent) Creates an SVG<marker>element instance that is used as a positioned marker and adds it to the given parent.- Parameters:
id- The id for the new<marker>element.parent- The parent element.- Returns:
- The new
<marker>element.
-
createRDFNamespace
Creates the namespace instance that is used for all RDF stuff.- Returns:
- The new namespace instance.
-
createRectangle
Creates an SVG<rect>element instance.- Returns:
- The new
<rect>element.
-
createRectangle
@API(status=STABLE, since="0.0.5") public static final SVGRectangle createRectangle(SVGElementWithChildren parent) Creates an SVG<rect>element instance and adds it to the given parent element.- Parameters:
parent- The parent element.- Returns:
- The new
<rect>element.
-
createRectangle
@API(status=STABLE, since="0.0.5") public static final SVGRectangle createRectangle(SVGNumber x, SVGNumber y, SVGNumber width, SVGNumber height) Creates an SVG<rect>element instance with the given start and end points.- Parameters:
x- The x coordinate for the upper left corner of the rectangle.y- The x coordinate for the upper left corner of the rectangle.width- The width of the rectangle.height- The height of the rectangle.- Returns:
- The new
<rect>element.
-
createRectangle
@API(status=STABLE, since="0.0.5") public static final SVGRectangle createRectangle(SVGElementWithChildren parent, SVGNumber x, SVGNumber y, SVGNumber width, SVGNumber height) Creates an SVG<rect>element instance with the given start and end points and adds it to the given parent element.- Parameters:
parent- The parent element.x- The x coordinate for the upper left corner of the rectangle.y- The x coordinate for the upper left corner of the rectangle.width- The width of the rectangle.height- The height of the rectangle.- Returns:
- The new
<rect>element.
-
createSVG
-
createSVG
-
createSVGDocument
@API(status=STABLE, since="0.0.5") public static final XMLDocument createSVGDocument(SVG rootElement) Creates an XML document instance with the given<svg>element as the root element.- Parameters:
rootElement- The root element.- Returns:
- The new SVG document.
-
createSVGNamespace
Creates the namespace instance that is used for all SVG stuff.- Parameters:
prefix- The prefix; can be empty ornull.- Returns:
- The new namespace instance.
-
createStyle
-
createStyle
-
createStyle
Creates an SVG<style>element instance and adds it to the given<svg>element.- Parameters:
styles- The CSS style definitions.- Returns:
- The new
<symbol>element instance.
-
createStyle
@API(status=STABLE, since="0.0.5") public static final SVGStyle createStyle(SVG parent, CharSequence... styles) Creates an SVG<style>element instance and adds it to the given<svg>element.- Parameters:
parent- The parent for the new<style>element.styles- The CSS style definitions.- Returns:
- The new
<symbol>element instance.
-
createSymbol
-
createSymbol
@API(status=STABLE, since="0.0.5") public static final SVGSymbol createSymbol(String id, SVG parent) Creates an SVG<symbol>element instance and adds it to the given<svg>element.- Parameters:
id- The id for the new<symbol>.parent- The parent for the new<symbol>element.- Returns:
- The new
<symbol>element.
-
createText
-
createText
Creates an SVG<text>element instance and adds it to the given parent.- Parameters:
text- The text for the new element.- Returns:
- The new
<text>element.
-
createText
@API(status=STABLE, since="0.0.5") public static final SVGText createText(SVGElementWithChildren parent) Creates an SVG<text>element instance and adds it to the given parent.- Parameters:
parent- The parent for the new<text>element.- Returns:
- The new
<text>element.
-
createText
@API(status=STABLE, since="0.0.5") public static final SVGText createText(SVGElementWithChildren parent, CharSequence text) Creates an SVG<text>element instance and adds it to the given parent.- Parameters:
parent- The parent for the new<text>element.text- The text for the new element.- Returns:
- The new
<text>element.
-
createTSpan
-
createTSpan
Creates an SVG<tspan>element as child of the given<text>.- Parameters:
text- The text for the new<tspan>element.- Returns:
- The new
<tspan>element.
-
createTSpan
-
createTSpan
@API(status=STABLE, since="0.0.5") public static final SVGTSpan createTSpan(SVGText parent, CharSequence text) Creates an SVG<tspan>element as child of the given<text>.- Parameters:
parent- The parent for the new<tspan>element.text- The text for the new<tspan>element.- Returns:
- The new
<tspan>element.
-
createTSpan
-
createTSpan
@API(status=STABLE, since="0.0.5") public static final SVGTSpan createTSpan(SVGTSpan parent, CharSequence text) Creates an SVG<tspan>element as child of the given<tspan>.- Parameters:
parent- The parent for the new<tspan>element.text- The text for the new<tspan>element.- Returns:
- The new
<tspan>element.
-
createUse
-
createUse
@API(status=STABLE, since="0.0.5") public static final SVGUse createUse(SVGElementWithChildren parent, URI reference) Creates an SVG<use>element instance and adds it to the given parent.- Parameters:
parent- The parent for the new<use>element.reference- The reference to the element to clone.- Returns:
- The new
<use>element.
-
createXLINKNamespace
Creates the namespace instance that is used for all XLINK stuff.- Returns:
- The new namespace instance.
-
cubicCurveTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement cubicCurveTo(double x2, double y2, double x, double y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses relative coordinates.- Parameters:
x2- The x coordinate for the second control pointy2- The y coordinate for the second control pointx- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
cubicCurveTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement cubicCurveTo(double x1, double y1, double x2, double y2, double x, double y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses relative coordinates.- Parameters:
x1- The x coordinate for the first control point.y1- The y coordinate for the first control point.x2- The x coordinate for the second control pointy2- The y coordinate for the second control pointx- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
cubicCurveTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement cubicCurveTo(long x2, long y2, long x, long y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses relative coordinates.- Parameters:
x2- The x coordinate for the second control pointy2- The y coordinate for the second control pointx- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
cubicCurveTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement cubicCurveTo(long x1, long y1, long x2, long y2, long x, long y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses relative coordinates.- Parameters:
x1- The x coordinate for the first control point.y1- The y coordinate for the first control point.x2- The x coordinate for the second control pointy2- The y coordinate for the second control pointx- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
cubicCurveToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement cubicCurveToAbs(double x2, double y2, double x, double y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses absolute coordinates.- Parameters:
x2- The x coordinate for the second control pointy2- The y coordinate for the second control pointx- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
cubicCurveToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement cubicCurveToAbs(double x1, double y1, double x2, double y2, double x, double y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses absolute coordinates.- Parameters:
x1- The x coordinate for the first control point.y1- The y coordinate for the first control point.x2- The x coordinate for the second control pointy2- The y coordinate for the second control pointx- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
cubicCurveToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement cubicCurveToAbs(long x2, long y2, long x, long y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses absolute coordinates.- Parameters:
x2- The x coordinate for the second control pointy2- The y coordinate for the second control pointx- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
cubicCurveToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement cubicCurveToAbs(long x1, long y1, long x2, long y2, long x, long y) Creates an instance of the path elementSVGPathElement.SVGCubicCurveTothat uses absolute coordinates.- Parameters:
x1- The x coordinate for the first control point.y1- The y coordinate for the first control point.x2- The x coordinate for the second control pointy2- The y coordinate for the second control pointx- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
degree
Creates an instance ofSVGNumber.SVGDegreewith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
degree
Creates an instance ofSVGNumber.SVGDegreewith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
em
-
em
-
ex
-
ex
-
hLineTo
Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses relative coordinates.- Parameters:
x- The x coordinate for the end point of the line.- Returns:
- The new path element.
-
hLineTo
Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses relative coordinates.- Parameters:
x- The x coordinate for the end point of the line.- Returns:
- The new path element.
-
hLineToAbs
Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses absolute coordinates.- Parameters:
x- The x coordinate for the end point of the line.- Returns:
- The new path element.
-
hLineToAbs
Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses absolute coordinates.- Parameters:
x- The x coordinate for the end point of the line.- Returns:
- The new path element.
-
inch
-
inch
-
lineTo
Creates an instance of the path elementSVGPathElement.SVGLineTothat uses relative coordinates.- Parameters:
x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
lineTo
Creates an instance of the path elementSVGPathElement.SVGLineTothat uses relative coordinates.- Parameters:
x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
lineToAbs
Creates an instance of the path elementSVGPathElement.SVGLineTothat uses absolute coordinates.- Parameters:
x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
lineToAbs
Creates an instance of the path elementSVGPathElement.SVGLineTothat uses absolute coordinates.- Parameters:
x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
matrix
@API(status=STABLE, since="0.0.5") public static final SVGTransform.SVGMatrix matrix(long a, long b, long c, long d, long e, long f) Creates an instance ofSVGTransform.SVGMatrix.- Parameters:
a- Parametera.b- Parameterb.c- Parameterc.d- Parameterd.e- Parametere.f- Parameterf.- Returns:
- The
matrixtransform.
-
matrix
@API(status=STABLE, since="0.0.5") public static final SVGTransform.SVGMatrix matrix(double a, double b, double c, double d, double e, double f) Creates an instance ofSVGTransform.SVGMatrix.- Parameters:
a- Parametera.b- Parameterb.c- Parameterc.d- Parameterd.e- Parametere.f- Parameterf.- Returns:
- The
matrixtransform.
-
millimeter
@API(status=STABLE, since="0.0.5") public static final SVGNumber.SVGMillimeter millimeter(double value) Creates an instance ofSVGNumber.SVGMillimeterwith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
millimeter
@API(status=STABLE, since="0.0.5") public static final SVGNumber.SVGMillimeter millimeter(long value) Creates an instance ofSVGNumber.SVGMillimeterwith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
moveTo
Creates an instance of the path elementSVGPathElement.SVGMoveTothat uses relative coordinates.- Parameters:
x- The x coordinate.y- The y coordinate.- Returns:
- The new path element.
-
moveTo
Creates an instance of the path elementSVGPathElement.SVGMoveTothat uses relative coordinates.- Parameters:
x- The x coordinate.y- The y coordinate.- Returns:
- The new path element.
-
moveToAbs
Creates an instance of the path elementSVGPathElement.SVGMoveTothat uses absolute coordinates.- Parameters:
x- The x coordinate.y- The y coordinate.- Returns:
- The new path element.
-
moveToAbs
Creates an instance of the path elementSVGPathElement.SVGMoveTothat uses absolute coordinates.- Parameters:
x- The x coordinate.y- The y coordinate.- Returns:
- The new path element.
-
number
@API(status=STABLE, since="0.0.5") public static final SVGNumber.SVGUserUnitValue number(double value) Creates an instance ofSVGNumber.SVGUserUnitValuewith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
number
@API(status=STABLE, since="0.0.5") public static final SVGNumber.SVGUserUnitValue number(long value) Creates an instance ofSVGNumber.SVGUserUnitValuewith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
numbers
-
numberList
-
percent
Creates an instance ofSVGNumber.SVGPercentwith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
percent
Creates an instance ofSVGNumber.SVGPercentwith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
pica
-
pica
-
pixel
Creates an instance ofSVGNumber.SVGPixelwith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
pixel
Creates an instance ofSVGNumber.SVGPixelwith the given numeric type.- Parameters:
value- The type.- Returns:
- The new
SVGNumberinstance.
-
point
-
point
-
quadraticCurveTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement quadraticCurveTo(double x, double y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses relative coordinates.- Parameters:
x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
quadraticCurveTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement quadraticCurveTo(double x1, double y1, double x, double y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses relative coordinates.- Parameters:
x1- The x coordinate for the control point.y1- The y coordinate for the control point.x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
quadraticCurveTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement quadraticCurveTo(long x, long y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses relative coordinates.- Parameters:
x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
quadraticCurveTo
@API(status=STABLE, since="0.0.5") public static final SVGPathElement quadraticCurveTo(long x1, long y1, long x, long y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses relative coordinates.- Parameters:
x1- The x coordinate for the control point.y1- The y coordinate for the control point.x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
quadraticCurveToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement quadraticCurveToAbs(double x, double y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses absolute coordinates.- Parameters:
x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
quadraticCurveToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement quadraticCurveToAbs(double x1, double y1, double x, double y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses absolute coordinates.- Parameters:
x1- The x coordinate for the control point.y1- The y coordinate for the control point.x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
quadraticCurveToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement quadraticCurveToAbs(long x, long y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses absolute coordinates.- Parameters:
x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
quadraticCurveToAbs
@API(status=STABLE, since="0.0.5") public static final SVGPathElement quadraticCurveToAbs(long x1, long y1, long x, long y) Creates an instance of the path elementSVGPathElement.SVGQuadraticCurveTothat uses absolute coordinates.- Parameters:
x1- The x coordinate for the control point.y1- The y coordinate for the control point.x- The x coordinate for the end point of the line.y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
rotate
Creates an instance ofSVGTransform.SVGRotate.- Parameters:
a- The rotation angle.- Returns:
- The
rotatetransformation.
-
rotate
Creates an instance ofSVGTransform.SVGRotate.- Parameters:
a- The rotation angle.- Returns:
- The
rotatetransformation.
-
rotate
@API(status=STABLE, since="0.0.5") public static final SVGTransform.SVGRotate rotate(long a, long x, long y) Creates an instance ofSVGTransform.SVGRotate.- Parameters:
a- The rotation angle.x- The x coordinate of the rotation point.y- The y coordinate of the rotation point.- Returns:
- The
rotatetransformation.
-
rotate
@API(status=STABLE, since="0.0.5") public static final SVGTransform.SVGRotate rotate(double a, double x, double y) Creates an instance ofSVGTransform.SVGRotate.- Parameters:
a- The rotation angle.x- The x coordinate of the rotation point.y- The y coordinate of the rotation point.- Returns:
- The
rotatetransformation.
-
scale
Creates an instance ofSVGTransform.SVGScale. This is equivalent toscale( x, x ).- Parameters:
x- Parameterx.- Returns:
- The
scaletransformation.
-
scale
Creates an instance ofSVGTransform.SVGScale. This is equivalent toscale( x, x ).- Parameters:
x- Parameterx.- Returns:
- The
scaletransformation.
-
scale
Creates an instance ofSVGTransform.SVGScale.- Parameters:
x- Parameterx.y- Parametery.- Returns:
- The
scaletransformation.
-
scale
@API(status=STABLE, since="0.0.5") public static final SVGTransform.SVGScale scale(double x, double y) Creates an instance ofSVGTransform.SVGScale.- Parameters:
x- Parameterx.y- Parametery.- Returns:
- The
scaletransformation.
-
skewX
Creates an instance ofSVGTransform.SVGSkewX.- Parameters:
a- The angle.- Returns:
- The
skewXtransformation.
-
skewX
Creates an instance ofSVGTransform.SVGSkewX.- Parameters:
a- The angle.- Returns:
- The
skewXtransformation.
-
skewY
Creates an instance ofSVGTransform.SVGSkewY.- Parameters:
a- The angle.- Returns:
- The
skewYtransformation.
-
skewY
Creates an instance ofSVGTransform.SVGSkewY.- Parameters:
a- The angle.- Returns:
- The
skewYtransformation.
-
translate
Creates an instance ofSVGTransform.SVGTranslate.- Parameters:
x- Parameterx.- Returns:
- The
translatetransformation.
-
translate
@API(status=STABLE, since="0.0.5") public static final SVGTransform.SVGTranslate translate(double x) Creates an instance ofSVGTransform.SVGTranslate.- Parameters:
x- Parameterx.- Returns:
- The
translatetransformation.
-
translate
@API(status=STABLE, since="0.0.5") public static final SVGTransform.SVGTranslate translate(long x, long y) Creates an instance ofSVGTransform.SVGTranslate.- Parameters:
x- Parameterx.y- Parametery.- Returns:
- The
translatetransformation.
-
translate
@API(status=STABLE, since="0.0.5") public static final SVGTransform.SVGTranslate translate(double x, double y) Creates an instance ofSVGTransform.SVGTranslate.- Parameters:
x- Parameterx.y- Parametery.- Returns:
- The
translatetransformation.
-
vLineTo
Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses relative coordinates.- Parameters:
y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
vLineTo
Creates an instance of the path elementSVGPathElement.SVGHLineTothat uses relative coordinates.- Parameters:
y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
vLineToAbs
Creates an instance of the path elementSVGPathElement.SVGVLineTothat uses absolute coordinates.- Parameters:
y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
vLineToAbs
Creates an instance of the path elementSVGPathElement.SVGVLineTothat uses absolute coordinates.- Parameters:
y- The y coordinate for the end point of the line.- Returns:
- The new path element.
-
