public class CanvasRenderingContext2D extends SimpleScriptable
| Constructor and Description |
|---|
CanvasRenderingContext2D() |
| Modifier and Type | Method and Description |
|---|---|
void |
jsxFunction_arc(double x,
double y,
double radius,
double startAngle,
double endAngle,
boolean anticlockwise)
Draws an arc.
|
void |
jsxFunction_arcTo(double x1,
double y1,
double x2,
double y2,
double radius)
Draws an arc.
|
void |
jsxFunction_beginPath()
Begins the subpaths.
|
void |
jsxFunction_bezierCurveTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y)
Draws a cubic Bézier curve.
|
void |
jsxFunction_clearRect(double x,
double y,
double w,
double h)
Clears the specified rectangular area.
|
void |
jsxFunction_clip()
Creates a new clipping region.
|
void |
jsxFunction_closePath()
Closes the subpaths.
|
void |
jsxFunction_createLinearGradient(double x0,
double y0,
double r0,
double x1,
Object y1,
Object r1)
Creates linear gradient.
|
static void |
jsxFunction_drawImage(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Draws images onto the canvas.
|
void |
jsxFunction_fill()
Fills the shape.
|
void |
jsxFunction_fillRect(double x,
double y,
double w,
double h)
Paints the specified rectangular area.
|
void |
jsxFunction_lineTo(double x,
double y)
Connect the last point to the given point.
|
void |
jsxFunction_moveTo(double x,
double y)
Creates a new subpath.
|
void |
jsxFunction_restore()
Pops state stack and restore state.
|
void |
jsxFunction_save()
Pushes state on state stack.
|
void |
jsxFunction_scale(Object x,
Object y)
Changes the transformation matrix to apply a scaling transformation with the given characteristics.
|
void |
jsxFunction_stroke()
Calculates the strokes of all the subpaths of the current path.
|
void |
jsxFunction_strokeRect(double x,
double y,
double w,
double h)
Strokes the specified rectangular area.
|
void |
jsxFunction_translate(Object x,
Object y)
Changes the transformation matrix to apply a translation transformation with the given characteristics.
|
Object |
jsxGet_fillStyle()
Returns the "fillStyle" property.
|
double |
jsxGet_globalAlpha()
Returns the "globalAlpha" property.
|
double |
jsxGet_lineWidth()
Returns the "lineWidth" property.
|
Object |
jsxGet_strokeStyle()
Returns the "strokeStyle" property.
|
void |
jsxSet_fillStyle(Object fillStyle)
Sets the "fillStyle" property.
|
void |
jsxSet_globalAlpha(Object globalAlpha)
Sets the "globalAlpha" property.
|
void |
jsxSet_lineWidth(Object lineWidth)
Sets the "lineWidth" property.
|
void |
jsxSet_strokeStyle(Object strokeStyle)
Sets the "strokeStyle" property.
|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizepublic Object jsxGet_fillStyle()
public void jsxFunction_translate(Object x, Object y)
x - the translation distance in the horizontal directiony - the translation distance in the vertical directionpublic void jsxFunction_scale(Object x, Object y)
x - the scale factor in the horizontal directiony - the scale factor in the vertical directionpublic void jsxSet_fillStyle(Object fillStyle)
fillStyle - the "fillStyle" propertypublic Object jsxGet_strokeStyle()
public void jsxSet_strokeStyle(Object strokeStyle)
strokeStyle - the "strokeStyle" propertypublic double jsxGet_lineWidth()
public void jsxSet_lineWidth(Object lineWidth)
lineWidth - the "lineWidth" propertypublic double jsxGet_globalAlpha()
public void jsxSet_globalAlpha(Object globalAlpha)
globalAlpha - the "globalAlpha" propertypublic void jsxFunction_clearRect(double x,
double y,
double w,
double h)
x - the xy - the yw - the widthh - the heightpublic void jsxFunction_fillRect(double x,
double y,
double w,
double h)
x - the xy - the yw - the widthh - the heightpublic void jsxFunction_strokeRect(double x,
double y,
double w,
double h)
x - the xy - the yw - the widthh - the heightpublic void jsxFunction_beginPath()
public void jsxFunction_closePath()
public void jsxFunction_moveTo(double x,
double y)
x - the xy - the ypublic void jsxFunction_lineTo(double x,
double y)
x - the xy - the ypublic void jsxFunction_save()
public void jsxFunction_restore()
public void jsxFunction_createLinearGradient(double x0,
double y0,
double r0,
double x1,
Object y1,
Object r1)
x0 - the x0y0 - the y0r0 - the r0x1 - the x1y1 - the y1r1 - the r1public void jsxFunction_arc(double x,
double y,
double radius,
double startAngle,
double endAngle,
boolean anticlockwise)
x - the xy - the yradius - the radiusstartAngle - the start angleendAngle - the end angleanticlockwise - is anti-clockwisepublic void jsxFunction_arcTo(double x1,
double y1,
double x2,
double y2,
double radius)
x1 - the x1y1 - the y1x2 - the x2y2 - the y2radius - the radiuspublic void jsxFunction_bezierCurveTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y)
cp1x - the cp1xcp1y - the cp1ycp2x - the cp2xcp2y - the cp2yx - the xy - the ypublic void jsxFunction_fill()
public void jsxFunction_stroke()
public void jsxFunction_clip()
public static void jsxFunction_drawImage(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
context - the JavaScript contextthisObj - the scriptableargs - the arguments passed into the methodfunction - the functionCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.