}
g.setFont(oldFont);
}
private CubicCurve2D createCubicCurve2D(Point startPoint, Point startPoint2, Point endPoint2, Point endPoint) {
final CubicCurve2D arrowLinkCurve = new CubicCurve2D.Double();
if (startPoint != null && endPoint != null) {
arrowLinkCurve.setCurve(startPoint, startPoint2, endPoint2, endPoint);
}
else if (startPoint != null) {
arrowLinkCurve.setCurve(startPoint, startPoint2, startPoint, startPoint2);
}
else if (endPoint != null) {
arrowLinkCurve.setCurve(endPoint, endPoint2, endPoint, endPoint2);
}
return arrowLinkCurve;
}