Exemplo n.º 1
0
		public NodeMapLayout(TreeGX treeControl, Rectangle clientArea):base(treeControl,clientArea)
		{
		}
Exemplo n.º 2
0
		//private bool m_LayoutPerformed=false;

		public NodeTreeLayout(TreeGX treeControl, Rectangle clientArea):base(treeControl,clientArea)
		{
			ExpandPartSize=new Size(9,9);
		}
Exemplo n.º 3
0
		/// <summary>
		/// Creates new instance of the class and initializes it with default values.
		/// </summary>
		/// <param name="g">Reference to graphics object.</param>
		public TreeBackgroundRendererEventArgs(Graphics g, TreeGX tree)
		{
			this.Graphics = g;
			this.TreeGX = tree;
		}
Exemplo n.º 4
0
		/// <summary>Creates new instance of the class</summary>
		/// <param name="tree">Object to initialize class with.</param>
		public NodeDisplay(TreeGX tree)
		{
			m_Tree=tree;
		}
Exemplo n.º 5
0
		/// <summary>Creates new instance of the class</summary>
		/// <param name="tree">Object to initialize class with.</param>
		public NodeTreeDisplay(TreeGX tree):base(tree)
		{
		}
Exemplo n.º 6
0
		public NodeLayout(TreeGX treeControl, Rectangle clientArea)
		{
			m_Tree=treeControl;
			m_ClientArea=clientArea;
		}
Exemplo n.º 7
0
		public static Font GetCellFont(TreeGX tree, Cell cell)
		{
			Font font=tree.Font;
			ElementStyle style=null;
			
			if(cell.StyleNormal!=null)
			{
				style=cell.StyleNormal;
			}
			else
			{
				if(tree.NodeStyle!=null)
					style=tree.NodeStyle;
				else
					style=new ElementStyle();

				if(tree.CellStyleDefault!=null)
					style=tree.CellStyleDefault;
				else
					style=ElementStyle.GetDefaultCellStyle(style);
			}

			if(style!=null && style.Font!=null)
				font=style.Font;

			return font;
		}