
public class SVG extends DomSurface
| Modifier and Type | Class and Description |
|---|---|
static class |
SVG.TextBBox
JavaScriptObject representing bounding box results of an
SVG text element. |
| Constructor and Description |
|---|
SVG() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGradient(Gradient gradient)
Adds the passed
Gradient to the surface. |
void |
deleteSprite(Sprite sprite)
Deletes the given sprite from the surface.
|
void |
draw()
Renders the surface to the DOM as well as any sprites already added.
|
void |
renderSprite(Sprite sprite)
Renders the given sprite to the DOM.
|
void |
setCursor(Sprite sprite,
String property)
Sets the cursor property for the given sprite.
|
void |
setViewBox(double x,
double y,
double width,
double height)
Sets the view box of the surface.
|
setIdadd, clear, create, create, getBBox, getComponent, getHeight, getSprites, getSurfaceElement, getWidth, setBackground, setHeight, setWidthpublic void addGradient(Gradient gradient)
SurfaceGradient to the surface.addGradient in class Surfacegradient - the gradient to be addedpublic void draw()
Surfacepublic void deleteSprite(Sprite sprite)
SurfacedeleteSprite in class DomSurfacesprite - the sprite to be deletedpublic void renderSprite(Sprite sprite)
SurfacerenderSprite in class Surfacesprite - the sprite to be renderedpublic void setCursor(Sprite sprite, String property)
Surfacepublic void setViewBox(double x,
double y,
double width,
double height)
SurfacesetViewBox in class Surfacex - the x coordinate of the viewboxy - the y coordinate of the viewboxwidth - the width of the viewboxheight - the height of the viewboxCopyright © 2016. All rights reserved.