Gridlines.js revision f69d245bb21be88752420e834a6b6be37e9b525f
/**
* Gridlines draws gridlines on a Graph.
*
* @Constructor
* @extends Base, Renderer
*/
/**
* @private
*/
render: function()
{
this._setCanvas();
},
/**
* @private
*/
remove: function()
{
if(graphic)
{
if(gNode)
{
}
}
},
/**
* @protected
*
* Draws the gridlines
*
* @method draw
*/
draw: function()
{
{
this._drawGridlines();
}
},
/**
* @private
*/
_drawGridlines: function()
{
i = 0,
l,
if(axisPosition == "none")
{
points = [];
for(; i < l; ++i)
{
points[i] = {
x: w * (i/(l-1)),
y: h * (i/(l-1))
};
}
i = 0;
}
else
{
}
if(!graphic)
{
this._setCanvas();
}
for(; i < l; ++i)
{
}
},
/**
* @private
*/
{
},
/**
* @private
*/
{
},
/**
* @private
* Creates a <code>Graphic</code> instance.
*/
_setCanvas: function()
{
},
/**
* @private
*/
_getDefaultStyles: function()
{
var defs = {
line: {
color:"#f0efe9",
weight: 1,
alpha: 1
}
};
return defs;
}
},
{
ATTRS: {
/**
* Indicates the direction of the gridline.
*
* @attribute direction
* @type String
*/
direction: {},
/**
* Indicate the <code>Axis</code> in which to bind
* the gridlines.
*
* @attribute axis
* @type Axis
*/
axis: {},
/**
* Indicates the <code>Graph</code> in which the gridlines
* are drawn.
*
* @attribute graph
* @type Graph
*/
graph: {}
}
});