com.ebmwebsourcing.gwt.raphael.client.core.jsniimpl
Class SVGElementJSNIImpl

java.lang.Object
  extended by com.ebmwebsourcing.gwt.raphael.client.core.jsniimpl.SVGElementJSNIImpl
All Implemented Interfaces:
SVGElementInterface

public class SVGElementJSNIImpl
extends java.lang.Object
implements SVGElementInterface


Constructor Summary
SVGElementJSNIImpl(SVGElement svgelement)
           
 
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
 com.google.gwt.core.client.JavaScriptObject getJsRef()
           
 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.
 com.google.gwt.user.client.Element node()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGElementJSNIImpl

public SVGElementJSNIImpl(SVGElement svgelement)
Method Detail

getJsRef

public com.google.gwt.core.client.JavaScriptObject getJsRef()

attr

public void attr(java.lang.String attributeName,
                 java.lang.String value)
Specified by:
attr in interface SVGElementInterface

attr

public java.lang.String attr(java.lang.String attributeName)
Specified by:
attr in interface SVGElementInterface

hide

public void hide()
Description copied from interface: SVGElementInterface
Make element invisible.

Specified by:
hide in interface SVGElementInterface

remove

public void remove()
Description copied from interface: SVGElementInterface
Removes element from the DOM. You can’t use it after this method call.

Specified by:
remove in interface SVGElementInterface

rotate

public void rotate(int degree,
                   boolean isAbsolute)
Description copied from interface: SVGElementInterface
Rotates the element by the given degree from its center point.

Specified by:
rotate in interface SVGElementInterface

rotate

public void rotate(int degree,
                   int cx,
                   int cy)
Description copied from interface: SVGElementInterface
Rotates the element by the given degree from its center point.

Specified by:
rotate in interface SVGElementInterface

show

public void show()
Description copied from interface: SVGElementInterface
Makes element visible.

Specified by:
show in interface SVGElementInterface

translate

public void translate(int dx,
                      int dy)
Description copied from interface: SVGElementInterface
Moves the element around the canvas by the given distances.

Specified by:
translate in interface SVGElementInterface

getHeight

public double getHeight()
Description copied from interface: SVGElementInterface
Returns elements with based on BBox.height

Specified by:
getHeight in interface SVGElementInterface
Returns:
int Element Height

getWidth

public double getWidth()
Description copied from interface: SVGElementInterface
Returns elements with based on BBox.width

Specified by:
getWidth in interface SVGElementInterface
Returns:
int Element Width

animate

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

Specified by:
animate in interface SVGElementInterface

animateWith

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

Specified by:
animateWith in interface SVGElementInterface

insertAfter

public void insertAfter(com.google.gwt.core.client.JavaScriptObject jsElement)
Description copied from interface: SVGElementInterface
Inserts current object after the given one.

Specified by:
insertAfter in interface SVGElementInterface

insertBefore

public void insertBefore(com.google.gwt.core.client.JavaScriptObject jsElement)
Description copied from interface: SVGElementInterface
Inserts current object before the given one.

Specified by:
insertBefore in interface SVGElementInterface

scale

public void scale(double Xtimes,
                  double Ytimes)
Description copied from interface: SVGElementInterface
Resizes the element by the given multiplier.

Specified by:
scale in interface SVGElementInterface

scale

public void scale(double Xtimes,
                  double Ytimes,
                  double centerX,
                  double centerY)
Description copied from interface: SVGElementInterface
Resizes the element by the given multiplier.

Specified by:
scale in interface SVGElementInterface

toBack

public void toBack()
Specified by:
toBack in interface SVGElementInterface

toFront

public void toFront()
Specified by:
toFront in interface SVGElementInterface

node

public com.google.gwt.user.client.Element node()


Copyright © 2010 eBM WebSourcing. All Rights Reserved.