using System;
using System.Drawing;
namespace DevComponents.Tree.Display
{
	/// 
	/// Summary description for NodeRendererEventArgs.
	/// 
	public class NodeRendererEventArgs:EventArgs
	{
		/// 
		/// Gets or sets reference to Graphics object, canvas node is rendered on.
		/// 
		public System.Drawing.Graphics Graphics=null;
		/// 
		/// Gets or sets the reference to Node object being rendered.
		/// 
		public DevComponents.Tree.Node Node=null;
		/// 
		/// Gets or sets the absolute node bounds.
		/// 
		public Rectangle NodeBounds=Rectangle.Empty;
		/// 
		/// Gets or sets the reference to element style for rendered node or cell. Style provided here is the style
		/// for current node or cell state.
		/// 
		public ElementStyle Style=null;
		
		/// 
		/// Creates new instance of the class.
		/// 
		public NodeRendererEventArgs()
		{
		}
		
		public NodeRendererEventArgs(Graphics g, Node node, Rectangle bounds, ElementStyle style)
		{
			this.Graphics = g;
			this.Node = node;
			this.NodeBounds = bounds;
			this.Style = style;
		}
	}
}