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