I first want to apologize to Gyro for monopolizing his thread for off-topic, but eventually it may be beneficial to others.
I do not intend to do a course on eclipse or Java because I'm not a specialist, but simply communicate some tips and tricks to help beginners (of course it will laugh professionals).
I preferred to make a document to not take up too much space.
https://ufile.io/lsx8je0uAs an example I took my search procedure to change the color of curves:
The research phase (2 modes):
1) with eclipse, the search only displays the first occurrence, you have to open the following folders to see everything.
Warning it tends to change tab.
2) with Notepad ++
involves uploading the source folder (contained in version 1.0.23) to the "Protect" folder
, the search displays all the occurrences and in addition displays the notes in original Chinese which allows to make a copy/paste to a translator.
At first, we only have the word "red", so we start a search with Notepad ++,
we notice that many are called "color.red", we restart a search with "color.red".
Now you have to be inspired by looking at the name of the JAR file containing the word "color.red",
I was inspired by "ChartDecorater" and I print it thanks to notepad++ which preserves syntactic colors.
Then I format the impression of this class in pencil and stabilo to understand and make notes
Inspire by the paintLabels () function line 137 and line 172 wfm.paintWaveFormInfo (g2d, pc, r, cm, lr, cssm);
line 36 indicates wfm = WaveFormManager
print class WaveFormManager, pencil, stabilo
inspire by the function WaveFormInfoControl () line 550 and line 584 wf.paintItem (g2d, pc, r, cm, false)
especially at line 580 there is wf.getChannelNumber ().
line 29 indicates wf = WaveForm
print Waveform class, pencil, stabilo
Inspire by the paintItem () function line 289 and
line 306 LineUtil.paintChannelLabel (yb, y, bottom, g2d, String.valueOf (ci.getNumber () + 1), 2, onFront);
print LineUtil class, pencil, stabilo
Analysis of the paintChannelLabel () function line 46
We can see that he draws the left label of the lines 118/119 and a line 111 to 116.
Only the color of the background "DARK_GRAY" is defined, it is necessary to go back for the color of the plot.
Return to the paintItem function of the WaveForm class
at line 300 ChannelInfo ci = wfi.ci; and 301 g2d.setColor (getColor ());
line 116 defined wfi = WaveFormInfo and in the class WaveFormInfo line 24 we read that ci = ChannelInfo
So we look in the class ChannelInfo and we find the RGB () line 117 and then the color for 4 channels 120 to 123 lines.
Simply replace "FF0000" with "00FF00" to switch channel 1 from red to green.
It was simple !!!