removed Path2D.WIND_EVEN_ODD where not necessary

This commit is contained in:
Karl Tauber
2019-09-09 17:42:35 +02:00
parent 030528764a
commit 3a9df2487c
4 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ public class FlatOptionPaneQuestionIcon
@Override
protected Shape createInside() {
Path2D q = new Path2D.Float( Path2D.WIND_EVEN_ODD );
Path2D q = new Path2D.Float();
q.moveTo( 14, 20 );
q.lineTo( 18, 20 );
q.curveTo( 18, 16, 23, 16, 23, 12 );

View File

@@ -46,7 +46,7 @@ public class FlatOptionPaneWarningIcon
@Override
protected Shape createOutside() {
Path2D outside = new Path2D.Float( Path2D.WIND_EVEN_ODD );
Path2D outside = new Path2D.Float();
outside.moveTo( 16, 2 );
outside.lineTo( 31, 28 );
outside.lineTo( 1, 28 );

View File

@@ -179,7 +179,7 @@ public class FlatSliderUI
double h = thumbRect.height;
double wh = w / 2;
Path2D thumb = new Path2D.Float( Path2D.WIND_NON_ZERO );
Path2D thumb = new Path2D.Float();
thumb.moveTo( 0, 0 );
thumb.lineTo( w, 0 );
thumb.lineTo( w, h - wh );

View File

@@ -155,7 +155,7 @@ public class FlatUIUtils
}
private static Path2D createOutlinePath( float x1, float y1, float x2, float y2, float arc ) {
Path2D rect = new Path2D.Float( Path2D.WIND_EVEN_ODD );
Path2D rect = new Path2D.Float();
rect.moveTo( x2 - arc, y1 );
rect.quadTo( x2, y1, x2, y1 + arc );
rect.lineTo( x2, y2 - arc );