@ Override public int getTopBorder ( ) { Box box = getBox ( ) ; if ( box instanceof ElementBox ) return ( ( ElementBox ) box ) . getBorder ( ) . top ; else return 0 ; }
Obtains the top border of the box