Exemplo n.º 1
0
 internal static RectangleF GetBoundariesOfDataCore(Axis axisX, Axis axisY, bool justVisible)
 {
     double left;
     double right;
     double bottom;
     double top;
     axisX.GetMinMax(out left, out right, justVisible);
     if (axisX.IsReversed)
     {
         var temp = left;
         left = right;
         right = temp;
     }
     axisY.GetMinMax(out bottom, out top, justVisible);
     if (axisY.IsReversed)
     {
         var temp = top;
         top = bottom;
         bottom = temp;
     }
     return ExtentsFromDataCoordinates(left, top, right, bottom);
 }
Exemplo n.º 2
0
        internal static RectangleF GetBoundariesOfDataCore(Axis axisX, Axis axisY, bool justVisible)
        {
            double left;
            double right;
            double bottom;
            double top;

            axisX.GetMinMax(out left, out right, justVisible);
            if (axisX.IsReversed)
            {
                var temp = left;
                left  = right;
                right = temp;
            }
            axisY.GetMinMax(out bottom, out top, justVisible);
            if (axisY.IsReversed)
            {
                var temp = top;
                top    = bottom;
                bottom = temp;
            }
            return(ExtentsFromDataCoordinates(left, top, right, bottom));
        }