restore JDK5 compatibility
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1188233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0874288ed4
commit
5381a80cb0
@ -260,9 +260,9 @@ public class XSLFConnectorShape extends XSLFSimpleShape {
|
|||||||
break;
|
break;
|
||||||
case ARROW:
|
case ARROW:
|
||||||
GeneralPath arrow = new GeneralPath();
|
GeneralPath arrow = new GeneralPath();
|
||||||
arrow.moveTo(-lineWidth * 3, -lineWidth * 2);
|
arrow.moveTo((float) (-lineWidth * 3), (float) (-lineWidth * 2));
|
||||||
arrow.lineTo(0, 0);
|
arrow.lineTo(0, 0);
|
||||||
arrow.lineTo(-lineWidth * 3, lineWidth * 2);
|
arrow.lineTo((float) (-lineWidth * 3), (float) (lineWidth * 2));
|
||||||
shape = arrow;
|
shape = arrow;
|
||||||
at.translate(x2, y2);
|
at.translate(x2, y2);
|
||||||
at.rotate(alpha);
|
at.rotate(alpha);
|
||||||
@ -271,9 +271,9 @@ public class XSLFConnectorShape extends XSLFSimpleShape {
|
|||||||
scaleY = tailWidth.ordinal() + 1;
|
scaleY = tailWidth.ordinal() + 1;
|
||||||
scaleX = tailLength.ordinal() + 1;
|
scaleX = tailLength.ordinal() + 1;
|
||||||
GeneralPath triangle = new GeneralPath();
|
GeneralPath triangle = new GeneralPath();
|
||||||
triangle.moveTo(-lineWidth * scaleX, -lineWidth * scaleY/2);
|
triangle.moveTo((float) (-lineWidth * scaleX), (float) (-lineWidth * scaleY / 2));
|
||||||
triangle.lineTo(0, 0);
|
triangle.lineTo(0, 0);
|
||||||
triangle.lineTo(-lineWidth * scaleX, lineWidth * scaleY/2);
|
triangle.lineTo((float) (-lineWidth * scaleX), (float) (lineWidth * scaleY / 2));
|
||||||
triangle.closePath();
|
triangle.closePath();
|
||||||
shape = triangle;
|
shape = triangle;
|
||||||
at.translate(x2, y2);
|
at.translate(x2, y2);
|
||||||
@ -314,9 +314,9 @@ public class XSLFConnectorShape extends XSLFSimpleShape {
|
|||||||
case STEALTH:
|
case STEALTH:
|
||||||
case ARROW:
|
case ARROW:
|
||||||
GeneralPath arrow = new GeneralPath();
|
GeneralPath arrow = new GeneralPath();
|
||||||
arrow.moveTo(lineWidth * 3 * scaleX, -lineWidth * scaleY * 2);
|
arrow.moveTo((float) (lineWidth * 3 * scaleX), (float) (-lineWidth * scaleY * 2));
|
||||||
arrow.lineTo(0, 0);
|
arrow.lineTo(0, 0);
|
||||||
arrow.lineTo(lineWidth * 3 * scaleX, lineWidth * scaleY * 2);
|
arrow.lineTo((float) (lineWidth * 3 * scaleX), (float) (lineWidth * scaleY * 2));
|
||||||
shape = arrow;
|
shape = arrow;
|
||||||
at.translate(x1, y1);
|
at.translate(x1, y1);
|
||||||
at.rotate(alpha);
|
at.rotate(alpha);
|
||||||
@ -325,9 +325,9 @@ public class XSLFConnectorShape extends XSLFSimpleShape {
|
|||||||
scaleY = headWidth.ordinal() + 1;
|
scaleY = headWidth.ordinal() + 1;
|
||||||
scaleX = headLength.ordinal() + 1;
|
scaleX = headLength.ordinal() + 1;
|
||||||
GeneralPath triangle = new GeneralPath();
|
GeneralPath triangle = new GeneralPath();
|
||||||
triangle.moveTo(lineWidth * scaleX, -lineWidth * scaleY/2);
|
triangle.moveTo((float) (lineWidth * scaleX), (float) (-lineWidth * scaleY / 2));
|
||||||
triangle.lineTo(0, 0);
|
triangle.lineTo(0, 0);
|
||||||
triangle.lineTo(lineWidth * scaleX, lineWidth * scaleY/2);
|
triangle.lineTo((float) (lineWidth * scaleX), (float) (lineWidth * scaleY / 2));
|
||||||
triangle.closePath();
|
triangle.closePath();
|
||||||
shape = triangle;
|
shape = triangle;
|
||||||
at.translate(x1, y1);
|
at.translate(x1, y1);
|
||||||
|
Loading…
Reference in New Issue
Block a user