private void drawNoxItemDrawable ( Canvas canvas , int left , int top , Drawable drawable ) { if ( drawable != null ) { int itemSize = ( int ) noxConfig . getNoxItemSize ( ) ; drawable . setBounds ( left , top , left + itemSize , top + itemSize ) ; drawable . draw ( canvas ) ; } }
Draws a NoxItem drawable during the onDraw method given a canvas object and all the information needed to draw the Drawable passed as parameter .