Exemplo n.º 1
0
 protected void DrawLineInfo(Context g, HChartLine line, int index)
 {
     g.MoveTo(NumberSpacingXLeft + 15, NumberSpacingYUp + 15 + index * 15);
     g.LineTo(NumberSpacingXLeft + 25, NumberSpacingYUp + 15 + index * 15);
     line.UseColor(g);
     g.LineWidth = 11;
     g.Stroke();
     g.MoveTo(NumberSpacingXLeft + 26, NumberSpacingYUp + 20 + index * 15);
     g.SetSourceRGBA(0, 0, 0, 0.5f);
     g.ShowText(line.GetName());
 }
Exemplo n.º 2
0
 public HDoubleChart(String name, HChartLine[] secondaryLines, params HChartLine[] primaryLines)
     : base(name, primaryLines)
 {
     this.secondaryLines = new List<HChartLine> (secondaryLines);
     NumberSpacingXRight = 40;
 }
Exemplo n.º 3
0
 public void AddLine(HChartLine line)
 {
     Lines.Add(line);
 }
Exemplo n.º 4
0
 public void AddLine(HChartLine line)
 {
     Lines.Add (line);
 }
Exemplo n.º 5
0
 protected void DrawLineInfo(Context g, HChartLine line, int index)
 {
     g.MoveTo (NumberSpacingXLeft+15, NumberSpacingYUp+15 + index * 15);
     g.LineTo (NumberSpacingXLeft+25, NumberSpacingYUp+15 + index * 15);
     line.UseColor (g);
     g.LineWidth = 11;
     g.Stroke ();
     g.MoveTo (NumberSpacingXLeft+26, NumberSpacingYUp+20 + index * 15);
     g.SetSourceRGBA (0, 0, 0, 0.5f);
     g.ShowText (line.GetName ());
 }