Skip to content

Repaint the plot area when chart overlays change - #3165

Merged
eselmeister merged 3 commits into
eclipse-chemclipse:developfrom
akurtakov:chart-overlay-redraw
Sep 25, 2026
Merged

eselmeister merged 3 commits into
eclipse-chemclipse:developfrom
akurtakov:chart-overlay-redraw

Conversation

@akurtakov

Copy link
Copy Markdown
Contributor

SWTChart doesn't repaint the chart on every mouse move anymore, only while an axis position marker is drawn. These overlays relied on that repaint, so they didn't update as soon as the minutes axis marker is switched off or the axis is hidden, and never on charts without one:

  • time range point modus: added points aren't shown, cleared points stay drawn
  • peak detector: a box selection cancelled by a double click stays drawn
  • peak split: the first tangent skim point isn't shown
  • PCA plots: a Ctrl+drag selection of nothing stays drawn after mouse up

Request the repaint where they change, using the helpers from eclipse-swtchart/swtchart#622, also for the hovered time range and the PCA selection drag.

Requires eclipse-swtchart/swtchart#622.

Assisted-by: Anthropic Claude Code (claude-opus-5-5[1m])

SWTChart doesn't repaint the chart on every mouse move anymore, it does
so only while an axis position marker is drawn. The point modus of the
time ranges chart just handed the points to the marker and relied on
that repaint, so an added point isn't shown and cleared points stay
drawn as soon as the position marker of the minutes axis is switched off
or that axis is hidden.

Request the repaint of the plot area the marker draws on when the
points are updated. Use the SWTChart helpers for it, also where the
hovered time range and the PCA selection request it.

Assisted-by: Anthropic Claude Code (claude-opus-5-5[1m])
SWTChart doesn't repaint the chart on every mouse move anymore, it does
so only while an axis position marker is drawn. The peak detector reset
its box and baseline selection without a repaint, so a box selection
cancelled by a double click stays drawn. The peak split didn't repaint
after the first point of a tangent skim was set, so its marker isn't
shown until the second point is set.

Request the repaint when the markers are updated.

Assisted-by: Anthropic Claude Code (claude-opus-5-5[1m])
SWTChart doesn't repaint the chart on every mouse move anymore, it does
so only while an axis position marker is drawn. The PCA plots reset the
Ctrl+drag selection on mouse up, but the plot area is only repainted if
some samples or variables are highlighted, so a selection of nothing
stays drawn.

Request the repaint of the plot area the selection is drawn on.

Assisted-by: Anthropic Claude Code (claude-opus-5-5[1m])
@eselmeister
eselmeister merged commit 96daf75 into eclipse-chemclipse:develop Sep 25, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants