@Override public void paintValue(Graphics gfx,Rectangle box){
  gfx.drawString(m_matrix.size() + " x " + m_matrix.size()+ " cost matrix",box.x,box.y + box.height);
}

@ Override public void paintValue ( Graphics gfx , Rectangle box ) { gfx . drawString ( m_matrix . size ( ) + " x " + m_matrix . size ( ) + " cost matrix" , box . x , box . y + box . height ) ; }
paints a graphical representation of the object . for the cost matrix it prints out the text " x x x matrix " , where x is the size of the matrix .
