code: public void setKaplanMeierFigure(KaplanMeierFigure kmf) {
  		this.kmf = kmf;
  
  		int numRows = kmf.getSurvivalFitInfo().getStrataInfoHashMap().size();
  		int height = (numRows + 1) * getFontMetrics(getFont()).getHeight();
  		int width = kmf.getWidth();
  		setPreferredSize(new Dimension(width,height));
  		this.setSize(width, height);
  
  	}
docs: Pick up needed info and details from the KM Figure
  @param kmf