|
|
|
@ -15,6 +15,8 @@ namespace StartServerWPF.Modules.MseedChart.Models
|
|
|
|
|
{
|
|
|
|
|
public class WavesModel
|
|
|
|
|
{
|
|
|
|
|
public const int lineTextX = 60;
|
|
|
|
|
public const int lineTextY = -5;
|
|
|
|
|
public List<AxisY> CreateYAxisChart(List<StationModel> stationModels, LightningChart curChart)
|
|
|
|
|
{
|
|
|
|
|
List<AxisY> axisYList = new List<AxisY>();
|
|
|
|
@ -90,14 +92,14 @@ namespace StartServerWPF.Modules.MseedChart.Models
|
|
|
|
|
lineCollection.LineStyle.Color = System.Windows.Media.Colors.Red;
|
|
|
|
|
lineCollection.Title.Text = chartV.YAxes[assignYAxisIndex].Title.Text + ph.atime.ToString();
|
|
|
|
|
lineCollection.Title.Visible = true;
|
|
|
|
|
lineCollection.Title.Font.Size = 10;
|
|
|
|
|
lineCollection.Title.Font.Size = 12;
|
|
|
|
|
lineCollection.Title.Shadow.DropColor = System.Windows.Media.Colors.Transparent;
|
|
|
|
|
//lineCollection.Title.Shadow.ContrastColor = System.Windows.Media.Colors.Transparent;
|
|
|
|
|
lineCollection.Title.AutoPlacement = false;
|
|
|
|
|
lineCollection.Title.HorizontalAlign = AlignmentHorizontal.Left;
|
|
|
|
|
var b = chartV.XAxes[0].ValueToCoordD(chartV.XAxes[0].DateTimeToAxisValue(ph.atime))-80;
|
|
|
|
|
lineCollection.Title.Offset.SetValues((int)b, 3);
|
|
|
|
|
lineCollection.Title.Color = System.Windows.Media.Colors.Red;
|
|
|
|
|
var b = chartV.XAxes[0].ValueToCoordD(chartV.XAxes[0].DateTimeToAxisValue(ph.atime))- WavesModel.lineTextX;
|
|
|
|
|
lineCollection.Title.Offset.SetValues((int)b, WavesModel.lineTextY);
|
|
|
|
|
lineCollection.Title.Color = System.Windows.Media.Colors.Blue;
|
|
|
|
|
chartV.LineCollections.Add(lineCollection);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -121,14 +123,14 @@ namespace StartServerWPF.Modules.MseedChart.Models
|
|
|
|
|
lineCollection.LineStyle.Color = System.Windows.Media.Colors.Red;
|
|
|
|
|
lineCollection.Title.Text = chartV.YAxes[assignYAxisIndex].Title.Text+ " "+ am.atime.ToString("HH:mm:ss.fff");
|
|
|
|
|
lineCollection.Title.Visible = true;
|
|
|
|
|
lineCollection.Title.Font.Size = 10;
|
|
|
|
|
lineCollection.Title.Font.Size = 12;
|
|
|
|
|
lineCollection.Title.Shadow.DropColor = System.Windows.Media.Colors.Transparent;
|
|
|
|
|
// lineCollection.Title.Shadow.ContrastColor = System.Windows.Media.Colors.Transparent;
|
|
|
|
|
lineCollection.Title.AutoPlacement = false;
|
|
|
|
|
lineCollection.Title.HorizontalAlign = AlignmentHorizontal.Left;
|
|
|
|
|
var b= chartV.XAxes[0].ValueToCoordD(chartV.XAxes[0].DateTimeToAxisValue(am.atime))-80;
|
|
|
|
|
lineCollection.Title.Offset.SetValues((int)b,3);
|
|
|
|
|
lineCollection.Title.Color = System.Windows.Media.Colors.Red;
|
|
|
|
|
var b= chartV.XAxes[0].ValueToCoordD(chartV.XAxes[0].DateTimeToAxisValue(am.atime))- WavesModel.lineTextX;
|
|
|
|
|
lineCollection.Title.Offset.SetValues((int)b, WavesModel.lineTextY);
|
|
|
|
|
lineCollection.Title.Color = System.Windows.Media.Colors.Blue;
|
|
|
|
|
chartV.LineCollections.Add(lineCollection);
|
|
|
|
|
}
|
|
|
|
|
return new List<AxisY>();
|
|
|
|
|