net.sourceforge.plantuml.activitydiagram3.gtile.GtileWithOutgoingArrow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.activitydiagram3.gtile;
import java.util.Collection;
import java.util.Collections;
import net.sourceforge.plantuml.klimt.UTranslate;
import net.sourceforge.plantuml.klimt.shape.TextBlockUtils;
public class GtileWithOutgoingArrow extends GtileWithMargin implements Gtile {
public GtileWithOutgoingArrow(AbstractGtileRoot orig, double south) {
super(orig, 0, south, 0);
if (orig instanceof GtileEmpty) {
System.err.println("Warning 1");
}
}
@Override
public Collection getInnerConnections() {
final GConnection arrow = new GConnectionVerticalDown(UTranslate.dy(0), orig.getGPoint(GPoint.SOUTH_HOOK),
UTranslate.dy(south), orig.getGPoint(GPoint.SOUTH_HOOK), TextBlockUtils.EMPTY_TEXT_BLOCK);
return Collections.singletonList(arrow);
}
}