|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.canvas.CanvasRenderingContext2D
public class CanvasRenderingContext2D
A JavaScript object for a CanvasRenderingContext2D.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
CanvasRenderingContext2D()
|
|
| Method Summary | |
|---|---|
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_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. |
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. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public CanvasRenderingContext2D()
| Method Detail |
|---|
public Object jsxGet_fillStyle()
public 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" property
public void jsxFunction_clearRect(double x,
double y,
double w,
double h)
x - the xy - the yw - the widthh - the height
public void jsxFunction_fillRect(double x,
double y,
double w,
double h)
x - the xy - the yw - the widthh - the height
public 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 y
public 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 r1
public 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-clockwise
public void jsxFunction_arcTo(double x1,
double y1,
double x2,
double y2,
double radius)
x1 - the x1y1 - the y1x2 - the x2y2 - the y2radius - the radius
public 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 function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||