|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
|---|
void remove()
void hide()
void show()
void attr(java.lang.String attributeName,
java.lang.String value)
java.lang.String attr(java.lang.String attributeName)
void rotate(int degree,
boolean isAbsolute)
int - degree Degree of rotation (0 – 360°)boolean - isAbsolute [optional] Specifies is degree is relative to
void rotate(int degree,
int cx,
int cy)
int - degree Degree of rotation (0 – 360°)int - cx [optional] X coordinate of the origin of rotationint - cy [optional] Y coordinate of the origin of rotation
void translate(int dx,
int dy)
int - dx Pixels of translation by X axisint - dy Pixels of translation by Y axis
void scale(double xTimes,
double yTimes)
int - xTimesint - yTimes
void scale(double xTimes,
double yTimes,
double centerX,
double centerY)
int - xTimesint - yTimesint - centerXint - centerY
void animate(com.google.gwt.core.client.JavaScriptObject newAttrs,
int ms)
JSONObject - newAttrsint - ms
void animateWith(com.google.gwt.core.client.JavaScriptObject svgElement,
com.google.gwt.json.client.JSONObject newAttrs,
int ms)
JavaScriptObject - svgElementJSONObject - newAttrsint - msvoid toFront()
void toBack()
void insertBefore(com.google.gwt.core.client.JavaScriptObject jsElement)
JavaScriptObject - jsElementvoid insertAfter(com.google.gwt.core.client.JavaScriptObject jsElement)
JavaScriptObject - jsElementdouble getWidth()
double getHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||