![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.activitydiagram3.ftile.FtileWithConnection 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.ftile;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import net.sourceforge.plantuml.activitydiagram3.ftile.vertical.FtileDecorate;
import net.sourceforge.plantuml.klimt.drawing.UGraphic;
class FtileWithConnection extends FtileDecorate {
private final List connections = new ArrayList<>();
FtileWithConnection(Ftile ftile, Collection connections) {
super(ftile);
if (Objects.requireNonNull(connections).size() == 0) {
throw new IllegalArgumentException();
}
this.connections.addAll(connections);
}
@Override
public String toString() {
return super.toString() + " " + connections;
}
public FtileWithConnection(Ftile ftile, Connection connection) {
this(ftile, Arrays.asList(Objects.requireNonNull(connection)));
}
public void drawU(UGraphic ug) {
getFtileDelegated().drawU(ug);
for (Connection c : connections) {
ug.draw(c);
}
}
public Collection getInnerConnections() {
final List result = new ArrayList<>(super.getInnerConnections());
result.addAll(connections);
return Collections.unmodifiableList(connections);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy