/// <summary> /// Initialize the label content on the device. /// </summary> /// <param name="device"></param> public void Initialize(IDrawing.IDevice device, Font font) { try { #region Update#2 if (line != null) { line.Dispose(); line = null; } if (textWriter != null) { textWriter.Dispose(); textWriter = null; } #endregion line = GraphicEngine.GraphicEngine.CreateLine(device, font); line.Width = lineWidth; line.Antialias = true; textWriter = GraphicEngine.GraphicEngine.CreateTextWriter(device, Font);// 12, "Mitra"); } catch (System.Exception ex) { xPFT.Exceptions.ExceptionHandler.LogError(ex); } }
/// <summary> /// Dispose the annotation object. /// </summary> override public void Dispose() { if (textWriter != null) { textWriter.Dispose(); textWriter = null; } }
/// <summary> /// Initialize the annotation drawer object. /// </summary> /// <param name="device"></param> internal override void Initialize(IDrawing.IDevice device) { #region Update#2 if (textWriter != null) { textWriter.Dispose(); textWriter = null; } #endregion textWriter = GraphicEngine.GraphicEngine.CreateTextWriter(device, Font); }
/// <summary> /// Dispose the series /// </summary> public override void Dispose() { if (mainPolyLine != null) { mainPolyLine.Dispose(); mainPolyLine = null; } if (labelTextWriter != null) { labelTextWriter.Dispose(); labelTextWriter = null; } }
/// <summary> /// Initialize the series component on the device. /// </summary> /// <param name="device"></param> internal override void Initialize(IDrawing.IDevice device) { try { this.device = device; mainPolyLine = GraphicEngine.GraphicEngine.CreateLine(device, Font); mainPolyLine.Width = LineThickness; mainPolyLine.Antialias = true; mainPolyLine.Pattern = linePattern; labelTextWriter = GraphicEngine.GraphicEngine.CreateTextWriter(device, Font); points.Width = XAxis.Maximum - XAxis.Minimum; points.HeightBottom = YAxis.Minimum; points.HeightTop = YAxis.Maximum; } catch (System.Exception ex) { xPFT.Exceptions.ExceptionHandler.LogError(ex); } }