net.sourceforge.plantuml.style.ValueNull 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.style;
import java.awt.Font;
import net.sourceforge.plantuml.klimt.color.HColor;
import net.sourceforge.plantuml.klimt.color.HColorSet;
import net.sourceforge.plantuml.klimt.color.HColors;
import net.sourceforge.plantuml.klimt.geom.HorizontalAlignment;
public class ValueNull extends ValueAbstract implements Value {
// ::remove file when __HAXE__
public static final Value NULL = new ValueNull();
private ValueNull() {
}
@Override
public int asInt(boolean minusOneIfError) {
return 0;
}
@Override
public double asDouble() {
return 0;
}
@Override
public boolean asBoolean() {
return false;
}
@Override
public String asString() {
return "";
}
@Override
public int asFontStyle() {
return Font.PLAIN;
}
@Override
public HColor asColor(HColorSet set) {
return HColors.BLACK;
}
@Override
public HorizontalAlignment asHorizontalAlignment() {
return HorizontalAlignment.LEFT;
}
}