afreechart/src/main/java/org/afree/chart/block/BorderArrangement.java
/**
     * Adds a block to the arrangement manager at the specified edge.
     * 
     * @param block
     *            the block (<code>null</code> permitted).
     * @param key
     *            the edge (an instance of {@link RectangleEdge}) or
     *            <code>null</code> for the center block.
     */
Adds a block to the arrangement manager at the specified edge.

@param block
the block (null permitted).
@param key
the edge (an instance of  RectangleEdge) or
null for the center block.
Adds a block to the arrangement manager at the specified edge . @param block the block ( null permitted ) . @param key the edge ( an instance of RectangleEdge ) or null for the center block .
public void add(Block block, Object key) {
        if (key == null) {
            this.centerBlock = block;
        } else {
            RectangleEdge edge = (RectangleEdge) key;
            if (edge == RectangleEdge.TOP) {
                this.topBlock = block;
            } else if (edge == RectangleEdge.BOTTOM) {
                this.bottomBlock = block;
            } else if (edge == RectangleEdge.LEFT) {
                this.leftBlock = block;
            } else if (edge == RectangleEdge.RIGHT) {
                this.rightBlock = block;
            }
        }
    }
public void add ( Block block , Object key ) { if ( key == null ) { this . centerBlock = block ; } else { RectangleEdge edge = ( RectangleEdge ) key ; if ( edge == RectangleEdge . TOP ) { this . topBlock = block ; } else if ( edge == RectangleEdge . BOTTOM ) { this . bottomBlock = block ; } else if ( edge == RectangleEdge . LEFT ) { this . leftBlock = block ; } else if ( edge == RectangleEdge . RIGHT ) { this . rightBlock = block ; } } }
Adds a block to the arrangement manager at the specified edge.
Adds a block to the arrangement manager at the specified edge .