com.ebmwebsourcing.gwt.raphael.client.core
Interface SVGElementInterface

All Known Implementing Classes:
SVGElementJSNIImpl

public interface SVGElementInterface


Method Summary
 void animate(com.google.gwt.core.client.JavaScriptObject newAttrs, int ms)
          Changes an attribute from its current value to its specified value
in the given amount of milliseconds
 void animateWith(com.google.gwt.core.client.JavaScriptObject svgElement, com.google.gwt.json.client.JSONObject newAttrs, int ms)
          The same as animate method, but synchronise animation with another element.
 java.lang.String attr(java.lang.String attributeName)
           
 void attr(java.lang.String attributeName, java.lang.String value)
           
 double getHeight()
          Returns elements with based on BBox.height
 double getWidth()
          Returns elements with based on BBox.width
 void hide()
          Make element invisible.
 void insertAfter(com.google.gwt.core.client.JavaScriptObject jsElement)
          Inserts current object after the given one.
 void insertBefore(com.google.gwt.core.client.JavaScriptObject jsElement)
          Inserts current object before the given one.
 void remove()
          Removes element from the DOM.
 void rotate(int degree, boolean isAbsolute)
          Rotates the element by the given degree from its center point.
 void rotate(int degree, int cx, int cy)
          Rotates the element by the given degree from its center point.
 void scale(double xTimes, double yTimes)
          Resizes the element by the given multiplier.
 void scale(double xTimes, double yTimes, double centerX, double centerY)
          Resizes the element by the given multiplier.
 void show()
          Makes element visible.
 void toBack()
           
 void toFront()
           
 void translate(int dx, int dy)
          Moves the element around the canvas by the given distances.
 

Method Detail

remove

void remove()
Removes element from the DOM. You can’t use it after this method call.


hide

void hide()
Make element invisible.


show

void show()
Makes element visible.


attr

void attr(java.lang.String attributeName,
          java.lang.String value)

attr

java.lang.String attr(java.lang.String attributeName)

rotate

void rotate(int degree,
            boolean isAbsolute)
Rotates the element by the given degree from its center point.

Parameters:
int - degree Degree of rotation (0 – 360°)
boolean - isAbsolute [optional] Specifies is degree is relative to
previous position (false) or is it absolute angle (true)

rotate

void rotate(int degree,
            int cx,
            int cy)
Rotates the element by the given degree from its center point.

Parameters:
int - degree Degree of rotation (0 – 360°)
int - cx [optional] X coordinate of the origin of rotation
int - cy [optional] Y coordinate of the origin of rotation

translate

void translate(int dx,
               int dy)
Moves the element around the canvas by the given distances.

Parameters:
int - dx Pixels of translation by X axis
int - dy Pixels of translation by Y axis

scale

void scale(double xTimes,
           double yTimes)
Resizes the element by the given multiplier.

Parameters:
int - xTimes
int - yTimes

scale

void scale(double xTimes,
           double yTimes,
           double centerX,
           double centerY)
Resizes the element by the given multiplier.

Parameters:
int - xTimes
int - yTimes
int - centerX
int - centerY

animate

void animate(com.google.gwt.core.client.JavaScriptObject newAttrs,
             int ms)
Changes an attribute from its current value to its specified value
in the given amount of milliseconds

Parameters:
JSONObject - newAttrs
int - ms

animateWith

void animateWith(com.google.gwt.core.client.JavaScriptObject svgElement,
                 com.google.gwt.json.client.JSONObject newAttrs,
                 int ms)
The same as animate method, but synchronise animation with another element.

Parameters:
JavaScriptObject - svgElement
JSONObject - newAttrs
int - ms

toFront

void toFront()

toBack

void toBack()

insertBefore

void insertBefore(com.google.gwt.core.client.JavaScriptObject jsElement)
Inserts current object before the given one.

Parameters:
JavaScriptObject - jsElement

insertAfter

void insertAfter(com.google.gwt.core.client.JavaScriptObject jsElement)
Inserts current object after the given one.

Parameters:
JavaScriptObject - jsElement

getWidth

double getWidth()
Returns elements with based on BBox.width

Returns:
int Element Width

getHeight

double getHeight()
Returns elements with based on BBox.height

Returns:
int Element Height


Copyright © 2010 eBM WebSourcing. All Rights Reserved.