mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-29 00:06:34 +00:00
Merge pull request #1075 from pzzz/master
adds HyperLinks to GANTT Milestones
This commit is contained in:
commit
1f3dd64f7c
@ -141,7 +141,16 @@ public class TaskDrawDiamond extends AbstractTaskDraw {
|
|||||||
final double x2 = timeScale.getEndingPosition(start);
|
final double x2 = timeScale.getEndingPosition(start);
|
||||||
final double width = getShapeHeight(ug.getStringBounder());
|
final double width = getShapeHeight(ug.getStringBounder());
|
||||||
final double delta = x2 - x1 - width;
|
final double delta = x2 - x1 - width;
|
||||||
|
|
||||||
|
if (url != null) {
|
||||||
|
ug.startUrl(url);
|
||||||
|
}
|
||||||
|
|
||||||
drawShape(applyColors(ug).apply(UTranslate.dx(x1 + delta / 2)));
|
drawShape(applyColors(ug).apply(UTranslate.dx(x1 + delta / 2)));
|
||||||
|
|
||||||
|
if (url != null) {
|
||||||
|
ug.closeUrl();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private UGraphic applyColors(UGraphic ug) {
|
private UGraphic applyColors(UGraphic ug) {
|
||||||
|
Loading…
Reference in New Issue
Block a user