com.ebmwebsourcing.gwt.raphael.client.core
Class SVGElement
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.ebmwebsourcing.gwt.raphael.client.core.SVGElement
- All Implemented Interfaces:
- com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener
- Direct Known Subclasses:
- Circle, Group, Path, Rectangle, Text
public abstract class SVGElement
- extends com.google.gwt.user.client.ui.Widget
- implements com.google.gwt.event.dom.client.HasClickHandlers
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
|
Field Summary |
protected int |
height
|
protected int |
width
|
protected int |
x
|
protected int |
y
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
|
Method Summary |
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
|
protected abstract com.google.gwt.core.client.JavaScriptObject |
addConcreteJavascriptElementToCanvas()
|
protected void |
addJsElementToCanvas()
|
void |
animate(com.google.gwt.core.client.JavaScriptObject newAttrs,
int ms)
|
java.lang.String |
attr(java.lang.String attributeName)
|
void |
attr(java.lang.String attributeName,
java.lang.String value)
|
boolean |
equals(java.lang.Object obj)
|
Raphael |
getCanvas()
|
int |
getHeight()
|
java.lang.String |
getId()
|
SVGElementJSNIImpl |
getJsniImpl()
|
com.google.gwt.core.client.JavaScriptObject |
getJsref()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
int |
hashCode()
|
void |
hide()
|
boolean |
isLoaded()
|
void |
remove()
|
void |
rotate(int degree,
boolean isAbsolute)
|
void |
rotate(int degree,
int cx,
int cy)
|
void |
scale(double Xtimes,
double Ytimes)
|
void |
scale(double Xtimes,
double Ytimes,
double centerX,
double centerY)
|
void |
setCanvas(Raphael raphael)
|
void |
setHeight(int height)
|
protected abstract void |
setJSHeight(com.google.gwt.core.client.JavaScriptObject jsObj,
int x)
|
protected void |
setJsref(com.google.gwt.core.client.JavaScriptObject jsref)
Set the JavaScript reference of
the current element |
protected abstract void |
setJSWidth(com.google.gwt.core.client.JavaScriptObject jsObj,
int x)
|
protected abstract void |
setJSX(com.google.gwt.core.client.JavaScriptObject jsObj,
int x)
|
protected abstract void |
setJSY(com.google.gwt.core.client.JavaScriptObject jsObj,
int y)
|
void |
setWidth(int width)
|
void |
setX(int x)
|
void |
setY(int y)
|
void |
show()
|
void |
toBack()
|
void |
toFront()
|
void |
translate(int dx,
int dy)
|
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
fireEvent |
x
protected int x
y
protected int y
width
protected int width
height
protected int height
SVGElement
public SVGElement(java.lang.String id,
int x,
int y)
- Parameters:
id - x - the left coordy - the top coord
SVGElement
public SVGElement(java.lang.String id)
isLoaded
public boolean isLoaded()
getId
public java.lang.String getId()
getX
public int getX()
getY
public int getY()
setX
public void setX(int x)
setY
public void setY(int y)
setWidth
public void setWidth(int width)
setHeight
public void setHeight(int height)
setJSX
protected abstract void setJSX(com.google.gwt.core.client.JavaScriptObject jsObj,
int x)
setJSY
protected abstract void setJSY(com.google.gwt.core.client.JavaScriptObject jsObj,
int y)
setJSWidth
protected abstract void setJSWidth(com.google.gwt.core.client.JavaScriptObject jsObj,
int x)
setJSHeight
protected abstract void setJSHeight(com.google.gwt.core.client.JavaScriptObject jsObj,
int x)
setJsref
protected void setJsref(com.google.gwt.core.client.JavaScriptObject jsref)
- Set the JavaScript reference of
the current element
- Parameters:
jsref -
getJsref
public com.google.gwt.core.client.JavaScriptObject getJsref()
setCanvas
public void setCanvas(Raphael raphael)
getCanvas
public Raphael getCanvas()
addJsElementToCanvas
protected void addJsElementToCanvas()
remove
public void remove()
hide
public void hide()
show
public void show()
scale
public void scale(double Xtimes,
double Ytimes)
scale
public void scale(double Xtimes,
double Ytimes,
double centerX,
double centerY)
attr
public void attr(java.lang.String attributeName,
java.lang.String value)
attr
public java.lang.String attr(java.lang.String attributeName)
animate
public void animate(com.google.gwt.core.client.JavaScriptObject newAttrs,
int ms)
rotate
public void rotate(int degree,
boolean isAbsolute)
rotate
public void rotate(int degree,
int cx,
int cy)
toBack
public void toBack()
toFront
public void toFront()
translate
public void translate(int dx,
int dy)
getWidth
public int getWidth()
getHeight
public int getHeight()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
getJsniImpl
public SVGElementJSNIImpl getJsniImpl()
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
addConcreteJavascriptElementToCanvas
protected abstract com.google.gwt.core.client.JavaScriptObject addConcreteJavascriptElementToCanvas()
addClickHandler
public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
- Specified by:
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlers
Copyright © 2010 eBM WebSourcing. All Rights Reserved.