private short getAlignment ( String value ) { short ret = ALIGN_LEFT ; if ( value . equals ( "centre" ) ) ret = ALIGN_CENTRE ; else if ( value . equals ( "left" ) ) ret = ALIGN_LEFT ; else if ( value . equals ( "right" ) ) ret = ALIGN_RIGHT ; else if ( value . equals ( "justify" ) ) ret = ALIGN_JUSTIFY ; else if ( value . equals ( "fill" ) ) ret = ALIGN_FILL ; return ret ; }
Returns the alignment for the given value .