2013-12-10 19:36:50 +00:00
|
|
|
/* ========================================================================
|
|
|
|
* PlantUML : a free UML diagram generator
|
|
|
|
* ========================================================================
|
|
|
|
*
|
2022-03-07 19:33:46 +00:00
|
|
|
* (C) Copyright 2009-2023, Arnaud Roques
|
2013-12-10 19:36:50 +00:00
|
|
|
*
|
2016-03-06 16:47:34 +00:00
|
|
|
* Project Info: http://plantuml.com
|
2013-12-10 19:36:50 +00:00
|
|
|
*
|
2017-03-15 19:13:31 +00:00
|
|
|
* If you like this project or if you find it useful, you can support us at:
|
|
|
|
*
|
|
|
|
* http://plantuml.com/patreon (only 1$ per month!)
|
|
|
|
* http://plantuml.com/paypal
|
|
|
|
*
|
2013-12-10 19:36:50 +00:00
|
|
|
* This file is part of PlantUML.
|
|
|
|
*
|
|
|
|
* PlantUML is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* PlantUML distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
|
|
* License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
* USA.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Original Author: Arnaud Roques
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package net.sourceforge.plantuml.activitydiagram3;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2019-06-26 19:24:49 +00:00
|
|
|
import net.sourceforge.plantuml.ISkinSimple;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandActivity3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandActivityLegacy1;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandActivityLong3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandArrow3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandArrowLong3;
|
2017-04-05 17:37:42 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandBackward3;
|
2022-01-12 18:48:43 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandBackwardLong3;
|
2016-12-01 20:29:25 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandBreak;
|
2019-04-21 20:40:01 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandCase;
|
2018-01-04 22:32:45 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandCircleSpot3;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandElse3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandElseIf2;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandElseLegacy1;
|
2015-07-11 09:32:49 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandEnd3;
|
2015-04-07 18:18:37 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandEndPartition3;
|
2019-04-21 20:40:01 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandEndSwitch;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandEndif3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandFork3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandForkAgain3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandForkEnd3;
|
2015-04-07 18:18:37 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandGoto;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandGroup3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandGroupEnd3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandIf2;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandIf4;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandIfLegacy1;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandKill3;
|
2015-04-07 18:18:37 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandLabel;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandLink3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandNote3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandNoteLong3;
|
2015-04-07 18:18:37 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandPartition3;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandRepeat3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandRepeatWhile3;
|
2015-05-31 18:56:03 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandRepeatWhile3Multilines;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandSplit3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandSplitAgain3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandSplitEnd3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandStart3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandStop3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandSwimlane;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandSwimlane2;
|
2019-04-21 20:40:01 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandSwitch;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandWhile3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandWhileEnd3;
|
2022-02-10 18:16:18 +00:00
|
|
|
import net.sourceforge.plantuml.api.ThemeStyle;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.command.Command;
|
2015-05-31 18:56:03 +00:00
|
|
|
import net.sourceforge.plantuml.command.CommandDecoratorMultine;
|
2015-04-07 18:18:37 +00:00
|
|
|
import net.sourceforge.plantuml.command.CommandFootboxIgnored;
|
2022-01-28 21:45:34 +00:00
|
|
|
import net.sourceforge.plantuml.command.CommonCommands;
|
2022-02-10 18:16:18 +00:00
|
|
|
import net.sourceforge.plantuml.command.PSystemCommandFactory;
|
2021-05-23 15:35:13 +00:00
|
|
|
import net.sourceforge.plantuml.core.UmlSource;
|
2013-12-10 19:36:50 +00:00
|
|
|
|
2020-09-30 20:57:58 +00:00
|
|
|
public class ActivityDiagramFactory3 extends PSystemCommandFactory {
|
2013-12-10 19:36:50 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
protected List<Command> createCommands() {
|
|
|
|
|
2021-05-14 08:42:57 +00:00
|
|
|
final List<Command> cmds = new ArrayList<>();
|
2015-04-07 18:18:37 +00:00
|
|
|
cmds.add(new CommandFootboxIgnored());
|
2013-12-10 19:36:50 +00:00
|
|
|
|
2022-01-28 21:45:34 +00:00
|
|
|
CommonCommands.addCommonCommands1(cmds);
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandSwimlane());
|
|
|
|
cmds.add(new CommandSwimlane2());
|
2015-04-07 18:18:37 +00:00
|
|
|
cmds.add(new CommandPartition3());
|
|
|
|
cmds.add(new CommandEndPartition3());
|
|
|
|
cmds.add(new CommandGroup3());
|
|
|
|
cmds.add(new CommandGroupEnd3());
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandArrow3());
|
|
|
|
cmds.add(new CommandArrowLong3());
|
2020-02-18 21:24:31 +00:00
|
|
|
cmds.add(new CommandRepeat3());
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandActivity3());
|
|
|
|
cmds.add(new CommandIf4());
|
|
|
|
cmds.add(new CommandIf2());
|
2022-03-19 12:48:23 +00:00
|
|
|
cmds.add(CommandDecoratorMultine.create(new CommandIf2(), 50));
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandIfLegacy1());
|
|
|
|
cmds.add(new CommandElseIf2());
|
|
|
|
cmds.add(new CommandElse3());
|
2022-03-19 12:48:23 +00:00
|
|
|
cmds.add(CommandDecoratorMultine.create(new CommandElse3(), 50));
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandElseLegacy1());
|
|
|
|
cmds.add(new CommandEndif3());
|
2019-04-21 20:40:01 +00:00
|
|
|
|
|
|
|
cmds.add(new CommandSwitch());
|
|
|
|
cmds.add(new CommandCase());
|
|
|
|
cmds.add(new CommandEndSwitch());
|
|
|
|
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandRepeatWhile3());
|
2015-05-31 18:56:03 +00:00
|
|
|
cmds.add(new CommandRepeatWhile3Multilines());
|
2017-04-05 17:37:42 +00:00
|
|
|
cmds.add(new CommandBackward3());
|
2022-01-12 18:48:43 +00:00
|
|
|
cmds.add(new CommandBackwardLong3());
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandWhile3());
|
|
|
|
cmds.add(new CommandWhileEnd3());
|
2022-01-28 21:45:34 +00:00
|
|
|
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandFork3());
|
|
|
|
cmds.add(new CommandForkAgain3());
|
|
|
|
cmds.add(new CommandForkEnd3());
|
2022-01-28 21:45:34 +00:00
|
|
|
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandSplit3());
|
|
|
|
cmds.add(new CommandSplitAgain3());
|
|
|
|
cmds.add(new CommandSplitEnd3());
|
2015-05-31 18:56:03 +00:00
|
|
|
// cmds.add(new CommandGroup3());
|
|
|
|
// cmds.add(new CommandGroupEnd3());
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandStart3());
|
|
|
|
cmds.add(new CommandStop3());
|
2018-01-04 22:32:45 +00:00
|
|
|
cmds.add(new CommandCircleSpot3());
|
2016-12-01 20:29:25 +00:00
|
|
|
cmds.add(new CommandBreak());
|
2015-06-07 10:23:10 +00:00
|
|
|
cmds.add(new CommandEnd3());
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandKill3());
|
|
|
|
cmds.add(new CommandLink3());
|
|
|
|
cmds.add(new CommandNote3());
|
|
|
|
cmds.add(new CommandNoteLong3());
|
|
|
|
|
|
|
|
cmds.add(new CommandActivityLong3());
|
|
|
|
cmds.add(new CommandActivityLegacy1());
|
|
|
|
|
2015-04-07 18:18:37 +00:00
|
|
|
cmds.add(new CommandLabel());
|
|
|
|
cmds.add(new CommandGoto());
|
2022-03-19 12:48:23 +00:00
|
|
|
cmds.add(CommandDecoratorMultine.create(new CommandElseIf2(), 50));
|
2015-04-07 18:18:37 +00:00
|
|
|
|
2013-12-10 19:36:50 +00:00
|
|
|
return cmds;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2022-02-10 18:16:18 +00:00
|
|
|
public ActivityDiagram3 createEmptyDiagram(ThemeStyle style, UmlSource source, ISkinSimple skinParam) {
|
|
|
|
return new ActivityDiagram3(style, source, skinParam);
|
2013-12-10 19:36:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|