![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.skin.ActorStyle 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.skin;
import net.sourceforge.plantuml.decoration.symbol.USymbol;
import net.sourceforge.plantuml.decoration.symbol.USymbols;
import net.sourceforge.plantuml.klimt.Fashion;
import net.sourceforge.plantuml.klimt.shape.TextBlock;
public enum ActorStyle {
STICKMAN, STICKMAN_BUSINESS, AWESOME, HOLLOW;
public USymbol toUSymbol() {
if (this == STICKMAN)
return USymbols.ACTOR_STICKMAN;
else if (this == AWESOME)
return USymbols.ACTOR_AWESOME;
else if (this == HOLLOW)
return USymbols.ACTOR_HOLLOW;
else if (this == STICKMAN_BUSINESS)
return USymbols.ACTOR_STICKMAN_BUSINESS;
throw new IllegalStateException();
}
public TextBlock getTextBlock(Fashion symbolContext) {
if (this == STICKMAN)
return new ActorStickMan(symbolContext, false);
else if (this == STICKMAN_BUSINESS)
return new ActorStickMan(symbolContext, true);
else if (this == AWESOME)
return new ActorAwesome(symbolContext);
else if (this == HOLLOW)
return new ActorHollow(symbolContext);
throw new IllegalStateException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy