summaryrefslogtreecommitdiff
path: root/src/net/sourceforge/plantuml/sequencediagram/puma
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sourceforge/plantuml/sequencediagram/puma')
-rw-r--r--src/net/sourceforge/plantuml/sequencediagram/puma/FixedLink.java60
-rw-r--r--src/net/sourceforge/plantuml/sequencediagram/puma/PSegment.java73
-rw-r--r--src/net/sourceforge/plantuml/sequencediagram/puma/PUnivers.java71
-rw-r--r--src/net/sourceforge/plantuml/sequencediagram/puma/PushDirection.java41
-rw-r--r--src/net/sourceforge/plantuml/sequencediagram/puma/PushSide.java41
-rw-r--r--src/net/sourceforge/plantuml/sequencediagram/puma/PushStrategy.java41
-rw-r--r--src/net/sourceforge/plantuml/sequencediagram/puma/SegmentPosition.java57
7 files changed, 0 insertions, 384 deletions
diff --git a/src/net/sourceforge/plantuml/sequencediagram/puma/FixedLink.java b/src/net/sourceforge/plantuml/sequencediagram/puma/FixedLink.java
deleted file mode 100644
index 6b58713..0000000
--- a/src/net/sourceforge/plantuml/sequencediagram/puma/FixedLink.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/* ========================================================================
- * PlantUML : a free UML diagram generator
- * ========================================================================
- *
- * (C) Copyright 2009-2017, Arnaud Roques
- *
- * Project Info: http://plantuml.com
- *
- * 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
- *
- * 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.sequencediagram.puma;
-
-public class FixedLink {
-
- final private SegmentPosition segmentPosition1;
- final private SegmentPosition segmentPosition2;
-
- public FixedLink(SegmentPosition segmentPosition1, SegmentPosition segmentPosition2) {
- this.segmentPosition1 = segmentPosition1;
- this.segmentPosition2 = segmentPosition2;
- }
-
- public boolean pushIfNeed() {
- final double p1 = segmentPosition1.getPosition();
- final double p2 = segmentPosition2.getPosition();
- if (p1 == p2) {
- return false;
- }
- final double diff = p1 - p2;
- segmentPosition2.getSegment().push(diff);
- assert segmentPosition1.getPosition() == segmentPosition2.getPosition();
- return true;
- }
-
-}
diff --git a/src/net/sourceforge/plantuml/sequencediagram/puma/PSegment.java b/src/net/sourceforge/plantuml/sequencediagram/puma/PSegment.java
deleted file mode 100644
index 287102d..0000000
--- a/src/net/sourceforge/plantuml/sequencediagram/puma/PSegment.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/* ========================================================================
- * PlantUML : a free UML diagram generator
- * ========================================================================
- *
- * (C) Copyright 2009-2017, Arnaud Roques
- *
- * Project Info: http://plantuml.com
- *
- * 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
- *
- * 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.sequencediagram.puma;
-
-public class PSegment {
-
- private final double minsize;
- private double startx;
- private double endx;
-
- public PSegment(double minsize) {
- this.minsize = minsize;
- this.startx = 0;
- this.endx = minsize;
- }
-
- public double getMinsize() {
- return minsize;
- }
-
- public void push(double delta) {
- this.startx += delta;
- this.endx += delta;
- }
-
- public String getDebugPosition() {
- return "" + ((int) startx) + "-" + ((int) endx);
- }
-
- public double getPosition(double position) {
- if (position == 0) {
- return startx;
- }
- if (position == 1) {
- return endx;
- }
- throw new UnsupportedOperationException();
- }
-
-}
diff --git a/src/net/sourceforge/plantuml/sequencediagram/puma/PUnivers.java b/src/net/sourceforge/plantuml/sequencediagram/puma/PUnivers.java
deleted file mode 100644
index 6fd4bed..0000000
--- a/src/net/sourceforge/plantuml/sequencediagram/puma/PUnivers.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/* ========================================================================
- * PlantUML : a free UML diagram generator
- * ========================================================================
- *
- * (C) Copyright 2009-2017, Arnaud Roques
- *
- * Project Info: http://plantuml.com
- *
- * 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
- *
- * 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.sequencediagram.puma;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-public class PUnivers {
-
- private final Collection<PSegment> all = new ArrayList<PSegment>();
- private final Collection<FixedLink> links = new ArrayList<FixedLink>();
-
- public PSegment createPSegment(double minsize) {
- final PSegment result = new PSegment(minsize);
- all.add(result);
- return result;
- }
-
- public void addFixedLink(PSegment segment1, double position1, PSegment segment2, double position2) {
- final FixedLink link = new FixedLink(new SegmentPosition(segment1, position1), new SegmentPosition(segment2,
- position2));
- links.add(link);
-
- }
-
- public void solve() {
- boolean changed = false;
- do {
- changed = false;
- for (FixedLink link : links) {
- if (link.pushIfNeed()) {
- changed = true;
- }
- }
- } while (changed);
-
- }
-}
diff --git a/src/net/sourceforge/plantuml/sequencediagram/puma/PushDirection.java b/src/net/sourceforge/plantuml/sequencediagram/puma/PushDirection.java
deleted file mode 100644
index 0fc06d4..0000000
--- a/src/net/sourceforge/plantuml/sequencediagram/puma/PushDirection.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/* ========================================================================
- * PlantUML : a free UML diagram generator
- * ========================================================================
- *
- * (C) Copyright 2009-2017, Arnaud Roques
- *
- * Project Info: http://plantuml.com
- *
- * 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
- *
- * 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.sequencediagram.puma;
-
-public enum PushDirection {
-
- TOLEFT, TORIGHT
-}
diff --git a/src/net/sourceforge/plantuml/sequencediagram/puma/PushSide.java b/src/net/sourceforge/plantuml/sequencediagram/puma/PushSide.java
deleted file mode 100644
index 32b3b00..0000000
--- a/src/net/sourceforge/plantuml/sequencediagram/puma/PushSide.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/* ========================================================================
- * PlantUML : a free UML diagram generator
- * ========================================================================
- *
- * (C) Copyright 2009-2017, Arnaud Roques
- *
- * Project Info: http://plantuml.com
- *
- * 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
- *
- * 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.sequencediagram.puma;
-
-public enum PushSide {
-
- START, END
-}
diff --git a/src/net/sourceforge/plantuml/sequencediagram/puma/PushStrategy.java b/src/net/sourceforge/plantuml/sequencediagram/puma/PushStrategy.java
deleted file mode 100644
index 9139380..0000000
--- a/src/net/sourceforge/plantuml/sequencediagram/puma/PushStrategy.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/* ========================================================================
- * PlantUML : a free UML diagram generator
- * ========================================================================
- *
- * (C) Copyright 2009-2017, Arnaud Roques
- *
- * Project Info: http://plantuml.com
- *
- * 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
- *
- * 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.sequencediagram.puma;
-
-public enum PushStrategy {
-
- MOVE, ENLARGE
-}
diff --git a/src/net/sourceforge/plantuml/sequencediagram/puma/SegmentPosition.java b/src/net/sourceforge/plantuml/sequencediagram/puma/SegmentPosition.java
deleted file mode 100644
index 272cb8a..0000000
--- a/src/net/sourceforge/plantuml/sequencediagram/puma/SegmentPosition.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/* ========================================================================
- * PlantUML : a free UML diagram generator
- * ========================================================================
- *
- * (C) Copyright 2009-2017, Arnaud Roques
- *
- * Project Info: http://plantuml.com
- *
- * 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
- *
- * 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.sequencediagram.puma;
-
-public class SegmentPosition {
-
- final private PSegment segment;
- final private double position;
-
- public SegmentPosition(PSegment segment, double position) {
- this.segment = segment;
- this.position = position;
- }
-
- public double getPosition() {
- return segment.getPosition(position);
- }
-
- public PSegment getSegment() {
- return segment;
-
- }
-
-}