Esempio n. 1
0
        /// <summary>
        /// Sets the cursor type.
        /// </summary>
        /// <param name="cursorType">The cursor type.</param>
        public void SetCursorType(CursorType cursorType)
        {
            switch (cursorType)
            {
            case CursorType.Pan:
                this.Cursor = this.PanCursor;
                break;

            case CursorType.ZoomRectangle:
                this.Cursor = this.ZoomRectangleCursor;
                break;

            case CursorType.ZoomHorizontal:
                this.Cursor = this.ZoomHorizontalCursor;
                break;

            case CursorType.ZoomVertical:
                this.Cursor = this.ZoomVerticalCursor;
                break;

            default:
                this.Cursor = Cursors.Arrow;
                break;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Sets the cursor type.
        /// </summary>
        /// <param name="cursorType">The cursor type.</param>
        public void SetCursorType(OxyPlot.CursorType cursorType)
        {
            switch (cursorType)
            {
            case OxyPlot.CursorType.Pan:
                this.GdkWindow.Cursor = this.PanCursor;
                break;

            case OxyPlot.CursorType.ZoomRectangle:
                this.GdkWindow.Cursor = this.ZoomRectangleCursor;
                break;

            case OxyPlot.CursorType.ZoomHorizontal:
                this.GdkWindow.Cursor = this.ZoomHorizontalCursor;
                break;

            case OxyPlot.CursorType.ZoomVertical:
                this.GdkWindow.Cursor = this.ZoomVerticalCursor;
                break;

            default:
                this.GdkWindow.Cursor = new Cursor(CursorType.Arrow);
                break;
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Sets the cursor type.
        /// </summary>
        /// <param name="cursorType">The cursor type.</param>
        public void SetCursorType(CursorType cursorType)
        {
            switch (cursorType)
            {
            case CursorType.Pan:
                Cursor = PanCursor;
                break;

            case CursorType.ZoomRectangle:
                Cursor = ZoomRectangleCursor;
                break;

            case CursorType.ZoomHorizontal:
                Cursor = ZoomHorizontalCursor;
                break;

            case CursorType.ZoomVertical:
                Cursor = ZoomVerticalCursor;
                break;

            default:
                Cursor = Cursor.Default;
                break;
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Sets the cursor.
        /// </summary>
        /// <param name="cursor">The cursor.</param>
        public void SetCursorType(OxyPlot.CursorType cursor)
        {
            var type = Cursors.Arrow;

            switch (cursor)
            {
            case OxyPlot.CursorType.Default:
                type = null;
                break;

            case OxyPlot.CursorType.Pan:
                type = Cursors.Hand;
                break;

            case OxyPlot.CursorType.ZoomHorizontal:
                type = Cursors.SizeWE;
                break;

            case OxyPlot.CursorType.ZoomVertical:
                type = Cursors.SizeNS;
                break;

            case OxyPlot.CursorType.ZoomRectangle:
                type = Cursors.SizeNWSE;
                break;
            }

            Mouse.OverrideCursor = type;
        }
Esempio n. 5
0
        /// <summary>
        /// Sets the cursor type.
        /// </summary>
        /// <param name="cursorType">The cursor type.</param>
        public void SetCursorType(CursorType cursorType)
        {
//            switch (cursorType)
//            {
//                case CursorType.Pan:
//                    this.Cursor = this.PanCursor;
//                    break;
//                case CursorType.ZoomRectangle:
//                    this.Cursor = this.ZoomRectangleCursor;
//                    break;
//                case CursorType.ZoomHorizontal:
//                    this.Cursor = this.ZoomHorizontalCursor;
//                    break;
//                case CursorType.ZoomVertical:
//                    this.Cursor = this.ZoomVerticalCursor;
//                    break;
//                default:
//                    this.Cursor = Cursors.Arrow;
//                    break;
//            }
        }
Esempio n. 6
0
 /// <summary>
 /// Sets the cursor type.
 /// </summary>
 /// <param name="cursorType">The cursor type.</param>
 public void SetCursorType(CursorType cursorType)
 {
     switch (cursorType)
     {
         case CursorType.Pan:
             this.Cursor = this.PanCursor;
             break;
         case CursorType.ZoomRectangle:
             this.Cursor = this.ZoomRectangleCursor;
             break;
         case CursorType.ZoomHorizontal:
             this.Cursor = this.ZoomHorizontalCursor;
             break;
         case CursorType.ZoomVertical:
             this.Cursor = this.ZoomVerticalCursor;
             break;
         default:
             this.Cursor = Cursors.Arrow;
             break;
     }
 }