public Color getElementColor ( byte scoreElement ) { Object ret = m_attributes . get ( "COLOR_" + Byte . toString ( scoreElement ) ) ; if ( ret == null ) { ret = m_attributes . get ( "COLOR_" + Byte . toString ( ScoreElements . _DEFAULT ) ) ; if ( ret == null ) return null ; //No default color set } return ( Color ) ret ; }
Returns the color of the given element