mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 21:15:09 +00:00
Make interactive SVG for Class diagrams
This commit is contained in:
parent
28f253d992
commit
e27667b683
@ -51,6 +51,7 @@ import net.sourceforge.plantuml.style.StyleSignature;
|
||||
import net.sourceforge.plantuml.svek.AbstractEntityImage;
|
||||
import net.sourceforge.plantuml.svek.ShapeType;
|
||||
import net.sourceforge.plantuml.ugraphic.UGraphic;
|
||||
import net.sourceforge.plantuml.ugraphic.UGroupType;
|
||||
import net.sourceforge.plantuml.ugraphic.UPolygon;
|
||||
import net.sourceforge.plantuml.ugraphic.UStroke;
|
||||
import net.sourceforge.plantuml.ugraphic.color.HColor;
|
||||
@ -99,7 +100,9 @@ public class EntityImageBranch extends AbstractEntityImage {
|
||||
}
|
||||
diams.setDeltaShadow(shadowing);
|
||||
|
||||
ug.startGroup(UGroupType.CLASS, "elem " + getEntity().getCode() + " selected");
|
||||
ug.apply(border).apply(back.bg()).apply(stroke).draw(diams);
|
||||
ug.closeGroup();
|
||||
}
|
||||
|
||||
public ShapeType getShapeType() {
|
||||
|
@ -74,6 +74,7 @@ import net.sourceforge.plantuml.ugraphic.UGraphicStencil;
|
||||
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;
|
||||
import net.sourceforge.plantuml.ugraphic.color.HColorNone;
|
||||
|
||||
@ -131,7 +132,10 @@ public class EntityImageClass extends AbstractEntityImage implements Stencil, Wi
|
||||
if (url != null) {
|
||||
ug.startUrl(url);
|
||||
}
|
||||
|
||||
ug.startGroup(UGroupType.CLASS, "elem " + getEntity().getCode() + " selected");
|
||||
drawInternal(ug);
|
||||
ug.closeGroup();
|
||||
|
||||
if (url != null) {
|
||||
ug.closeUrl();
|
||||
|
@ -56,6 +56,7 @@ import net.sourceforge.plantuml.ugraphic.UEllipse;
|
||||
import net.sourceforge.plantuml.ugraphic.UGraphic;
|
||||
import net.sourceforge.plantuml.ugraphic.UStroke;
|
||||
import net.sourceforge.plantuml.ugraphic.UTranslate;
|
||||
import net.sourceforge.plantuml.ugraphic.UGroupType;
|
||||
|
||||
public class EntityImageLollipopInterface extends AbstractEntityImage {
|
||||
|
||||
@ -93,7 +94,9 @@ public class EntityImageLollipopInterface extends AbstractEntityImage {
|
||||
if (url != null) {
|
||||
ug.startUrl(url);
|
||||
}
|
||||
ug.startGroup(UGroupType.CLASS, "elem " + getEntity().getCode() + " selected");
|
||||
ug.apply(new UStroke(1.5)).draw(circle);
|
||||
ug.closeGroup();
|
||||
|
||||
final Dimension2D dimDesc = desc.calculateDimension(ug.getStringBounder());
|
||||
final double widthDesc = dimDesc.getWidth();
|
||||
|
Loading…
Reference in New Issue
Block a user