public void update ( SwingBoxDocument doc , Viewport root , Dimension dim ) throws IOException { ContentReader rdr = new ContentReader ( ) ; List < ElementSpec > elements = rdr . update ( root , dim , getCSSBoxAnalyzer ( ) ) ; ElementSpec elementsArray [ ] = elements . toArray ( new ElementSpec [ 0 ] ) ; doc . create ( elementsArray ) ; }
Updates layout using new dimensions .