From aeeddcd921c02a81d4af8159cb3b57e077155e86 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sun, 13 Oct 2024 11:23:07 +0200 Subject: [PATCH] Improve documentation --- .../openrocket/swing/gui/scalefigure/FinPointFigure.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swing/src/main/java/info/openrocket/swing/gui/scalefigure/FinPointFigure.java b/swing/src/main/java/info/openrocket/swing/gui/scalefigure/FinPointFigure.java index 656bde9ee..0325a9406 100644 --- a/swing/src/main/java/info/openrocket/swing/gui/scalefigure/FinPointFigure.java +++ b/swing/src/main/java/info/openrocket/swing/gui/scalefigure/FinPointFigure.java @@ -60,7 +60,7 @@ public class FinPointFigure extends AbstractScaleFigure { private Rectangle2D.Double[] finPointHandles = null; private int selectedIndex = -1; - private int highlightIndex = -1; + private int highlightIndex = -1; // The first index of the segment to highlight when snapping to a fin point private static Color backgroundColor; private static Color finPointBodyLineColor; @@ -267,6 +267,10 @@ public class FinPointFigure extends AbstractScaleFigure { g2.draw(shape); } + /** + * Paints the highlight line between the two points when snapping to a fin point. + * @param g2 The graphics context to paint to. + */ private void paintHighlight(final Graphics2D g2) { final Coordinate[] points = finset.getFinPointsWithRoot();