RightAxisLayout.js revision 82d0cf8c731b23f6a2fbb31e3e696e629444363e
/**
* Contains algorithms for rendering a right axis.
*/
function RightAxisLayout(config)
{
}
RightAxisLayout.ATTRS = {
axisRenderer: {
value: null
}
};
/**
* Sets the length of the tick on either side of the axis line.
*/
setTickOffsets: function()
{
switch(display)
{
case "inside" :
break;
case "outside" :
break;
case "cross":
break;
}
},
{
},
/**
* Calculates the coordinates for the first point on an axis.
*/
getLineStart: function()
{
if(display === "inside")
{
pt.x += tickLength;
}
else if(display === "cross")
{
}
return pt;
},
/**
* Calculates the point for a label.
*/
getLabelPoint: function(point)
{
},
updateMaxLabelSize: function(label)
{
max;
{
}
else
{
if(rot === 0)
{
}
else if(absRot === 90)
{
}
else
{
}
}
},
{
margin = 0,
leftOffset = pt.x,
m11 = cosRadians,
{
}
{
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")
{
}
},
offsetNodeForTick: function(cb)
{
if(display === "inside")
{
}
else if (display === "cross")
{
}
},
setCalculatedSize: function()
{
}
});