Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of DrawArgs
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to</param>
 /// <param name="inPart">An integer part representing a value from 0 to NumParts being drawn</param>
 /// <param name="inStage">The integer stage representing an object that has several stages, for all of the parts to be passed through</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart, int inStage)
 {
     _graphics   = inGraphics;
     _drawWindow = inDrawWindow;
     _part       = inPart;
     _stage      = inStage;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of DrawArgs
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to</param>
 /// <param name="inPart">An integer part representing a value from 0 to NumParts being drawn</param>
 /// <param name="inStage">The integer stage representing an object that has several stages, for all of the parts to be passed through</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart, int inStage)
 {
     _graphics = inGraphics;
     _drawWindow = inDrawWindow;
     _part = inPart;
     _stage = inStage;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Replaces the inherited Envelope copy in order to create a copy of the DrawWindow instead
 /// </summary>
 /// <returns></returns>
 public new DrawWindow Copy()
 {
     IEnvelope env = base.Copy();
     DrawWindow dw = new DrawWindow(env);
     dw.GeographicView = _geographicView;
     return dw;
 }
Exemplo n.º 4
0
        /// <summary>
        /// Replaces the inherited Envelope copy in order to create a copy of the DrawWindow instead
        /// </summary>
        /// <returns></returns>
        public DrawWindow Copy()
        {
            Envelope   env = base.Clone();
            DrawWindow dw  = new DrawWindow(env)
            {
                GeographicView = _geographicView
            };

            return(dw);
        }
Exemplo n.º 5
0
        private Exception _exception; // The exception that aborted the drawing process

        /// <summary>
        /// Creates a new instance of the DrawCompleted Event Arguments
        /// </summary>
        /// <param name="inGraphics">A Graphics surface</param>
        /// <param name="inDrawWindow">An implementation of DotSpatial.Geometries.IEnvelope defining the geographic drawing region</param>
        /// <param name="inCancelled">True if the draw method was cancelled before any rendering took place.  A Cancel is different from when an acception is thrown.</param>
        /// <param name="inException">If an exception occured during rendering, this will not be null.</param>
        public DrawCompletedArgs(Graphics inGraphics, DrawWindow inDrawWindow, bool inCancelled, Exception inException)
            : base(inGraphics, inDrawWindow)
        {
            _cancelled = inCancelled;
            _exception = inException;
        }
Exemplo n.º 6
0
 /// <summary>
 /// Creates a new instance of the CancelPaint Event Arguments.
 /// </summary>
 /// <param name="inGraphics">The device that contains the drawing information for the event to determine whether or not to cancel.</param>
 /// <param name="inDrawWindow">The geographic bounds of the draw event</param>
 /// <param name="inPart">The part being drawn.  This is usually 0, unless NumParts is greater than 1.</param>
 /// <param name="inStage">The 0-based integer index indicating the stage of the drawing.</param>
 /// <param name="inCancel">A boolean specifying the default setting for the draw args.</param>
 public DrawVerifyArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart, int inStage, bool inCancel)
     : base(inGraphics, inDrawWindow, inPart, inStage)
 {
     _cancel = inCancel;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Creates a new instance of DrawArgs
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to</param>
 /// <param name="inPart">An integer part representing a value from 0 to NumParts being drawn</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart)
 {
     _graphics   = inGraphics;
     _drawWindow = inDrawWindow;
     _part       = inPart;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Creates a new instance of DrawArgs
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow)
 {
     _graphics   = inGraphics;
     _drawWindow = inDrawWindow;
     _part       = 0;
 }
Exemplo n.º 9
0
        private Exception _exception; // The exception that aborted the drawing process

        /// <summary>
        /// Creates a new instance of the DrawCompleted Event Arguments
        /// </summary>
        /// <param name="inGraphics">A Graphics surface</param>
        /// <param name="inDrawWindow">An implementation of DotSpatial.Geometries.Envelope defining the geographic drawing region</param>
        /// <param name="inCancelled">True if the draw method was cancelled before any rendering took place.  A Cancel is different from when an acception is thrown.</param>
        /// <param name="inException">If an exception occured during rendering, this will not be null.</param>
        public DrawCompletedArgs(Graphics inGraphics, DrawWindow inDrawWindow, bool inCancelled, Exception inException)
            : base(inGraphics, inDrawWindow)
        {
            _cancelled = inCancelled;
            _exception = inException;
        }
Exemplo n.º 10
0
 /// <summary>
 /// Creates a new instance of DrawArgs
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to</param>
 /// <param name="inPart">An integer part representing a value from 0 to NumParts being drawn</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart)
 {
     _graphics = inGraphics;
     _drawWindow = inDrawWindow;
     _part = inPart;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Creates a new instance of DrawArgs
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow)
 {
     _graphics = inGraphics;
     _drawWindow = inDrawWindow;
     _part = 0;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DrawArgs"/> class.
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object.</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to.</param>
 /// <param name="inPart">An integer part representing a value from 0 to NumParts being drawn.</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart)
     : this(inGraphics, inDrawWindow, inPart, 0)
 {
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DrawArgs"/> class.
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object.</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to.</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow)
     : this(inGraphics, inDrawWindow, 0, 0)
 {
 }
Exemplo n.º 14
0
 /// <summary>
 /// Creates a new instance of the CancelPaint Event Arguments.
 /// </summary>
 /// <param name="inGraphics">The device that contains the drawing information for the event to determine whether or not to cancel.</param>
 /// <param name="inDrawWindow">The geographic bounds of the draw event</param>
 /// <param name="inPart">The part being drawn.  This is usually 0, unless NumParts is greater than 1.</param>
 /// <param name="inStage">The 0-based integer index indicating the stage of the drawing.</param>
 /// <param name="inCancel">A boolean specifying the default setting for the draw args.</param>
 public DrawVerifyArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart, int inStage, bool inCancel)
     : base(inGraphics, inDrawWindow, inPart, inStage)
 {
     _cancel = inCancel;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Creates a new instance of DrawArgs
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to</param>
 /// <param name="inPart">An integer part representing a value from 0 to NumParts being drawn</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart)
     : this(inGraphics, inDrawWindow, inPart, 0)
 {
 }
Exemplo n.º 16
0
 /// <summary>
 /// Creates a new instance of DrawArgs
 /// </summary>
 /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param>
 /// <param name="inDrawWindow">A DotSpatial.Drawing.DrawWindow to draw to</param>
 public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow)
     : this(inGraphics, inDrawWindow, 0, 0)
 {
 }