mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 02:49:06 +00:00
adds HyperLinks to GANTT Milestones
This resembles the behavior of "normal" tasks in the GANTT chart to enable linking of milestones. It is meant to resolve issue #1074
This commit is contained in:
parent
5718bbe08c
commit
0813b747e3
@ -141,7 +141,16 @@ public class TaskDrawDiamond extends AbstractTaskDraw {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user