Pointer display

This commit is contained in:
2025-08-20 15:34:13 +02:00
parent 83a1ae739d
commit 45cb47eb71
4 changed files with 40 additions and 0 deletions

View File

@@ -454,6 +454,26 @@ public class Puck extends DeviceBase {
}
}
private boolean pointed;
public boolean isPointed() {
return pointed;
}
public void setPointed(boolean value) {
if (value != pointed) {
if (value == true) {
for (Device d : getParent().getChildren()) {
if (d instanceof Puck puck) {
puck.pointed = false;
}
}
}
pointed = value;
}
}
public int getNumberOfSamples() {
return numberOfSamples;
}