File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/projections/Tools/Timeline Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 99import java .awt .Graphics2D ;
1010import java .awt .Point ;
1111import java .awt .Rectangle ;
12+ import java .awt .RenderingHints ;
1213import java .awt .event .MouseEvent ;
1314import java .awt .event .MouseListener ;
1415import java .awt .event .MouseMotionListener ;
@@ -115,10 +116,12 @@ public void run() {
115116 /** Paint the entire opaque panel*/
116117 public void paintComponent (Graphics g ) {
117118 synchronized (data ){
119+ Graphics2D g2 = (Graphics2D )g ;
120+ g2 .setRenderingHint (RenderingHints .KEY_ANTIALIASING , RenderingHints .VALUE_ANTIALIAS_ON );
118121 if (RenderInParallel && data .numPs ()>1 ){
119- paintInParallel (( Graphics2D ) g );
122+ paintInParallel (g2 );
120123 } else {
121- paintSequentially (( Graphics2D ) g );
124+ paintSequentially (g2 );
122125 }
123126 }
124127 }
You can’t perform that action at this time.
0 commit comments