com.sencha.gxt.chart.client.draw.engine
Class VML

java.lang.Object
  extended by com.sencha.gxt.chart.client.draw.Surface
      extended by com.sencha.gxt.chart.client.draw.engine.VML

public class VML
extends Surface

Provides specific methods to draw with VML.


Constructor Summary
VML()
           
 
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

VML

public VML()
Method Detail

addGradient

public void addGradient(Gradient... gradients)
Description copied from class: Surface
Adds the passed Gradients to the surface.

Specified by:
addGradient in class Surface
Parameters:
gradients - the gradients to be added

draw

public void draw()
Description copied from class: Surface
Renders the surface to the DOM as well as any sprites already added.

Overrides:
draw in class Surface

renderSprite

public void renderSprite(Sprite sprite)
Description copied from class: Surface
Renders the given sprite to the DOM.

Specified by:
renderSprite in class Surface
Parameters:
sprite - the sprite to be rendered

setCursor

public void setCursor(Sprite sprite,
                      String property)
Description copied from class: Surface
Sets the cursor property for the given sprite.

Specified by:
setCursor in class Surface
Parameters:
sprite - the sprite to be set
property - the property to use

setViewBox

public void setViewBox(double x,
                       double y,
                       double width,
                       double height)
Description copied from class: Surface
Sets the view box of the surface. The view box scales the sprites in the surface.

Specified by:
setViewBox in class Surface
Parameters:
x - the x coordinate of the viewbox
y - the y coordinate of the viewbox
width - the width of the viewbox
height - the height of the viewbox


Copyright © 2011. All Rights Reserved.