public GaugeTickMark(GaugeScale scale, GaugeTickMarkRank rank, GaugeMarkerStyle style, float width, float length, double interval) : base(scale, rank, style, width, length) { _Interval = interval; _DefaultInterval = interval; }
/// <inheritdoc/> public override void Assign(GaugeScale src) { base.Assign(src); LinearScale s = src as LinearScale; MajorTicks.Assign(s.MajorTicks); MinorTicks.Assign(s.MinorTicks); }
/// <inheritdoc/> public override void Assign(GaugeScale src) { base.Assign(src); RadialScale s = src as RadialScale; MajorTicks.Assign(s.MajorTicks); MinorTicks.Assign(s.MinorTicks); }
/// <inheritdoc/> public override void Serialize(FRWriter writer, string prefix, GaugeScale diff) { base.Serialize(writer, prefix, diff); RadialScale dc = diff as RadialScale; MajorTicks.Serialize(writer, prefix + ".MajorTicks", dc.MajorTicks); MinorTicks.Serialize(writer, prefix + ".MinorTicks", dc.MinorTicks); }
public GaugeTickMarkBase(GaugeScale scale, GaugeTickMarkRank rank, TickMarkLayout layout) { _Scale = scale; _Rank = rank; _Layout = layout; _GaugeMarker = new GaugeMarker(); HookEvents(true); }
public GaugeIntervalLabel(GaugeScale scale) { Scale = scale; _Interval = double.NaN; _IntervalOffset = double.NaN; _ShowMinLabel = true; _ShowMaxLabel = true; }
/// <inheritdoc/> public override void Assign(GaugeScale src) { base.Assign(src); SimpleScale s = src as SimpleScale; MajorTicks.Assign(s.MajorTicks); MinorTicks.Assign(s.MinorTicks); FirstSubScale.Assign(s.FirstSubScale); SecondSubScale.Assign(s.SecondSubScale); }
/// <inheritdoc/> public override void Serialize(FRWriter writer, string prefix, GaugeScale diff) { base.Serialize(writer, prefix, diff); SimpleScale dc = diff as SimpleScale; MajorTicks.Serialize(writer, prefix + ".MajorTicks", dc.MajorTicks); MinorTicks.Serialize(writer, prefix + ".MinorTicks", dc.MinorTicks); FirstSubScale.Serialize(writer, prefix + ".FirstSubScale", dc.FirstSubScale); SecondSubScale.Serialize(writer, prefix + ".SecondSubScale", dc.SecondSubScale); }
public GaugePin(GaugeScale scale, bool isMmaxPin, string name) { _Scale = scale; _IsMaxPin = isMmaxPin; Name = name; _GaugeMarker = new GaugeMarker(); _Label = new GaugePinLabel(this); FillColor = new GradientFillColor(Color.WhiteSmoke); FillColor.BorderColor = Color.DimGray; FillColor.BorderWidth = 1; Length = .06f; Width = .06f; _EndOffset = .02f; HookEvents(true); }
public GaugeTickMarkBase(GaugeScale scale, GaugeTickMarkRank rank, GaugeMarkerStyle style, float width, float length) : this(scale, rank, new TickMarkLayout(style, width, length)) { }
public GaugeStrip(GaugeScale scale) : this() { _Scale = scale; }
internal void OnScaleEnter(GaugePointer pointer, GaugeScale scale) { if (ScaleEnter != null) ScaleEnter(this, new ScaleEnterEventArgs(pointer, scale)); }
internal void OnScaleExit(GaugePointer pointer, GaugeScale scale) { if (ScaleLeave != null) ScaleLeave(this, new ScaleLeaveEventArgs(pointer, scale)); }
internal GaugeScaleInstance(GaugeScale defObject) : base(defObject.GaugePanelDef) { m_defObject = defObject; }
public PreRenderScaleEventArgs(Graphics graphics, GaugeScale scale) : base(graphics, scale) { }
private string GetPointerName(GaugeScale scale) { for (int i = 1; i < 100; i++) { string s = "Pointer" + i.ToString(); if (scale.Pointers[s] == null) return (s); } return (null); }
private string GetLabelName(GaugeScale scale) { for (int i = 1; i < 100; i++) { string s = "Label" + i.ToString(); if (scale.CustomLabels[s] == null) return (s); } return (null); }
private string GetRangeName(GaugeScale scale) { for (int i = 1; i < 100; i++) { string s = "Range" + i.ToString(); if (scale.Ranges[s] == null) return (s); } return (null); }
private string GetSectionName(GaugeScale scale) { for (int i = 1; i < 100; i++) { string s = "Section" + i.ToString(); if (scale.Sections[s] == null) return (s); } return (null); }
public PostRenderScaleEventArgs(Graphics graphics, GaugeScale scale) { _Graphics = graphics; _Scale = scale; }
public ScaleEnterEventArgs(GaugePointer pointer, GaugeScale scale) { _Pointer = pointer; _Scale = scale; }
internal void OnPostRenderScale(PaintEventArgs e, GaugeScale scale) { if (PostRenderScale != null) { PostRenderScaleEventArgs args = new PostRenderScaleEventArgs(e.Graphics, scale); PostRenderScale(this, args); } }
internal bool OnPreRenderScale(PaintEventArgs e, GaugeScale scale) { if (PreRenderScale != null) { PreRenderScaleEventArgs args = new PreRenderScaleEventArgs(e.Graphics, scale); PreRenderScale(this, args); if (args.Cancel == true) return (true); } return (false); }
public ScaleLeaveEventArgs(GaugePointer pointer, GaugeScale scale) : base(pointer, scale) { }
public GaugeScaleInstance(GaugeScale defObject) : base(defObject.GaugePanelDef) { this.m_defObject = defObject; }
private GaugePointer GetLinearPointer(GaugeControl gauge, string sname, string pname) { GaugeScale scale = gauge.LinearScales[sname]; return (scale != null ? scale.Pointers[pname] : null); }