com.ebmwebsourcing.geasytools.geasysvg.core.impl
Class SVGElement
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.ebmwebsourcing.geasytools.geasysvg.core.impl.SVGElement
- All Implemented Interfaces:
- ISVGElement, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
- Direct Known Subclasses:
- Circle, Group, Marker, Path, Rectangle, Text
public class SVGElement
- extends com.google.gwt.user.client.ui.Widget
- implements ISVGElement
| 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 java.lang.String |
id
|
protected ISVGElement |
impl
|
protected float |
x
|
protected float |
y
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
|
Constructor Summary |
SVGElement(com.google.gwt.user.client.Element element)
|
SVGElement(com.google.gwt.user.client.Element element,
float x,
float y)
|
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, 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, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
id
protected java.lang.String id
x
protected float x
y
protected float y
impl
protected ISVGElement impl
SVGElement
public SVGElement(com.google.gwt.user.client.Element element)
SVGElement
public SVGElement(com.google.gwt.user.client.Element element,
float x,
float y)
setImpl
public void setImpl(ISVGElement impl)
getImpl
public ISVGElement getImpl()
getAbsoluteLeft
public int getAbsoluteLeft()
- Overrides:
getAbsoluteLeft in class com.google.gwt.user.client.ui.UIObject
getAbsoluteTop
public int getAbsoluteTop()
- Overrides:
getAbsoluteTop in class com.google.gwt.user.client.ui.UIObject
getX
public float getX()
- Specified by:
getX in interface ISVGElement
getY
public float getY()
- Specified by:
getY in interface ISVGElement
getCanvas
public ISVGDocument getCanvas()
- Specified by:
getCanvas in interface ISVGElement
getHeight
public float getHeight()
- Description copied from interface:
ISVGElement
- Returns elements with based on BBox.height
- Specified by:
getHeight in interface ISVGElement
- Returns:
- float Element Height
getId
public java.lang.String getId()
- Specified by:
getId in interface ISVGElement
getWidth
public float getWidth()
- Description copied from interface:
ISVGElement
- Returns elements with based on BBox.width
- Specified by:
getWidth in interface ISVGElement
- Returns:
- float Element Width
isVisible
public boolean isVisible()
- Specified by:
isVisible in interface ISVGElement- Overrides:
isVisible in class com.google.gwt.user.client.ui.UIObject
setCanvas
public void setCanvas(ISVGDocument canvas)
- Specified by:
setCanvas in interface ISVGElement
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible in interface ISVGElement- Overrides:
setVisible in class com.google.gwt.user.client.ui.UIObject
translate
public void translate(float dx,
float dy)
- Description copied from interface:
ISVGElement
- Moves the element around the canvas by the given distances.
- Specified by:
translate in interface ISVGElement
getFillOpacity
public float getFillOpacity()
- Specified by:
getFillOpacity in interface ISVGElement
getStrokeColour
public java.lang.String getStrokeColour()
- Specified by:
getStrokeColour in interface ISVGElement
setFillOpacity
public void setFillOpacity(float fillOpacity)
- Specified by:
setFillOpacity in interface ISVGElement
setStokeColour
public void setStokeColour(java.lang.String colour)
- Specified by:
setStokeColour in interface ISVGElement
getFillColour
public java.lang.String getFillColour()
- Specified by:
getFillColour in interface ISVGElement
getStrokeDashArray
public java.lang.String getStrokeDashArray()
- Specified by:
getStrokeDashArray in interface ISVGElement
setFillColour
public void setFillColour(java.lang.String colour)
- Specified by:
setFillColour in interface ISVGElement
setStrokeDashArray
public void setStrokeDashArray(java.lang.String strokeDash)
- Specified by:
setStrokeDashArray in interface ISVGElement
rotate
public void rotate(float degree,
boolean isAbsolute)
- Description copied from interface:
ISVGElement
- Rotates the element by the given degree from its center point.
- Specified by:
rotate in interface ISVGElement
rotate
public void rotate(float degree,
int cx,
int cy)
- Description copied from interface:
ISVGElement
- Rotates the element by the given degree from its center point.
- Specified by:
rotate in interface ISVGElement
scale
public void scale(float xTimes,
float yTimes)
- Description copied from interface:
ISVGElement
- Resizes the element by the given multiplier.
- Specified by:
scale in interface ISVGElement
scale
public void scale(float xTimes,
float yTimes,
float centerX,
float centerY)
- Description copied from interface:
ISVGElement
- Resizes the element by the given multiplier.
- Specified by:
scale in interface ISVGElement
setId
public void setId(java.lang.String id)
- Specified by:
setId in interface ISVGElement
setX
public void setX(float x)
- Specified by:
setX in interface ISVGElement
setY
public void setY(float y)
- Specified by:
setY in interface ISVGElement
toBack
public void toBack()
- Specified by:
toBack in interface ISVGElement
toFront
public void toFront()
- Specified by:
toFront in interface ISVGElement
remove
public void remove()
- Specified by:
remove in interface ISVGElement
setHeight
public void setHeight(float height)
- Specified by:
setHeight in interface ISVGElement
setWidth
public void setWidth(float width)
- Specified by:
setWidth in interface ISVGElement
getContainer
public IContainer getContainer()
- Specified by:
getContainer in interface ISVGElement
setContainer
public void setContainer(IContainer container)
- Specified by:
setContainer in interface ISVGElement
Copyright © 2010-2011 Petals Link. All Rights Reserved.