Class Index | File Index

Classes


Class Shape


Extends DisplayObject.
A Shape allows you to display vector art in the display list. It composites a Graphics instance which exposes all of the vector drawing methods. The Graphics instance can be shared between multiple Shape instances to display the same vector graphics with different positions or transforms. If the vector art will not change between draws, you may want to use the cache() method to reduce the rendering cost.
Defined in: Shape.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Shape(graphics)
Constructs a new Shape instance.
Field Summary
Field Attributes Field Name and Description
 
The graphics instance to display.
Fields borrowed from class DisplayObject:
alpha, cacheCanvas, compositeOperation, id, mouseEnabled, name, onClick, onPress, parent, regX, regY, rotation, scaleX, scaleY, shadow, skewX, skewY, snapToPixel, visible, x, y
Method Summary
Method Attributes Method Name and Description
 
clone(recursive)
Returns a clone of this Shape.
Methods borrowed from class DisplayObject:
cache, draw, getConcatenatedMatrix, getStage, globalToLocal, hitTest, isVisible, localToGlobal, localToLocal, toString, uncache, updateCache
Class Detail
Shape(graphics)
Constructs a new Shape instance.
Parameters:
graphics
Optional. The graphics instance to display. If null, a new Graphics instance will be created.
Field Detail
graphics
The graphics instance to display.
Method Detail
clone(recursive)
Returns a clone of this Shape. Some properties that are specific to this instance's current context are reverted to their defaults (for example .parent).
Parameters:
recursive
If true, this Shape's Graphics instance will also be cloned. If false, the Graphics instance will be shared with the new Shape.

Documentation generated by JsDoc Toolkit 2.3.2 on Sun Feb 13 2011 22:46:01 GMT-0700 (MST)