![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.activitydiagram3.ftile.FtileGeometryMerger 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.activitydiagram3.ftile;
public class FtileGeometryMerger {
private final FtileGeometry result;
public FtileGeometryMerger(FtileGeometry geo1, FtileGeometry geo2) {
final double left = Math.max(geo1.getLeft(), geo2.getLeft());
final double dx1 = left - geo1.getLeft();
final double dx2 = left - geo2.getLeft();
final double width = Math.max(geo1.getWidth() + dx1, geo2.getWidth() + dx2);
final double height = geo1.getHeight() + geo2.getHeight();
if (geo2.hasPointOut()) {
result = new FtileGeometry(width, height, left, geo1.getInY(), geo2.getOutY() + geo1.getHeight());
} else {
result = new FtileGeometry(width, height, left, geo1.getInY());
}
}
public final FtileGeometry getResult() {
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy