break;\r
case ARROW:\r
GeneralPath arrow = new GeneralPath();\r
- arrow.moveTo(-lineWidth * 3, -lineWidth * 2);\r
+ arrow.moveTo((float) (-lineWidth * 3), (float) (-lineWidth * 2));\r
arrow.lineTo(0, 0);\r
- arrow.lineTo(-lineWidth * 3, lineWidth * 2);\r
+ arrow.lineTo((float) (-lineWidth * 3), (float) (lineWidth * 2));\r
shape = arrow;\r
at.translate(x2, y2);\r
at.rotate(alpha);\r
scaleY = tailWidth.ordinal() + 1;\r
scaleX = tailLength.ordinal() + 1;\r
GeneralPath triangle = new GeneralPath();\r
- triangle.moveTo(-lineWidth * scaleX, -lineWidth * scaleY/2);\r
+ triangle.moveTo((float) (-lineWidth * scaleX), (float) (-lineWidth * scaleY / 2));\r
triangle.lineTo(0, 0);\r
- triangle.lineTo(-lineWidth * scaleX, lineWidth * scaleY/2);\r
+ triangle.lineTo((float) (-lineWidth * scaleX), (float) (lineWidth * scaleY / 2));\r
triangle.closePath();\r
shape = triangle;\r
at.translate(x2, y2);\r
case STEALTH:\r
case ARROW:\r
GeneralPath arrow = new GeneralPath();\r
- arrow.moveTo(lineWidth * 3 * scaleX, -lineWidth * scaleY * 2);\r
+ arrow.moveTo((float) (lineWidth * 3 * scaleX), (float) (-lineWidth * scaleY * 2));\r
arrow.lineTo(0, 0);\r
- arrow.lineTo(lineWidth * 3 * scaleX, lineWidth * scaleY * 2);\r
+ arrow.lineTo((float) (lineWidth * 3 * scaleX), (float) (lineWidth * scaleY * 2));\r
shape = arrow;\r
at.translate(x1, y1);\r
at.rotate(alpha);\r
scaleY = headWidth.ordinal() + 1;\r
scaleX = headLength.ordinal() + 1;\r
GeneralPath triangle = new GeneralPath();\r
- triangle.moveTo(lineWidth * scaleX, -lineWidth * scaleY/2);\r
+ triangle.moveTo((float) (lineWidth * scaleX), (float) (-lineWidth * scaleY / 2));\r
triangle.lineTo(0, 0);\r
- triangle.lineTo(lineWidth * scaleX, lineWidth * scaleY/2);\r
+ triangle.lineTo((float) (lineWidth * scaleX), (float) (lineWidth * scaleY / 2));\r
triangle.closePath();\r
shape = triangle;\r
at.translate(x1, y1);\r