Attributes inherited from <view>
aaactive, aadescription, aaname, aasilent, aatabindex, align, backgroundrepeat, bgcolor, cachebitmap, capabilities, clickable, clickregion, clip, colortransform, context, contextmenu, cornerradius, cursor, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hasdirectionallayout, hassetheight, hassetwidth, height, layout, loadratio, mask, opacity, pixellock, playing, proxyurl, resource, resourceheight, resourcewidth, rotation, shadowangle, shadowblurradius, shadowcolor, shadowdistance, showhandcursor, source, stretches, subviews, tintcolor, totalframes, unstretchedheight, unstretchedwidth, usegetbounds, valign, visibility, visible, width, x, xoffset, xscale, y, yoffset, yscale
Attributes inherited from <node>
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
Methods
-
-
drawview.arc(x : Number, y : Number, radius : Number, startAngle : Number, endAngle : Number, anticlockwise : Number);
Adds an arc to the current path. The arc is a segment of a circle that has radius as given.
The circle segment is determined by the two angles startAngle and endAngle and begins at the given coordinate (x,y).
If anticlockwise is true, the arc is drawn counter-clockwise, otherwise it is drawn counter-clockwise (anti-clockwise).
-
-
Resets the list of subpaths to an empty list, and calls moveTo() with the point (0,0).
-
-
drawview.bezierCurveTo(cp1x : Number, cp1y : Number, cp2x : Number, cp2y : Number, x : Number, y : Number);
Adds the given coordinate (x, y) to the list of points of
the subpath, and connects the two points with a bezier curve with control
points (cp1x, cp1y) and (cp2x, cp2y). It then sets the current position to
the given coordinate (x, y).
-
-
-
-
Adds a straight line from the current position to the first point in the last subpath and marks the subpath as closed, if
the last subpath isn't closed, and if it has more than one point in its list of points. If the last subpath is not open or
has only one point, it does nothing.
-
-
drawview.createLinearGradient(x0 : Number, y0 : Number, x1 : Number, y1 : Number);
Takes four arguments, representing the start point (x0, y0) and end point (x1, y1) of the gradient, in coordinate space units,
and returns an object representing a linear gradient initialised with that line.
Linear gradients are rendered such that at the starting point on the canvas the colour at offset 0 is used, that at
the ending point the color at offset 1 is used, that all points on a line perpendicular to the line between the start and
end points have the colour at the point where those two lines cross. (Of course, the colours are only painted where the shape
they are being painted on needs them.)
-
-
drawview.createRadialGradient(x0 : Number, y0 : Number, r0 : Number, x1 : Number, y1 : Number, r1 : Number);
Takes six arguments, the first three representing the start point (x0, y0) and rotation r0, and the last three representing
the end point (x1, y1) and radius r1. The values are in coordinate space units.
Rotation doesn't appear to work for radial gradients. Even so, it can be set by specifying r0 in radians. r1 is ignored.
-
-
Fills each subpath of the current path in turn, using fillStyle, and using the non-zero winding number rule. Open subpaths
are implicitly closed when being filled (without affecting the actual subpaths).
Note that closePath() is called before the line is filled.
-
-
drawview.lineTo(x : Number, y : Number);
Adds the given coordinate (x, y) to the list of points of the subpath, and connects the current position to that point with
a straight line. It then sets the current position to the given coordinate (x, y).
-
-
drawview.moveTo(x : Number, y : Number);
Sets the current position to the given coordinate and creates a new subpath with that point as its first (and only) point.
If there was a previous subpath, and it consists of just one point, then that subpath is removed from the path.
-
-
drawview.oval(x : Number, y : Number, radius : Number, yRadius : Number);
Draws an oval at the origin x, y with a radius radius. If yRadius is specified, radius is the x radius of the oval.
Based on mc.drawOval() - by Ric Ewing (ric@formequalsfunction.com) - version 1.1 - 4.7.2002
-
-
drawview.quadraticCurveTo(cpx : Number, cpy : Number, x : Number, y : Number);
Adds the given coordinate (x, y) to the list of points of the subpath, and connects the current position to that point with
a quadratic curve with control point (cpx, cpy). It then sets the current position to the given coordinate (x, y).
-
-
drawview.rect(x : Number, y : Number, width : Number, height : Number, topleftradius : Number, toprightradius : Number, bottomrightradius : Number, bottomleftradius : Number);
Rect creates a new subpath containing just the rectangle with top left coordinate (x, y), width w and height h.
Based on mc.drawRect() - by Ric Ewing (ric@formequalsfunction.com)
-
-
Strokes each subpath of the current path in turn, using the strokeStyle and lineWidth attributes.
Methods inherited from <view>
bringToFront, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getCurrentTime, getDepthList, getDisplayObject, getID3, getMouse, getNextSelection, getPan, getPrevSelection, getProxyURL, getTotalTime, getVolume, init, isBehind, isInFrontOf, isMouseOver, measureHeight, measureWidth, play, proxyurl, searchSubviews, seek, sendAAEvent, sendBehind, sendInFrontOf, sendToBack, setAccessible, setAttributeRelative, setColor, setColorTransform, setPan, setProxyPolicy, setSource, setVolume, shouldYieldFocus, stop, unload, updateResourceSize
Methods inherited from <node>
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
Events inherited from <view>
onaddsubview, onbackgroundrepeat, onblur, onclick, onclickable, onclip, oncontext, oncornerradius, ondblclick, onerror, onfocus, onframe, onframesloadratio, ongesture, onheight, onkeydown, onkeyup, onlastframe, onload, onloadratio, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmousetrackout, onmousetrackover, onmousetrackup, onmouseup, onmouseupoutside, onopacity, onplay, onplaying, onremovesubview, onshadowangle, onshadowblurradius, onshadowcolor, onshadowdistance, onstop, ontimeout, ontouch, onvisible, onwidth, onx, ony