src/main/java/org/fit/layout/impl/DefaultLogicalArea.java
@Override
    public LogicalArea findArea(Area area)
    {
        LogicalArea ret = null;
        //scan the subtree
        for (int i = 0; i < getChildCount() && ret == null; i++)
        {
            ret = getChildAt(i).findArea(area);
        }
        //not in the subtree -- is it this area?
        if (ret == null && getAreas().contains(area))
            ret = this; //in our area nodes
        return ret;
    }
@Override
    public LogicalArea findArea(Area area)
    {
        LogicalArea ret = null;
        //scan the subtree
        for (int i = 0; i < getChildCount() && ret == null; i++)
        {
            ret = getChildAt(i).findArea(area);
        }
        //not in the subtree -- is it this area?
        if (ret == null && getAreas().contains(area))
            ret = this; //in our area nodes
        return ret;
    }
@ Override public LogicalArea findArea ( Area area ) { LogicalArea ret = null ; //scan the subtree for ( int i = 0 ; i < getChildCount ( ) && ret == null ; i ++ ) { ret = getChildAt ( i ) . findArea ( area ) ; } //not in the subtree -- is it this area? if ( ret == null && getAreas ( ) . contains ( area ) ) ret = this ; //in our area nodes return ret ; }
==============================================================================
==============================================================================