protected override double GetScrollOffset(int axis) { if (scrollable == false) { return(0f); } if ((autoScrollHorizontally && axis == 0) || (autoScrollVertically && axis == 1)) { double sMax = ScrollableData.GetMaxValue(axis, false); //float sMin = (float)((IInternalGraphData)Data).GetMinValue(axis,false); double dMax = ScrollableData.GetMaxValue(axis, true); //float dMin = (float)((IInternalGraphData)Data).GetMinValue(axis, true); double scrolling = dMax - sMax; if (axis == 1) { verticalScrolling = scrolling; } else if (axis == 0) { horizontalScrolling = scrolling; } return(scrolling); } if (axis == 1) { return(verticalScrolling); } else if (axis == 0) { return(horizontalScrolling); } return(base.GetScrollOffset(axis)); }
protected void GetScrollParams(out double minX, out double minY, out double maxX, out double maxY, out double xScroll, out double yScroll, out double xSize, out double ySize, out double xOut) { minX = ScrollableData.GetMinValue(0, false); minY = ScrollableData.GetMinValue(1, false); maxX = ScrollableData.GetMaxValue(0, false); maxY = ScrollableData.GetMaxValue(1, false); xScroll = GetScrollOffset(0) + minX; yScroll = GetScrollOffset(1) + minY; xSize = maxX - minX; ySize = maxY - minY; xOut = xScroll + xSize; }