Commit b3ddcaa2 authored by Locatelli's avatar Locatelli
Browse files

Change dataplot message

parent 23b5bc52
...@@ -142,7 +142,7 @@ public class PlotyInstance { ...@@ -142,7 +142,7 @@ public class PlotyInstance {
byte[][] data = spySubcriber.receiveTwoParts(); byte[][] data = spySubcriber.receiveTwoParts();
if (data != null) { if (data != null) {
try { try {
if (DataPlotMessages.SpyMultiPlotMessage.parseFrom(data[0]).getType() == fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type.Spy) { if (DataPlotMessages.SpyMultiPlotMessage.parseFrom(data[0]).getType() == fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type.SpyChange) {
notifySpyPlotChanged(DataPlotMessages.SpyMultiPlotMessage.parseFrom(data[0]).getName(), data[1]); notifySpyPlotChanged(DataPlotMessages.SpyMultiPlotMessage.parseFrom(data[0]).getName(), data[1]);
} }
} }
......
...@@ -7719,23 +7719,31 @@ public final class DataPlotMessages { ...@@ -7719,23 +7719,31 @@ public final class DataPlotMessages {
public enum Type public enum Type
implements com.google.protobuf.Internal.EnumLite { implements com.google.protobuf.Internal.EnumLite {
/** /**
* <code>Spy = 1;</code> * <code>SpyChange = 1;</code>
*/ */
Spy(1), SpyChange(1),
/** /**
* <code>MultiPlot = 2;</code> * <code>SpyImage = 2;</code>
*/ */
MultiPlot(2), SpyImage(2),
/**
* <code>MultiPlotImage = 3;</code>
*/
MultiPlotImage(3),
; ;
/** /**
* <code>Spy = 1;</code> * <code>SpyChange = 1;</code>
*/
public static final int SpyChange_VALUE = 1;
/**
* <code>SpyImage = 2;</code>
*/ */
public static final int Spy_VALUE = 1; public static final int SpyImage_VALUE = 2;
/** /**
* <code>MultiPlot = 2;</code> * <code>MultiPlotImage = 3;</code>
*/ */
public static final int MultiPlot_VALUE = 2; public static final int MultiPlotImage_VALUE = 3;
public final int getNumber() { public final int getNumber() {
...@@ -7752,8 +7760,9 @@ public final class DataPlotMessages { ...@@ -7752,8 +7760,9 @@ public final class DataPlotMessages {
public static Type forNumber(int value) { public static Type forNumber(int value) {
switch (value) { switch (value) {
case 1: return Spy; case 1: return SpyChange;
case 2: return MultiPlot; case 2: return SpyImage;
case 3: return MultiPlotImage;
default: return null; default: return null;
} }
} }
...@@ -7793,7 +7802,7 @@ public final class DataPlotMessages { ...@@ -7793,7 +7802,7 @@ public final class DataPlotMessages {
*/ */
public fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type getType() { public fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type getType() {
fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type result = fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type.forNumber(type_); fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type result = fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type.forNumber(type_);
return result == null ? fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type.Spy : result; return result == null ? fr.ill.ics.ploty.DataPlotMessages.SpyMultiPlotMessage.Type.SpyChange : result;
} }
/** /**
* <code>required .ploty.SpyMultiPlotMessage.Type type = 1;</code> * <code>required .ploty.SpyMultiPlotMessage.Type type = 1;</code>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment