RightAxisLayout.js revision 4beb671b9f23325489cc74a7950f2b1f1420b5f3
/**
* RightAxisLayout contains algorithms for rendering a right axis.
*
* @constructor
* @class LeftAxisLayout
* @extends Base
* @param {Object} config
*/
function RightAxisLayout(config)
{
}
RightAxisLayout.ATTRS = {
axisRenderer: {
value: null
}
};
/**
* @protected
*
* Sets the length of the tick on either side of the axis line.
*
* @method
*/
setTickOffsets: function()
{
switch(display)
{
case "inside" :
break;
case "outside" :
break;
case "cross":
break;
}
},
/**
* Draws a tick
*
* @method drawTick
* @param {Object} pt Point on the axis in which the tick will intersect.
* @param {Object) tickStyle Hash of properties to apply to the tick.
*/
{
},
/**
* Calculates the coordinates for the first point on an axis.
*
* @method getLineStart
* @return {Object}
*/
getLineStart: function()
{
if(display === "inside")
{
pt.x += tickLength;
}
else if(display === "cross")
{
}
return pt;
},
/**
* Calculates the point for a label.
*
* @method getLabelPoint
* @param {Object} point Point on the axis in which the tick will intersect.
* @return {Object}
*/
getLabelPoint: function(point)
{
},
updateMaxLabelSize: function(label)
{
max;
if(!document.createElementNS)
{
}
else
{
if(rot === 0)
{
}
else if(absRot === 90)
{
}
else
{
}
}
},
{
margin = 0,
leftOffset = pt.x,
m11 = cosRadians,
{
}
if(!document.createElementNS)
{
if(rot === 0)
{
}
else if(absRot === 90)
{
}
else if(rot > 0)
{
}
else
{
}
leftOffset += margin;
{
filterString = "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + Math.round(labelAlpha * 100) + ")";
}
if(rot !== 0)
{
if(filterString)
{
filterString += " ";
}
else
{
filterString = "";
}
filterString += 'progid:DXImageTransform.Microsoft.Matrix(M11=' + m11 + ' M12=' + m12 + ' M21=' + m21 + ' M22=' + m22 + ' sizingMethod="auto expand")';
}
if(filterString)
{
}
return;
}
if(rot === 0)
{
}
else if(rot === 90)
{
}
else if(rot === -90)
{
}
else if(rot < 0)
{
}
else
{
}
leftOffset += margin;
},
/**
* Calculates the size and positions the content elements.
*/
setSizeAndPosition: function()
{
if(display === "outside")
{
}
else if(display === "cross")
{
}
},
/**
* @protected
*
* Adjusts position for inner ticks.
*
* @method offsetNodeForTick
* @param {Node} cb contentBox of the axis
*/
offsetNodeForTick: function(cb)
{
if(display === "inside")
{
}
else if (display === "cross")
{
}
},
/**
* @protected
*
* Assigns a height based on the size of the contents.
*
* @method setCalculatedSize
*/
setCalculatedSize: function()
{
}
});