net.sourceforge.plantuml.klimt.creole.Sheet 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.klimt.creole;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.sourceforge.plantuml.klimt.geom.HorizontalAlignment;
public class Sheet implements Iterable {
private final List stripes = new ArrayList<>();
private final HorizontalAlignment horizontalAlignment;
public Sheet(HorizontalAlignment horizontalAlignment) {
this.horizontalAlignment = horizontalAlignment;
}
@Override
public String toString() {
return stripes.toString();
}
public void add(Stripe stripe) {
stripes.add(stripe);
}
public Iterator iterator() {
return stripes.iterator();
}
public Stripe getLastStripe() {
final int size = stripes.size();
if (size == 0) {
return null;
}
return stripes.get(size - 1);
}
public final HorizontalAlignment getHorizontalAlignment() {
return horizontalAlignment;
}
}