All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.plantuml.klimt.shape.UEmpty Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
// 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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy