/** * Arranges the contents of the block, within the given constraints, and * returns the block size. * * @param g2 the graphics device. * @param constraint the constraint (<code>null</code> not permitted). * * @return The block size (in Java2D units, never <code>null</code>). */ public Size2D arrange(Graphics2D g2, RectangleConstraint constraint) { return this.arrangement.arrange(this, g2, constraint); }
/** * Clears all the blocks from the container. */ public void clear() { this.blocks.clear(); this.arrangement.clear(); }
/** * Adds a block to the container. * * @param block the block ({@code null} permitted). * @param key the key ({@code null} permitted). */ public void add(Block block, Object key) { this.blocks.add(block); this.arrangement.add(block, key); }
/** * Clears all the blocks from the container. */ public void clear() { this.blocks.clear(); this.arrangement.clear(); }
/** * Adds a block to the container. * * @param block the block (<code>null</code> permitted). * @param key the key (<code>null</code> permitted). */ public void add(Block block, Object key) { this.blocks.add(block); this.arrangement.add(block, key); }
/** * Arranges the contents of the block, within the given constraints, and * returns the block size. * * @param g2 the graphics device. * @param constraint the constraint ({@code null} not permitted). * * @return The block size (in Java2D units, never {@code null}). */ @Override public Size2D arrange(Graphics2D g2, RectangleConstraint constraint) { return this.arrangement.arrange(this, g2, constraint); }