-
Notifications
You must be signed in to change notification settings - Fork 576
Expand file tree
/
Copy pathXYGraph.java
More file actions
728 lines (631 loc) · 20.2 KB
/
XYGraph.java
File metadata and controls
728 lines (631 loc) · 20.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
/*******************************************************************************
* Copyright (c) 2010 Oak Ridge National Laboratory.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
******************************************************************************/
package org.csstudio.swt.xygraph.figures;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.csstudio.swt.xygraph.linearscale.AbstractScale.LabelSide;
import org.csstudio.swt.xygraph.linearscale.LinearScale.Orientation;
import org.csstudio.swt.xygraph.linearscale.Range;
import org.csstudio.swt.xygraph.undo.OperationsManager;
import org.csstudio.swt.xygraph.undo.XYGraphMemento;
import org.csstudio.swt.xygraph.undo.ZoomCommand;
import org.csstudio.swt.xygraph.undo.ZoomType;
import org.csstudio.swt.xygraph.util.Log10;
import org.csstudio.swt.xygraph.util.SingleSourceHelper;
import org.csstudio.swt.xygraph.util.XYGraphMediaFactory;
import scouter.client.util.ColorUtil;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
/**
* XY-Graph Figure.
* @author Xihui Chen
* @author Kay Kasemir (performStagger)
* @author Laurent PHILIPPE (property change support)
*/
public class XYGraph extends Figure{
/**
* Add property change support to XYGraph
* Use for inform listener of xyGraphMem property changed
* @author L.PHILIPPE (GANIL)
*/
private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
@Override
public void addPropertyChangeListener(PropertyChangeListener listener) {
changeSupport.addPropertyChangeListener(listener);
}
@Override
public void addPropertyChangeListener(String property,
PropertyChangeListener listener) {
changeSupport.addPropertyChangeListener(property, listener);
}
@Override
public void removePropertyChangeListener(PropertyChangeListener listener) {
changeSupport.removePropertyChangeListener(listener);
}
@Override
public void removePropertyChangeListener(String property,
PropertyChangeListener listener) {
changeSupport.removePropertyChangeListener(property, listener);
}
public void fireConfigChanged() {
changeSupport.firePropertyChange("config", null, this);
}
/**
* Save the Graph settings
* Send a property changed event when changed
* @author L.PHILIPPE (GANIL)
*/
private XYGraphMemento xyGraphMem;
public XYGraphMemento getXyGraphMem() {
return xyGraphMem;
}
public void setXyGraphMem(XYGraphMemento xyGraphMem) {
XYGraphMemento old = this.xyGraphMem;
this.xyGraphMem = xyGraphMem;
changeSupport.firePropertyChange("xyGraphMem", old, this.xyGraphMem);
System.out.println("**** XYGraph.setXyGraphMem() ****");
}
private static final int GAP = 2;
// public final static Color WHITE_COLOR = ColorConstants.white;
// public final static Color BLACK_COLOR = ColorConstants.black;
/** Default colors for newly added item, used over when reaching the end.
* <p>
* Very hard to find a long list of distinct colors.
* This list is definitely too short...
*/
final public static RGB[] DEFAULT_TRACES_COLOR =
{
new RGB( 21, 21, 196), // blue
new RGB(242, 26, 26), // red
new RGB( 33, 179, 33), // green
new RGB( 0, 0, 0), // black
new RGB(128, 0, 255), // violett
new RGB(255, 170, 0), // (darkish) yellow
new RGB(255, 0, 240), // pink
new RGB(243, 132, 132), // peachy
new RGB( 0, 255, 11), // neon green
new RGB( 0, 214, 255), // neon blue
new RGB(114, 40, 3), // brown
new RGB(219, 128, 4), // orange
};
final public static RGB[] DEFAULT_TRACES_COLOR_DARK =
{
new RGB( 80, 140, 255), // blue
new RGB(255, 80, 80), // red
new RGB( 80, 220, 80), // green
new RGB(200, 200, 210), // light gray (replaces black)
new RGB(180, 100, 255), // violett
new RGB(255, 200, 60), // yellow
new RGB(255, 80, 240), // pink
new RGB(255, 170, 170), // peachy
new RGB( 80, 255, 80), // neon green
new RGB( 80, 230, 255), // neon blue
new RGB(200, 140, 60), // brown
new RGB(255, 180, 60), // orange
};
public static RGB[] getDefaultTracesColor() {
return ColorUtil.isDarkMode() ? DEFAULT_TRACES_COLOR_DARK : DEFAULT_TRACES_COLOR;
}
private int traceNum = 0;
private boolean transparent = false;
private boolean showLegend = true;
private Map<Axis, Legend> legendMap;
/** Graph title. Should never be <code>null</code> because
* otherwise the ToolbarArmedXYGraph's GraphConfigPage
* can crash.
*/
private String title = "";
private Color titleColor;
private Label titleLabel;
//ADD BECAUSE OF SWT invalid Thread acess on getTitleColor()
private FontData titleFontData;
private RGB titleColorRgb;
private List<Axis> xAxisList;
private List<Axis> yAxisList;
private PlotArea plotArea;
// TODO Clients can set these to null. Should these be 'final'? Or provider getter?
public Axis primaryXAxis;
public Axis primaryYAxis;
private OperationsManager operationsManager;
private ZoomType zoomType = ZoomType.NONE;
/**
* Constructor.
*/
public XYGraph() {
setOpaque(!transparent);
legendMap = new LinkedHashMap<Axis, Legend>();
titleLabel = new Label();
String sysFontName =
Display.getCurrent().getSystemFont().getFontData()[0].getName();
setTitleFont(XYGraphMediaFactory.getInstance().getFont(
new FontData(sysFontName, 12, SWT.BOLD)));
//titleLabel.setVisible(false);
xAxisList = new ArrayList<Axis>();
yAxisList = new ArrayList<Axis>();
plotArea = new PlotArea(this);
getPlotArea().setOpaque(!transparent);
add(titleLabel);
add(plotArea);
primaryYAxis = new Axis("Y-Axis", true);
primaryYAxis.setOrientation(Orientation.VERTICAL);
primaryYAxis.setTickLableSide(LabelSide.Primary);
primaryYAxis.setAutoScaleThreshold(0.1);
addAxis(primaryYAxis);
primaryXAxis = new Axis("X-Axis", false);
primaryXAxis.setOrientation(Orientation.HORIZONTAL);
primaryXAxis.setTickLableSide(LabelSide.Primary);
addAxis(primaryXAxis);
primaryXAxis.setForegroundColor(ColorUtil.getChartForeground());
primaryYAxis.setForegroundColor(ColorUtil.getChartForeground());
primaryXAxis.setMajorGridColor(ColorUtil.getAxisGridColor());
primaryYAxis.setMajorGridColor(ColorUtil.getAxisGridColor());
operationsManager = new OperationsManager();
}
@Override
public boolean isOpaque() {
return false;
}
@Override
protected void layout() {
Rectangle clientArea = getClientArea().getCopy();
boolean hasRightYAxis = false;
boolean hasTopXAxis = false;
boolean hasLeftYAxis = false;
boolean hasBottomXAxis = false;
if(titleLabel != null && titleLabel.isVisible() && !(titleLabel.getText().length() <= 0)){
Dimension titleSize = titleLabel.getPreferredSize();
titleLabel.setBounds(new Rectangle(clientArea.x + clientArea.width/2 - titleSize.width/2,
clientArea.y, titleSize.width, titleSize.height));
clientArea.y += titleSize.height + GAP;
clientArea.height -= titleSize.height + GAP;
}
if(showLegend){
List<Integer> rowHPosList = new ArrayList<Integer>();
List<Dimension> legendSizeList = new ArrayList<Dimension>();
List<Integer> rowLegendNumList = new ArrayList<Integer>();
List<Legend> legendList = new ArrayList<Legend>();
Object[] yAxes = legendMap.keySet().toArray();
int hPos = 0;
int rowLegendNum = 0;
for(int i = 0; i< yAxes.length; i++){
Legend legend = legendMap.get(yAxes[i]);
if(legend != null && legend.isVisible()){
legendList.add(legend);
Dimension legendSize = legend.getPreferredSize(clientArea.width, clientArea.height);
legendSizeList.add(legendSize);
if((hPos+legendSize.width + GAP) > clientArea.width){
if(rowLegendNum ==0)
break;
rowHPosList.add(clientArea.x + (clientArea.width-hPos)/2);
rowLegendNumList.add(rowLegendNum);
rowLegendNum = 1;
hPos = legendSize.width + GAP;
clientArea.height -=legendSize.height +GAP;
if(i==yAxes.length-1){
hPos =legendSize.width + GAP;
rowLegendNum = 1;
rowHPosList.add(clientArea.x + (clientArea.width-hPos)/2);
rowLegendNumList.add(rowLegendNum);
clientArea.height -=legendSize.height +GAP;
}
}else{
hPos+=legendSize.width + GAP;
rowLegendNum++;
if(i==yAxes.length-1){
rowHPosList.add(clientArea.x + (clientArea.width-hPos)/2);
rowLegendNumList.add(rowLegendNum);
clientArea.height -=legendSize.height +GAP;
}
}
}
}
int lm = 0;
int vPos = clientArea.y + clientArea.height + GAP;
for(int i=0; i<rowLegendNumList.size(); i++){
hPos = rowHPosList.get(i);
for(int j=0; j<rowLegendNumList.get(i); j++){
legendList.get(lm).setBounds(new Rectangle(
hPos, vPos, legendSizeList.get(lm).width, legendSizeList.get(lm).height));
hPos += legendSizeList.get(lm).width + GAP;
lm++;
}
vPos += legendSizeList.get(lm-1).height + GAP;
}
}
for(int i=xAxisList.size()-1; i>=0; i--){
Axis xAxis = xAxisList.get(i);
Dimension xAxisSize = xAxis.getPreferredSize(clientArea.width, clientArea.height);
if(xAxis.getTickLablesSide() == LabelSide.Primary){
if(xAxis.isVisible())
hasBottomXAxis = true;
xAxis.setBounds(new Rectangle(clientArea.x,
clientArea.y + clientArea.height - xAxisSize.height,
xAxisSize.width, xAxisSize.height));
clientArea.height -= xAxisSize.height;
}else{
if(xAxis.isVisible())
hasTopXAxis = true;
xAxis.setBounds(new Rectangle(clientArea.x,
clientArea.y+1,
xAxisSize.width, xAxisSize.height));
clientArea.y += xAxisSize.height ;
clientArea.height -= xAxisSize.height;
}
}
for(int i=yAxisList.size()-1; i>=0; i--){
Axis yAxis = yAxisList.get(i);
int hintHeight = clientArea.height + (hasTopXAxis ? 1 :0) *yAxis.getMargin()
+ (hasBottomXAxis ? 1 :0) *yAxis.getMargin();
if(hintHeight > getClientArea().height)
hintHeight = clientArea.height;
Dimension yAxisSize = yAxis.getPreferredSize(clientArea.width,
hintHeight);
if(yAxis.getTickLablesSide() == LabelSide.Primary){ // on the left
if(yAxis.isVisible())
hasLeftYAxis = true;
yAxis.setBounds(new Rectangle(clientArea.x,
clientArea.y - (hasTopXAxis? yAxis.getMargin():0),
yAxisSize.width, yAxisSize.height));
clientArea.x += yAxisSize.width;
clientArea.width -= yAxisSize.width;
}else{ // on the right
if(yAxis.isVisible())
hasRightYAxis = true;
yAxis.setBounds(new Rectangle(clientArea.x + clientArea.width - yAxisSize.width -1,
clientArea.y- (hasTopXAxis? yAxis.getMargin():0),
yAxisSize.width, yAxisSize.height));
clientArea.width -= yAxisSize.width;
}
}
//re-adjust xAxis boundss
for(int i=xAxisList.size()-1; i>=0; i--){
Axis xAxis = xAxisList.get(i);
Rectangle r = xAxis.getBounds().getCopy();
if(hasLeftYAxis)
r.x = clientArea.x - xAxis.getMargin()-1;
r.width = clientArea.width + (hasLeftYAxis ? xAxis.getMargin() : -1) +
(hasRightYAxis? xAxis.getMargin() : 0);
xAxis.setBounds(r);
}
if(plotArea != null && plotArea.isVisible()){
Rectangle plotAreaBound = new Rectangle(
primaryXAxis.getBounds().x + primaryXAxis.getMargin(),
primaryYAxis.getBounds().y + primaryYAxis.getMargin(),
primaryXAxis.getBounds().width - 2*primaryXAxis.getMargin(),
primaryYAxis.getBounds().height - 2*primaryYAxis.getMargin()
);
plotArea.setBounds(plotAreaBound);
}
super.layout();
}
/**
* @param zoomType the zoomType to set
*/
public void setZoomType(ZoomType zoomType) {
this.zoomType = zoomType;
plotArea.setZoomType(zoomType);
for(Axis axis : xAxisList)
axis.setZoomType(zoomType);
for(Axis axis : yAxisList)
axis.setZoomType(zoomType);
}
/**
* @return the zoomType
*/
public ZoomType getZoomType() {
return zoomType;
}
/**
* @param title the title to set
*/
public void setTitle(String title) {
this.title = title.trim();
titleLabel.setText(title);
}
/**
* @param showTitle true if title should be shown; false otherwise.
*/
public void setShowTitle(boolean showTitle){
titleLabel.setVisible(showTitle);
revalidate();
}
/**
* @return true if title should be shown; false otherwise.
*/
public boolean isShowTitle(){
return titleLabel.isVisible();
}
/**
* @param showLegend true if legend should be shown; false otherwise.
*/
public void setShowLegend(boolean showLegend){
this.showLegend = showLegend;
for(Axis yAxis : legendMap.keySet()){
Legend legend = legendMap.get(yAxis);
legend.setVisible(showLegend);
}
revalidate();
}
/**
* @return the showLegend
*/
public boolean isShowLegend() {
return showLegend;
}
/**Add an axis to the graph
* @param axis
*/
public void addAxis(Axis axis){
if(axis.isHorizontal())
xAxisList.add(axis);
else
yAxisList.add(axis);
plotArea.addGrid(new Grid(axis));
add(axis);
axis.setXyGraph(this);
revalidate();
}
/**Remove an axis from the graph
* @param axis
* @return true if this axis exists.
*/
public boolean removeAxis(Axis axis){
remove(axis);
plotArea.removeGrid(axis.getGrid());
revalidate();
if(axis.isHorizontal())
return xAxisList.remove(axis);
else
return yAxisList.remove(axis);
}
/**Add a trace
* @param trace
*/
public void addTrace(Trace trace){
if (trace.getTraceColor() == null)
{ // Cycle through default colors
RGB[] colors = getDefaultTracesColor();
trace.setTraceColor(XYGraphMediaFactory.getInstance().getColor(
colors[traceNum % colors.length]));
++traceNum;
}
if(legendMap.containsKey(trace.getYAxis()))
legendMap.get(trace.getYAxis()).addTrace(trace);
else{
legendMap.put(trace.getYAxis(), new Legend(this));
legendMap.get(trace.getYAxis()).addTrace(trace);
add(legendMap.get(trace.getYAxis()));
}
plotArea.addTrace(trace);
trace.setXYGraph(this);
trace.dataChanged(null);
revalidate();
repaint();
}
/**Remove a trace.
* @param trace
*/
public void removeTrace(Trace trace){
if(legendMap.containsKey(trace.getYAxis())){
legendMap.get(trace.getYAxis()).removeTrace(trace);
if(legendMap.get(trace.getYAxis()).getTraceList().size() <=0){
remove(legendMap.remove(trace.getYAxis()));
}
}
plotArea.removeTrace(trace);
revalidate();
repaint();
}
/**Add an annotation
* @param annotation
*/
public void addAnnotation(Annotation annotation){
plotArea.addAnnotation(annotation);
}
/**Remove an annotation
* @param annotation
*/
public void removeAnnotation(Annotation annotation){
plotArea.removeAnnotation(annotation);
}
/**
* @param titleFont the titleFont to set
*/
public void setTitleFont(Font titleFont) {
titleLabel.setFont(titleFont);
titleFontData = titleFont.getFontData()[0];
}
/**
* @return the title font.
*/
public Font getTitleFont(){
return titleLabel.getFont();
}
public FontData getTitleFontData() {
return titleFontData;
}
/**
* @param titleColor the titleColor to set
*/
public void setTitleColor(Color titleColor) {
this.titleColor = titleColor;
titleLabel.setForegroundColor(titleColor);
this.titleColorRgb = titleColor.getRGB();
}
/**
* {@inheritDoc}
*/
public void paintFigure(final Graphics graphics) {
if (!transparent) {
graphics.fillRectangle(getClientArea());
}
super.paintFigure(graphics);
}
/**
* @param transparent the transparent to set
*/
public void setTransparent(boolean transparent) {
this.transparent = transparent;
getPlotArea().setOpaque(!transparent);
repaint();
}
/**
* @return the transparent
*/
public boolean isTransparent() {
return transparent;
}
/** TODO This allows clients to change the traces via getPlotArea().getTraceList() and then add/remove/clear/...,
* circumventing the designated addTrace()/removeTrace().
* Can it be non-public?
* @return the plotArea, which contains all the elements drawn inside it.
*/
public PlotArea getPlotArea() {
return plotArea;
}
/** @return Image of the XYFigure. Receiver must dispose. */
public Image getImage(){
return SingleSourceHelper.getXYGraphSnapShot(this);
}
/**
* @return the titleColor
*/
public Color getTitleColor() {
if(titleColor == null)
return getForegroundColor();
return titleColor;
}
public RGB getTitleColorRgb() {
return titleColorRgb;
}
/**
* @return the title
*/
public String getTitle() {
return title;
}
/**
* @return the operationsManager
*/
public OperationsManager getOperationsManager() {
return operationsManager;
}
/**
* @return the xAxisList
*/
public List<Axis> getXAxisList() {
return xAxisList;
}
/**
* @return the yAxisList
*/
public List<Axis> getYAxisList() {
return yAxisList;
}
/**
* @return the all the axis include xAxes and yAxes.
* yAxisList is appended to xAxisList in the returned list.
*/
public List<Axis> getAxisList(){
List<Axis> list = new ArrayList<Axis>();
list.addAll(xAxisList);
list.addAll(yAxisList);
return list;
}
/**
* @return the legendMap
*/
public Map<Axis, Legend> getLegendMap() {
return legendMap;
}
/**
* Perform forced autoscale to all axes.
*/
public void performAutoScale(){
final ZoomCommand command = new ZoomCommand("Auto Scale", xAxisList, yAxisList);
for(Axis axis : xAxisList){
axis.performAutoScale(true);
}
for(Axis axis : yAxisList){
axis.performAutoScale(true);
}
command.saveState();
operationsManager.addCommand(command);
}
/** Stagger all axes: Autoscale each axis so that traces on various
* axes don't overlap
*/
public void performStagger()
{
final double GAP = 0.1;
final ZoomCommand command = new ZoomCommand("Stagger Axes", null, yAxisList);
// Arrange all axes so they don't overlap by assigning 1/Nth of
// the vertical range to each one
final int N = yAxisList.size();
for (int i=0; i<N; ++i)
{
final Axis yaxis = yAxisList.get(i);
// Does axis handle itself in another way?
if (yaxis.isAutoScale())
continue;
// Determine range of values on this axis
final Range axis_range = yaxis.getTraceDataRange();
// Skip axis which for some reason cannot determine its range
if (axis_range == null)
continue;
double low = axis_range.getLower();
double high = axis_range.getUpper();
if (low == high)
{ // Center trace with constant value (empty range)
final double half = Math.abs(low/2);
low -= half;
high += half;
}
if (yaxis.isLogScaleEnabled())
{ // Transition into log space
low = Log10.log10(low);
high = Log10.log10(high);
}
double span = high - low;
// Make some extra space
low -= GAP*span;
high += GAP*span;
span = high-low;
// With N axes, assign 1/Nth of the vertical plot space to this axis
// by shifting the span down according to the axis index,
// using a total of N*range.
low -= (N-i-1)*span;
high += i*span;
if (yaxis.isLogScaleEnabled())
{ // Revert from log space
low = Log10.pow10(low);
high = Log10.pow10(high);
}
// Sanity check for empty traces
if (low < high &&
!Double.isInfinite(low) && !Double.isInfinite(high))
yaxis.setRange(low, high);
}
command.saveState();
operationsManager.addCommand(command);
}
}