com.ebmwebsourcing.geasytools.geasysvg.core.impl
Class SVGDocument

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.ebmwebsourcing.geasytools.geasysvg.core.impl.SVGDocument
All Implemented Interfaces:
IContainer, ISVGDocument, ISVGDocumentExt, 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

public class SVGDocument
extends com.google.gwt.user.client.ui.Widget
implements ISVGDocumentExt


Nested Class Summary
 
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  ISVGDocumentExt impl
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
SVGDocument(Canvas parentContainer, int width, int height)
           
 
Method Summary
 void appendChild(ISVGElement svgElement)
           
 ICircle createCircle(float cx, float cy, float radius)
           
 IGroup createGroup()
           
 IGroup createGroup(float x, float y)
           
 ILinearPath createLinearPath(float x, float y)
           
 IMarker createMarker(java.lang.String id)
           
 IPath createPath(java.lang.String path, float x, float y)
           
 IRectangle createRectangle(float rx, float ry, float width, float height)
           
 IRectangle createRectangle(float rx, float ry, float width, float height, double cornersRadius)
           
 IText createText(float x, float y, java.lang.String text)
           
 int getAbsoluteLeft()
           
 int getAbsoluteTop()
           
 java.util.HashSet<ISVGElement> getChildren()
           
 java.lang.String getDesc()
           
 ISVGElement getElementById(java.lang.String id)
           
 float getHeight()
           
 Canvas getParentContainer()
           
 float getWidth()
           
protected  void onAttach()
           
 void removeChild(ISVGElement svgElement)
           
 void setDesc(java.lang.String desc)
           
 void setHeight(float height)
           
 void setWidth(float width)
           
 
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, 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, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasysvg.core.api.ISVGDocument
getTitle, setTitle
 

Field Detail

impl

protected ISVGDocumentExt impl
Constructor Detail

SVGDocument

public SVGDocument(Canvas parentContainer,
                   int width,
                   int height)
Method Detail

onAttach

protected void onAttach()
Overrides:
onAttach in class com.google.gwt.user.client.ui.Widget

getChildren

public java.util.HashSet<ISVGElement> getChildren()
Specified by:
getChildren in interface IContainer

getParentContainer

public Canvas getParentContainer()

getElementById

public ISVGElement getElementById(java.lang.String id)
Specified by:
getElementById in interface IContainer

getHeight

public float getHeight()
Specified by:
getHeight in interface ISVGDocument

getWidth

public float getWidth()
Specified by:
getWidth in interface ISVGDocument

removeChild

public void removeChild(ISVGElement svgElement)
Specified by:
removeChild in interface IContainer

getAbsoluteLeft

public int getAbsoluteLeft()
Specified by:
getAbsoluteLeft in interface IContainer
Overrides:
getAbsoluteLeft in class com.google.gwt.user.client.ui.UIObject

getAbsoluteTop

public int getAbsoluteTop()
Specified by:
getAbsoluteTop in interface IContainer
Overrides:
getAbsoluteTop in class com.google.gwt.user.client.ui.UIObject

createCircle

public ICircle createCircle(float cx,
                            float cy,
                            float radius)
Specified by:
createCircle in interface ISVGDocument

createGroup

public IGroup createGroup()
Specified by:
createGroup in interface ISVGDocument

createGroup

public IGroup createGroup(float x,
                          float y)
Specified by:
createGroup in interface ISVGDocument

createMarker

public IMarker createMarker(java.lang.String id)
Specified by:
createMarker in interface ISVGDocument

createPath

public IPath createPath(java.lang.String path,
                        float x,
                        float y)
Specified by:
createPath in interface ISVGDocument

createRectangle

public IRectangle createRectangle(float rx,
                                  float ry,
                                  float width,
                                  float height)
Specified by:
createRectangle in interface ISVGDocument

createRectangle

public IRectangle createRectangle(float rx,
                                  float ry,
                                  float width,
                                  float height,
                                  double cornersRadius)
Specified by:
createRectangle in interface ISVGDocument

createText

public IText createText(float x,
                        float y,
                        java.lang.String text)
Specified by:
createText in interface ISVGDocument

createLinearPath

public ILinearPath createLinearPath(float x,
                                    float y)
Specified by:
createLinearPath in interface ISVGDocumentExt

setHeight

public void setHeight(float height)
Specified by:
setHeight in interface ISVGDocument

setWidth

public void setWidth(float width)
Specified by:
setWidth in interface ISVGDocument

getDesc

public java.lang.String getDesc()
Specified by:
getDesc in interface ISVGDocument

setDesc

public void setDesc(java.lang.String desc)
Specified by:
setDesc in interface ISVGDocument

appendChild

public void appendChild(ISVGElement svgElement)
Specified by:
appendChild in interface IContainer


Copyright © 2010-2011 Petals Link. All Rights Reserved.