public void add ( IRenderingElement element ) { if ( element != null ) { if ( element . getClass ( ) . equals ( ElementGroup . class ) ) elements . addAll ( ( ( ElementGroup ) element ) . elements ) ; else elements . add ( element ) ; } }
Add a new element to the group .