Skip to content

Commit

Permalink
Merge pull request plantuml#1075 from pzzz/master
Browse files Browse the repository at this point in the history
adds HyperLinks to GANTT Milestones
  • Loading branch information
arnaudroques authored Aug 3, 2022
2 parents 5718bbe + 0813b74 commit 1f3dd64
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,16 @@ public void drawU(UGraphic ug) {
final double x2 = timeScale.getEndingPosition(start);
final double width = getShapeHeight(ug.getStringBounder());
final double delta = x2 - x1 - width;

if (url != null) {
ug.startUrl(url);
}

drawShape(applyColors(ug).apply(UTranslate.dx(x1 + delta / 2)));

if (url != null) {
ug.closeUrl();
}
}

private UGraphic applyColors(UGraphic ug) {
Expand Down

0 comments on commit 1f3dd64

Please sign in to comment.