net.sourceforge.plantuml.project.LabelStrategy 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.project;
import net.sourceforge.plantuml.klimt.geom.HorizontalAlignment;
public class LabelStrategy {
private final LabelPosition position;
private final HorizontalAlignment alignment;
public LabelStrategy(LabelPosition position, HorizontalAlignment alignment) {
this.position = position;
this.alignment = alignment;
}
public boolean titleInFirstColumn() {
return position == LabelPosition.FIRST_COLUMN;
}
public boolean titleInLastColumn() {
return position == LabelPosition.LAST_COLUMN;
}
public boolean titleInside() {
return position == LabelPosition.LEGACY;
}
public boolean rightAligned() {
return alignment == HorizontalAlignment.RIGHT;
}
}