* * Creates a GWTCanvas element. Element type depends on deferred
binding. * Default is CANVAS HTML5 DOM element. In the case of IE it
should be VML. * * <p> * Different coordinate spaces and pixel
spaces will cause aliased scaling. * Use
<code>scale(double,double)</code> and consistent coordinate
and pixel * spaces for better results. * </p> * * @param coordX the
size of the coordinate space in the x direction * @param coordY the size
of the coordinate space in the y direction * @param pixelX the CSS width
in pixels of the canvas element * @param pixelY the CSS height in pixels
of the canvas element
|
|
__init__(self,
coordX=300,
coordY=150,
pixelX=300,
pixelY=150,
**kwargs)
* Impl Instance. |
source code
|
|
|
|
|
|
|
|
|
|
| arc(self,
x,
y,
radius,
startAngle,
endAngle,
antiClockwise) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| createRadialGradient(self,
x0,
y0,
r0,
x1,
y1,
r1) |
source code
|
|
|
|
| cubicCurveTo(self,
cp1x,
cp1y,
cp2x,
cp2y,
x,
y) |
source code
|
|
|
|
|
|
|
|
|
|
| fillRect(self,
startX,
startY,
width,
height) |
source code
|
|
|
|
| fillText(self,
text,
startX,
startY,
maxWidth=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| setGlobalCompositeOperation(self,
globalCompositeOperation) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| strokeRect(self,
startX,
startY,
width,
height) |
source code
|
|
|
|
| transform(self,
m11,
m12,
m21,
m22,
dx,
dy) |
source code
|
|
|
|
|
|
Inherited from ui.Widget.Widget:
doAttachChildren,
doDetachChildren,
getID,
getLayoutData,
getParent,
isAttached,
onAttach,
onBrowserEvent,
onDetach,
onLoad,
removeFromParent,
setContextMenu,
setID,
setLayoutData,
setParent
Inherited from ui.UIObject.UIObject:
addStyleDependentName,
addStyleName,
getAbsoluteLeft,
getAbsoluteTop,
getElement,
getHeight,
getOffsetHeight,
getOffsetWidth,
getStyleName,
getStylePrimaryName,
getTitle,
getWidth,
isVisible,
removeStyleDependentName,
removeStyleName,
setElement,
setHeight,
setPixelSize,
setSize,
setStyleName,
setTitle,
setVisible,
setWidth,
setzIndex,
sinkEvents,
unsinkEvents
Inherited from ui.FocusListener.FocusHandler:
addFocusListener,
onFocus,
onLostFocus,
removeFocusListener
Inherited from ui.KeyboardListener.KeyboardHandler:
addKeyboardListener,
onKeyDown,
onKeyPress,
onKeyUp,
removeKeyboardListener
Inherited from ui.MouseListener.MouseHandler:
addMouseListener,
onMouseDown,
onMouseEnter,
onMouseLeave,
onMouseMove,
onMouseUp,
removeMouseListener
Inherited from ui.ClickListener.ClickHandler:
addClickListener,
addDoubleClickListener,
onClick,
onDoubleClick,
removeClickListener,
removeDoubleClickListener
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
Inherited from ui.Focus.FocusMixin:
getTabIndex,
isEnabled,
isReadonly,
setAccessKey,
setEnabled,
setFocus,
setReadonly,
setTabIndex
|