question: 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 ( ) ) ; } }
target:  Refreshes the layout of the legend. It's currently used to handle new gap values.