public Dimension addDimension ( Group parent , Dimension d ) { if ( immutable ) throw new IllegalStateException ( "Cant modify" ) ; if ( parent == null ) parent = rootGroup ; parent . addDimension ( d ) ; return d ; }
Add a shared Dimension to a Group .