private void drawImage(Graphics g){
  g.setColor(Color.GRAY);
  g.fillRect(1,1,width,height);
  g.setColor(determineColor());
  g.fillRect(1,1,model.getRepresentation(),height - 2);
  g.setColor(Color.BLACK);
  g.drawRect(0,0,width - 1,height - 1);
}

private void drawImage ( Graphics g ) { g . setColor ( Color . GRAY ) ; g . fillRect ( 1 , 1 , width , height ) ; g . setColor ( determineColor ( ) ) ; g . fillRect ( 1 , 1 , model . getRepresentation ( ) , height - 2 ) ; g . setColor ( Color . BLACK ) ; g . drawRect ( 0 , 0 , width - 1 , height - 1 ) ; }
draw the health bar image .
