com.ebmwebsourcing.geasytools.geasysvg.core.impl
Class Canvas
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.ebmwebsourcing.geasytools.geasysvg.core.impl.Canvas
- All Implemented Interfaces:
- com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasResizeHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
public class Canvas
- extends com.google.gwt.user.client.ui.SimplePanel
- implements com.google.gwt.event.logical.shared.HasResizeHandlers
| 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 |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
|
Constructor Summary |
Canvas(int width,
int height)
|
|
Method Summary |
com.google.gwt.event.shared.HandlerRegistration |
addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler arg0)
|
void |
appendChild(ISVGElement svgElement)
|
Circle |
createCircle(float cx,
float cy,
float radius)
|
Group |
createGroup()
|
Group |
createGroup(float x,
float y)
|
LinearPath |
createLinearPath(float x,
float y)
|
Marker |
createMarker(java.lang.String id)
|
Path |
createPath(java.lang.String path,
float x,
float y)
|
Rectangle |
createRectangle(float rx,
float ry,
float width,
float height)
|
Rectangle |
createRectangle(float rx,
float ry,
float width,
float height,
double cornersRadius)
|
Text |
createText(float x,
float y,
java.lang.String text)
|
int |
getHeight()
|
int |
getWidth()
|
void |
setHeight(int height)
|
void |
setWidth(int width)
|
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, 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, 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.google.gwt.event.shared.HasHandlers |
fireEvent |
Canvas
public Canvas(int width,
int height)
setWidth
public void setWidth(int width)
setHeight
public void setHeight(int height)
getWidth
public int getWidth()
getHeight
public int getHeight()
appendChild
public void appendChild(ISVGElement svgElement)
createCircle
public Circle createCircle(float cx,
float cy,
float radius)
createGroup
public Group createGroup()
createGroup
public Group createGroup(float x,
float y)
createPath
public Path createPath(java.lang.String path,
float x,
float y)
createRectangle
public Rectangle createRectangle(float rx,
float ry,
float width,
float height)
createRectangle
public Rectangle createRectangle(float rx,
float ry,
float width,
float height,
double cornersRadius)
createText
public Text createText(float x,
float y,
java.lang.String text)
createMarker
public Marker createMarker(java.lang.String id)
createLinearPath
public LinearPath createLinearPath(float x,
float y)
addResizeHandler
public com.google.gwt.event.shared.HandlerRegistration addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler arg0)
- Specified by:
addResizeHandler in interface com.google.gwt.event.logical.shared.HasResizeHandlers
Copyright © 2010-2011 Petals Link. All Rights Reserved.