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

org.unlaxer.sample.calc.model.CharacterAttribute Maven / Gradle / Ivy

There is a newer version: 1.1.26
Show newest version
package org.unlaxer.sample.calc.model;

public enum CharacterAttribute{
	//color
	blue,red,green,highlight,
	//like μPD3301
	blink,underline,upperline,reverse,secret,//,semiGraphic
	//font
	italic,bold,
	//backColor
	blueBack,redBack,greenBack,highlightBack
	;
	public int code;

	private CharacterAttribute() {
		this.code = (int)Math.pow(2,ordinal());
		if(ordinal()>31){
			throw new IllegalStateException("attributes too many");
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy