VMLPath.js revision e7c7565d9550eaa87043aef0df77125ada996dea
/**
* The VMLPath class creates a graphic object with editable
* properties.
*
* @class VMLPath
* @extends VMLShape
*/
VMLPath = function()
{
};
/**
* Indicates the type of shape
*
* @property _type
* @readOnly
* @type String
*/
_type: "shape",
/**
* Draws the graphic.
*
* @method _draw
* @private
*/
_draw: function()
{
w = this.get("width"),
h = this.get("height"),
pathEnd = "";
this._fillChangeHandler();
this._strokeChangeHandler();
if(path)
{
{
pathEnd += ' x';
}
if(stroke)
{
pathEnd += ' e';
}
}
if(path)
{
}
if(w && h)
{
}
this._updateTransform();
},
/**
* Completes a drawing operation.
*
* @method end
*/
end: function()
{
this._draw();
},
/**
* Clears the path.
*
* @method clear
*/
clear: function()
{
this._path = "";
}
}));
/**
* Indicates the width of the shape
*
* @attribute width
* @type Number
*/
width: {
getter: function()
{
return this._width;
},
{
return val;
}
},
/**
* Indicates the height of the shape
*
* @attribute height
* @type Number
*/
height: {
getter: function()
{
return this._height;
},
{
return val;
}
},
/**
* Indicates the path used for the node.
*
* @attribute path
* @type String
*/
path: {
readOnly: true,
getter: function()
{
return this._path;
}
}
});