mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-26 14:56:28 +00:00
Make interactive SVG for Object diagrams
This commit is contained in:
parent
e27667b683
commit
869143866f
@ -73,6 +73,7 @@ import net.sourceforge.plantuml.ugraphic.ULayoutGroup;
|
||||
import net.sourceforge.plantuml.ugraphic.URectangle;
|
||||
import net.sourceforge.plantuml.ugraphic.UStroke;
|
||||
import net.sourceforge.plantuml.ugraphic.UTranslate;
|
||||
import net.sourceforge.plantuml.ugraphic.UGroupType;
|
||||
import net.sourceforge.plantuml.ugraphic.color.HColor;
|
||||
|
||||
public class EntityImageMap extends AbstractEntityImage implements Stencil, WithPorts {
|
||||
@ -151,6 +152,8 @@ public class EntityImageMap extends AbstractEntityImage implements Stencil, With
|
||||
}
|
||||
|
||||
final UStroke stroke = getStroke();
|
||||
|
||||
ug.startGroup(UGroupType.CLASS, "elem " + getEntity().getCode() + " selected");
|
||||
ug.apply(stroke).draw(rect);
|
||||
|
||||
final ULayoutGroup header = new ULayoutGroup(new PlacementStrategyY1Y2(ug.getStringBounder()));
|
||||
@ -167,6 +170,8 @@ public class EntityImageMap extends AbstractEntityImage implements Stencil, With
|
||||
if (url != null) {
|
||||
ug.closeUrl();
|
||||
}
|
||||
|
||||
ug.closeGroup();
|
||||
}
|
||||
|
||||
private UStroke getStroke() {
|
||||
|
@ -72,6 +72,7 @@ import net.sourceforge.plantuml.ugraphic.URectangle;
|
||||
import net.sourceforge.plantuml.ugraphic.UStroke;
|
||||
import net.sourceforge.plantuml.ugraphic.UTranslate;
|
||||
import net.sourceforge.plantuml.ugraphic.color.HColor;
|
||||
import net.sourceforge.plantuml.ugraphic.UGroupType;
|
||||
|
||||
public class EntityImageObject extends AbstractEntityImage implements Stencil {
|
||||
|
||||
@ -156,6 +157,8 @@ public class EntityImageObject extends AbstractEntityImage implements Stencil {
|
||||
}
|
||||
|
||||
final UStroke stroke = getStroke();
|
||||
|
||||
ug.startGroup(UGroupType.CLASS, "elem " + getEntity().getCode() + " selected");
|
||||
ug.apply(stroke).draw(rect);
|
||||
|
||||
final ULayoutGroup header = new ULayoutGroup(new PlacementStrategyY1Y2(ug.getStringBounder()));
|
||||
@ -171,6 +174,8 @@ public class EntityImageObject extends AbstractEntityImage implements Stencil {
|
||||
if (url != null) {
|
||||
ug.closeUrl();
|
||||
}
|
||||
|
||||
ug.closeGroup();
|
||||
}
|
||||
|
||||
private UStroke getStroke() {
|
||||
|
Loading…
Reference in New Issue
Block a user