public byte [ ] getFieldsAtPosition ( byte vert , byte horiz ) { Position p = new Position ( vert , horiz ) ; if ( m_fieldsPosition . get ( p ) != null ) { Vector v = ( Vector ) m_fieldsPosition . get ( p ) ; Vector ret = new Vector ( v . size ( ) ) ; for ( Object aV : v ) { byte field = ( Byte ) aV ; if ( isVisible ( field ) ) ret . add ( field ) ; } byte [ ] ret2 = new byte [ ret . size ( ) ] ; for ( int i = 0 ; i < ret2 . length ; i ++ ) { ret2 [ i ] = ( Byte ) ret . get ( i ) ; } return ret2 ; } return new byte [ 0 ] ; }
Returns the list of visible fields at the given position