001 package com.osbcp.css.constants; 002 003 import java.io.Serializable; 004 005 /** 006 * Values for the <i>background-position</i> property. 007 * 008 * @see <a href="http://www.w3schools.com/cssref/pr_background-attachment.asp">CSS background-attachment Property</a> 009 * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a> 010 */ 011 012 public enum BackgroundPosition implements Serializable { 013 014 /** 015 * Left top position. 016 */ 017 018 LEFT_TOP, 019 020 /** 021 * Left center position. 022 */ 023 024 LEFT_CENTER, 025 026 /** 027 * Left bottom position. 028 */ 029 030 LEFT_BOTTOM, 031 032 /** 033 * Right top position. 034 */ 035 036 RIGHT_TOP, 037 038 /** 039 * Right center position. 040 */ 041 042 RIGHT_CENTER, 043 044 /** 045 * Right bottom position. 046 */ 047 048 RIGHT_BOTTOM, 049 050 /** 051 * Center top position. 052 */ 053 054 CENTER_TOP, 055 056 /** 057 * Center center position. 058 */ 059 060 CENTER_CENTER, 061 062 /** 063 * Center bottom position. 064 */ 065 066 CENTER_BOTTOM; 067 068 @Override 069 public String toString() { 070 return name().toLowerCase().replace("_", " "); 071 } 072 073 }