public Dimension getFreeLevelSpace ( ) { int remainder = height - getStackHeight ( ) ; if ( remainder < 0 ) { throw new IllegalArgumentException ( "Remaining free space is negative at " + remainder + " for " + this ) ; } return new Dimension ( width , depth , remainder ) ; }
Get the free level space i . e . container height with height of levels subtracted .