![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.activitydiagram3.ftile.FtileMargedWest 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;
import net.sourceforge.plantuml.activitydiagram3.ftile.vertical.FtileDecorate;
import net.sourceforge.plantuml.klimt.UTranslate;
import net.sourceforge.plantuml.klimt.drawing.UGraphic;
import net.sourceforge.plantuml.klimt.font.StringBounder;
public class FtileMargedWest extends FtileDecorate {
private final double margin;
public FtileMargedWest(Ftile tile, double margin) {
super(tile);
this.margin = margin;
}
public void drawU(UGraphic ug) {
super.drawU(ug.apply(UTranslate.dx(margin)));
}
@Override
public FtileGeometry calculateDimension(StringBounder stringBounder) {
FtileGeometry result = super.calculateDimension(stringBounder);
result = result.incLeft(margin);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy