protected final void refreshLayout(){
  Dimension2D gap=getGap();
  Layout layout=getLayout();
  layout.setGapX(gap.getWidth());
  layout.setGapY(gap.getHeight());
  if (layout instanceof OrientedLayout) {
    OrientedLayout orientedLayout=(OrientedLayout)layout;
    orientedLayout.setOrientation(getOrientation());
  }
}

protected final void refreshLayout ( ) { Dimension2D gap = getGap ( ) ; Layout layout = getLayout ( ) ; layout . setGapX ( gap . getWidth ( ) ) ; layout . setGapY ( gap . getHeight ( ) ) ; if ( layout instanceof OrientedLayout ) { OrientedLayout orientedLayout = ( OrientedLayout ) layout ; orientedLayout . setOrientation ( getOrientation ( ) ) ; } }
refreshes the layout of the legend . it ' s currently used to handle new gap values .
