|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.draw.Surface
com.sencha.gxt.chart.client.draw.engine.SVG
public class SVG
Provides specific methods to draw with SVG.
| Nested Class Summary | |
|---|---|
static class |
SVG.TextBBox
JavaScriptObject representing bounding box results of an
SVG text element. |
| Constructor Summary | |
|---|---|
SVG()
|
|
| Method Summary | |
|---|---|
void |
addGradient(Gradient... gradients)
Adds the passed Gradients to 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. |
| Methods inherited from class com.sencha.gxt.chart.client.draw.Surface |
|---|
add, create, create, getBBox, getComponent, getHeight, getSprites, getSurfaceElement, getWidth, remove, setBackground, setHeight, setWidth |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SVG()
| Method Detail |
|---|
public void addGradient(Gradient... gradients)
SurfaceGradients to the surface.
addGradient in class Surfacegradients - the gradients to be addedpublic void draw()
Surface
draw in class Surfacepublic void renderSprite(Sprite sprite)
Surface
renderSprite in class Surfacesprite - the sprite to be rendered
public void setCursor(Sprite sprite,
String property)
Surface
setCursor in class Surfacesprite - the sprite to be setproperty - the property to use
public void setViewBox(double x,
double y,
double width,
double height)
Surface
setViewBox in class Surfacex - the x coordinate of the viewboxy - the y coordinate of the viewboxwidth - the width of the viewboxheight - the height of the viewbox
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||