src/java/org/apache/fop/area/inline/InlineBlockParent.java
@Override
    public void addChildArea(Area childArea) {
        if (child != null) {
            throw new IllegalStateException("InlineBlockParent may have only one child area.");
        }
        if (childArea instanceof Block) {
            child = (Block) childArea;
            //Update extents from the child
            setIPD(childArea.getAllocIPD());
            setBPD(childArea.getAllocBPD());
        } else {
            throw new IllegalArgumentException("The child of an InlineBlockParent must be a"
                    + " Block area");
        }
    }
/**
     * Override generic Area method.
     *
     * @param childArea the child area to add
     */
Override generic Area method.
@param childArea the child area to add
Override generic Area method . @param childArea the child area to add
@Override
    public void addChildArea(Area childArea) {
        if (child != null) {
            throw new IllegalStateException("InlineBlockParent may have only one child area.");
        }
        if (childArea instanceof Block) {
            child = (Block) childArea;
            setIPD(childArea.getAllocIPD());
            setBPD(childArea.getAllocBPD());
        } else {
            throw new IllegalArgumentException("The child of an InlineBlockParent must be a"
                    + " Block area");
        }
    }
@ Override public void addChildArea ( Area childArea ) { if ( child != null ) { throw new IllegalStateException ( "InlineBlockParent may have only one child area." ) ; } if ( childArea instanceof Block ) { child = ( Block ) childArea ; setIPD ( childArea . getAllocIPD ( ) ) ; setBPD ( childArea . getAllocBPD ( ) ) ; } else { throw new IllegalArgumentException ( "The child of an InlineBlockParent must be a" + " Block area" ) ; } }
Override generic Area method.
Override generic Area method .
//Update extents from the child