2013-12-10 19:36:50 +00:00
|
|
|
/* ========================================================================
|
|
|
|
* PlantUML : a free UML diagram generator
|
|
|
|
* ========================================================================
|
|
|
|
*
|
2015-04-07 18:18:37 +00:00
|
|
|
* (C) Copyright 2009-2014, Arnaud Roques
|
2013-12-10 19:36:50 +00:00
|
|
|
*
|
|
|
|
* Project Info: http://plantuml.sourceforge.net
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
|
|
|
|
* in the United States and other countries.]
|
|
|
|
*
|
|
|
|
* Original Author: Arnaud Roques
|
|
|
|
*
|
|
|
|
* Revision $Revision: 9786 $
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package net.sourceforge.plantuml.activitydiagram3;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
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;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandElse3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandElseIf2;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandElseLegacy1;
|
2015-04-07 18:18:37 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandEndPartition3;
|
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;
|
2015-06-07 10:23:10 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandEnd3;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandSwimlane;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandSwimlane2;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandWhile3;
|
|
|
|
import net.sourceforge.plantuml.activitydiagram3.command.CommandWhileEnd3;
|
|
|
|
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;
|
2013-12-10 19:36:50 +00:00
|
|
|
import net.sourceforge.plantuml.command.UmlDiagramFactory;
|
|
|
|
|
|
|
|
public class ActivityDiagramFactory3 extends UmlDiagramFactory {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected List<Command> createCommands() {
|
|
|
|
|
|
|
|
final List<Command> cmds = new ArrayList<Command>();
|
2015-04-07 18:18:37 +00:00
|
|
|
cmds.add(new CommandFootboxIgnored());
|
2013-12-10 19:36:50 +00:00
|
|
|
|
|
|
|
addCommonCommands(cmds);
|
|
|
|
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());
|
|
|
|
cmds.add(new CommandActivity3());
|
|
|
|
cmds.add(new CommandIf4());
|
|
|
|
cmds.add(new CommandIf2());
|
2015-06-20 10:54:49 +00:00
|
|
|
cmds.add(new CommandDecoratorMultine(new CommandIf2()));
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandIfLegacy1());
|
|
|
|
cmds.add(new CommandElseIf2());
|
2015-06-20 10:54:49 +00:00
|
|
|
// cmds.add(new CommandDecoratorMultine(new CommandElseIf2()));
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandElse3());
|
2015-05-31 18:56:03 +00:00
|
|
|
cmds.add(new CommandDecoratorMultine(new CommandElse3()));
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandElseLegacy1());
|
|
|
|
cmds.add(new CommandEndif3());
|
|
|
|
cmds.add(new CommandRepeat3());
|
|
|
|
cmds.add(new CommandRepeatWhile3());
|
2015-05-31 18:56:03 +00:00
|
|
|
cmds.add(new CommandRepeatWhile3Multilines());
|
2013-12-10 19:36:50 +00:00
|
|
|
cmds.add(new CommandWhile3());
|
|
|
|
cmds.add(new CommandWhileEnd3());
|
|
|
|
cmds.add(new CommandFork3());
|
|
|
|
cmds.add(new CommandForkAgain3());
|
|
|
|
cmds.add(new CommandForkEnd3());
|
|
|
|
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());
|
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());
|
|
|
|
|
2013-12-10 19:36:50 +00:00
|
|
|
return cmds;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ActivityDiagram3 createEmptyDiagram() {
|
|
|
|
return new ActivityDiagram3();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|