net.sourceforge.plantuml.klimt.shape.UEmpty 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.shape;
import net.sourceforge.plantuml.klimt.UShape;
import net.sourceforge.plantuml.klimt.geom.XDimension2D;
public class UEmpty implements UShape {
private final double width;
private final double height;
public UEmpty(double width, double height) {
if (width == 0)
throw new IllegalArgumentException();
this.width = width;
this.height = height;
}
public static UEmpty create(XDimension2D dim) {
return new UEmpty(dim.getWidth(), dim.getHeight());
}
public double getWidth() {
return width;
}
public double getHeight() {
return height;
}
}