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

net.sourceforge.plantuml.klimt.Arrows 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;

import net.sourceforge.plantuml.klimt.shape.UPolygon;
import net.sourceforge.plantuml.utils.Direction;

public abstract class Arrows {
	// ::remove file when __HAXE__

	public abstract UPolygon asToUp();

	public abstract UPolygon asToDown();

	public abstract UPolygon asToRight();

	public abstract UPolygon asToLeft();

	public final UPolygon asTo(Direction direction) {
		if (direction == Direction.UP)
			return asToUp();

		if (direction == Direction.DOWN)
			return asToDown();

		if (direction == Direction.LEFT)
			return asToLeft();

		if (direction == Direction.RIGHT)
			return asToRight();

		throw new IllegalArgumentException();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy