org.pixel.commons.model.HorizontalAlignment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pixel-commons-linux Show documentation
Show all versions of pixel-commons-linux Show documentation
Java 2D Game Framework inspired on the popular XNA framework.
The newest version!
/*
* This software is available under Apache License
* Copyright (c) 2020
*/
package org.pixel.commons.model;
public enum HorizontalAlignment {
LEFT, CENTER, RIGHT;
/**
* @param value
* @return
*/
public static HorizontalAlignment fromString(String value) {
switch (value.toLowerCase()) {
case "left":
return LEFT;
case "center":
return CENTER;
case "right":
return RIGHT;
default:
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy