From 3052e6b45132a0f4800c78f55b87036dd2f2ff93 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 12 Apr 2023 15:37:01 +0200 Subject: [PATCH] LabelPanel: faster removeAllLabels --- .../java/sc/fiji/labkit/ui/models/ColoredLabelsModel.java | 5 +++++ src/main/java/sc/fiji/labkit/ui/panel/LabelPanel.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/sc/fiji/labkit/ui/models/ColoredLabelsModel.java b/src/main/java/sc/fiji/labkit/ui/models/ColoredLabelsModel.java index 0598acee..12acbb56 100644 --- a/src/main/java/sc/fiji/labkit/ui/models/ColoredLabelsModel.java +++ b/src/main/java/sc/fiji/labkit/ui/models/ColoredLabelsModel.java @@ -92,6 +92,11 @@ public void addLabel() { fireLabelsChanged(); } + public void removeAllLabels(List