Logo Search packages:      
Sourcecode: javamorph version File versions  Download package

Dimension javamorph::CMain::preferredLayoutSize ( Container  parent  )  [inline]

Ask nested components to calculate the JFrame window size on screen.

Definition at line 160 of file CMain.java.

References javamorph::CSeparator::getPreferredSize(), javamorph::CFrame::getPreferredSize(), left, right, and sep.

                                                           {
        int 
            width = 
                this.left.getPreferredSize().width +
                this.right.getPreferredSize().width +
                this.sep.getPreferredSize().width,
            height = Math.max(
                this.left.getPreferredSize().height,
                this.right.getPreferredSize().height
                );
                
        Dimension size = new Dimension(width, height);
        return size;
    }


Generated by  Doxygen 1.6.0   Back to index