@@ -48,7 +48,7 @@ public static void main( String[] args ) {
4848
4949 updateChartDelayedChanged ();
5050
51- lineChartPanel .setSecondWidth ( 500 );
51+ lineChartPanel .setOneSecondWidth ( 500 );
5252 mouseWheelTestPanel .lineChartPanel = lineChartPanel ;
5353 }
5454
@@ -217,7 +217,7 @@ static class MouseWheelTestPanel
217217 value = startValue + Math .round ( (targetValue - startValue ) * fraction );
218218 valueLabel .setText ( String .valueOf ( value ) );
219219
220- lineChartPanel .addValue ( value / (double ) MAX_VALUE , Color .red );
220+ lineChartPanel .addValue ( value / (double ) MAX_VALUE , false , Color .red , null );
221221 }, () -> {
222222 targetValue = -1 ;
223223 } );
@@ -235,7 +235,7 @@ public void mouseWheelMoved( MouseWheelEvent e ) {
235235 // for unprecise wheels the rotation value is usually -1 or +1
236236 // for precise wheels the rotation value is in range ca. -10 to +10,
237237 // depending how fast the wheel is rotated
238- lineChartPanel .addValue ( 0.5 + (preciseWheelRotation / 20. ), true , Color .red );
238+ lineChartPanel .addValue ( 0.5 + (preciseWheelRotation / 20. ), true , Color .red , null );
239239
240240 // increase/decrease target value if animation is in progress
241241 int newValue = (int ) ((targetValue < 0 ? value : targetValue ) + (STEP * preciseWheelRotation ));
@@ -252,7 +252,7 @@ public void mouseWheelMoved( MouseWheelEvent e ) {
252252 value = newValue ;
253253 valueLabel .setText ( String .valueOf ( value ) );
254254
255- lineChartPanel .addValue ( value / (double ) MAX_VALUE , Color .red );
255+ lineChartPanel .addValue ( value / (double ) MAX_VALUE , false , Color .red , null );
256256 return ;
257257 }
258258
0 commit comments