net.sourceforge.plantuml.bpm.BpmDiagramFactory 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.bpm;
import java.util.List;
import java.util.Map;
import net.sourceforge.plantuml.AbstractPSystem;
import net.sourceforge.plantuml.command.Command;
import net.sourceforge.plantuml.command.PSystemCommandFactory;
import net.sourceforge.plantuml.core.DiagramType;
import net.sourceforge.plantuml.core.UmlSource;
public class BpmDiagramFactory extends PSystemCommandFactory {
public BpmDiagramFactory(DiagramType type) {
super(DiagramType.BPM);
}
@Override
protected void initCommandsList(List result) {
result.add(new CommandDockedEvent());
result.add(new CommandMerge());
result.add(new CommandResume());
result.add(new CommandGoto());
result.add(new CommandNewBranch());
result.add(new CommandElseBranch());
result.add(new CommandEndBranch());
}
@Override
public AbstractPSystem createEmptyDiagram(UmlSource source, Map skinParam) {
return new BpmDiagram(source);
}
}