@ Nonnegative public float getEffectiveValue ( final float fAvailableWidth ) { switch ( m_eType ) { case ABSOLUTE : return Math . min ( m_fValue , fAvailableWidth ) ; case PERCENTAGE : return fAvailableWidth * m_fValue / 100 ; default : throw new IllegalStateException ( "Unsupported: " + m_eType + " - must be calculated outside!" ) ; } }
Get the effective width based on the passed available width . This may not be called for star or auto width elements .