Esempio n. 1
0
        int MeasureAxisSize(Axis ax)
        {
            double minStep = GetMinTickStep(ax.Dimension);

            TickEnumerator enumSmall = ax.GetTickEnumerator(minStep);

            if (enumSmall == null)
            {
                return(0);
            }

            TickEnumerator enumBig = ax.GetTickEnumerator(minStep * 2);

            if (enumBig == null)
            {
                return(MeasureTicksSize(enumSmall, ax.Dimension));
            }
            else
            {
                return(MeasureTicksSize(enumBig, ax.Dimension));
            }
        }
Esempio n. 2
0
        void DrawAxis(Gdk.Window win, Gdk.GC gc, Axis ax)
        {
            double minStep = GetMinTickStep(ax.Dimension);

            TickEnumerator enumSmall = ax.GetTickEnumerator(minStep);

            if (enumSmall == null)
            {
                return;
            }

            TickEnumerator enumBig = ax.GetTickEnumerator(minStep * 2);

            if (enumBig == null)
            {
                DrawTicks(win, gc, enumSmall, ax.Position, ax.Dimension, ax.TickSize, ax.ShowLabels);
            }
            else
            {
                DrawTicks(win, gc, enumSmall, ax.Position, ax.Dimension, ax.TickSize / 2, false);
                DrawTicks(win, gc, enumBig, ax.Position, ax.Dimension, ax.TickSize, ax.ShowLabels);
            }
        }
Esempio n. 3
0
        void DrawAxis(Context ctx, Axis ax)
        {
            ctx.SetLineWidth(1);
            double minStep = GetMinTickStep(ax.Dimension);

            TickEnumerator enumSmall = ax.GetTickEnumerator(minStep);

            if (enumSmall == null)
            {
                return;
            }

            TickEnumerator enumBig = ax.GetTickEnumerator(minStep * 2);

            if (enumBig == null)
            {
                DrawTicks(ctx, enumSmall, ax.Position, ax.Dimension, ax.TickSize, ax.ShowLabels);
            }
            else
            {
                DrawTicks(ctx, enumSmall, ax.Position, ax.Dimension, ax.TickSize / 2, false);
                DrawTicks(ctx, enumBig, ax.Position, ax.Dimension, ax.TickSize, ax.ShowLabels);
            }
        }
Esempio n. 4
0
        int MeasureAxisSize(Axis ax)
        {
            double minStep = GetMinTickStep (ax.Dimension);

            TickEnumerator enumSmall = ax.GetTickEnumerator (minStep);
            if (enumSmall == null)
                return 0;

            TickEnumerator enumBig = ax.GetTickEnumerator (minStep * 2);

            if (enumBig == null)
                return MeasureTicksSize (enumSmall, ax.Dimension);
            else
                return MeasureTicksSize (enumBig, ax.Dimension);
        }
Esempio n. 5
0
        void DrawAxis(Gdk.Window win, Gdk.GC gc, Axis ax)
        {
            double minStep = GetMinTickStep (ax.Dimension);

            TickEnumerator enumSmall = ax.GetTickEnumerator (minStep);
            if (enumSmall == null)
                return;

            TickEnumerator enumBig = ax.GetTickEnumerator (minStep * 2);

            if (enumBig == null) {
                DrawTicks (win, gc, enumSmall, ax.Position, ax.Dimension, ax.TickSize, ax.ShowLabels);
            } else {
                DrawTicks (win, gc, enumSmall, ax.Position, ax.Dimension, ax.TickSize / 2, false);
                DrawTicks (win, gc, enumBig, ax.Position, ax.Dimension, ax.TickSize, ax.ShowLabels);
            }
        }
Esempio n. 6
0
		void DrawAxis (Context ctx, Axis ax)
		{
			ctx.SetLineWidth (1);
			double minStep = GetMinTickStep (ax.Dimension);
			
			TickEnumerator enumSmall = ax.GetTickEnumerator (minStep);
			if (enumSmall == null)
				return;
				
			TickEnumerator enumBig = ax.GetTickEnumerator (minStep * 2);
			
			if (enumBig == null) {
				DrawTicks (ctx, enumSmall, ax.Position, ax.Dimension, ax.TickSize, ax.ShowLabels);
			} else {
				DrawTicks (ctx, enumSmall, ax.Position, ax.Dimension, ax.TickSize / 2, false);
				DrawTicks (ctx, enumBig, ax.Position, ax.Dimension, ax.TickSize, ax.ShowLabels);
			}
		}