![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.sequencediagram.GroupingStart 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.sequencediagram;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.sourceforge.plantuml.klimt.color.HColor;
import net.sourceforge.plantuml.style.PName;
import net.sourceforge.plantuml.style.Style;
import net.sourceforge.plantuml.style.StyleBuilder;
import net.sourceforge.plantuml.url.Url;
public class GroupingStart extends Grouping {
private final List children = new ArrayList<>();
private final HColor backColorGeneral;
final private GroupingStart parent;
private boolean parallel = false;
public GroupingStart(String title, String comment, HColor backColorGeneral, HColor backColorElement,
GroupingStart parent, StyleBuilder styleBuilder) {
super(title, comment, GroupingType.START, backColorElement, styleBuilder);
this.backColorGeneral = backColorGeneral;
this.parent = parent;
}
public Style[] getUsedStyles() {
final Style[] result = super.getUsedStyles();
if (result[0] != null)
result[0] = result[0].eventuallyOverride(PName.BackGroundColor, backColorGeneral);
return result;
}
List getChildren() {
return Collections.unmodifiableList(children);
}
public void addChildren(GroupingLeaf g) {
children.add(g);
}
public int getLevel() {
if (parent == null)
return 0;
return parent.getLevel() + 1;
}
@Override
public HColor getBackColorGeneral() {
return backColorGeneral;
}
public boolean dealWith(Participant someone) {
return false;
}
public Url getUrl() {
return null;
}
public boolean hasUrl() {
return false;
}
@Override
public boolean isParallel() {
return parallel || getTitle().equals("par2");
}
public void goParallel() {
this.parallel = true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy