Ejemplo n.º 1
0
 /// <summary>
 /// 创建图形控件属性
 /// </summary>
 /// <param name="node">节点</param>
 /// <param name="chart">图形控件</param>
 protected virtual void createChartSubProperty(XmlNode node, FCChart chart)
 {
     foreach (XmlNode node2 in node.ChildNodes)
     {
         String nodeName2 = node2.Name.ToLower();
         if (nodeName2 == "div")
         {
             ChartDiv div = chart.addDiv();
             setAttributesBefore(node2, div);
             foreach (XmlNode node3 in node2.ChildNodes)
             {
                 String nodeName3 = node3.Name.ToLower();
                 if (nodeName3 == "titlebar")
                 {
                     ChartTitleBar titleBar = div.TitleBar;
                     setAttributesBefore(node3, titleBar);
                     setAttributesAfter(node3, titleBar);
                 }
             }
             setAttributesAfter(node2, div);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 重绘方法
 /// </summary>
 /// <param name="paint">绘图对象</param>
 /// <param name="div">图层</param>
 /// <param name="rect">区域</param>
 public virtual void onPaint(FCPaint paint, ChartDiv div, FCRect rect)
 {
 }