Package bibliothek.gui.dock

Examples of bibliothek.gui.dock.StackDockStation


           
            return result.clone();
        }
        if( dockable instanceof StackDockStation ){
            RequestDimension max = new RequestDimension();
            StackDockStation station = (StackDockStation)dockable;
           
            for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
                RequestDimension check = getAndClearResizeRequest( station.getDockable( i ) );
                if( check != null ){
                    Dimension sizeDockable = station.getDockable( i ).getComponent().getSize();
                    Dimension sizeStation = station.getComponent().getSize();
                   
                    if( check.isWidthSet() ){
                        max.setWidth( Math.max( max.getWidth(), check.getWidth() + sizeStation.width - sizeDockable.width  ) );
                    }
                    if( check.isHeightSet() ){
View Full Code Here


                return size.height;
            else
                return size.width;
        }
        if( dockable instanceof StackDockStation ){
            StackDockStation station = (StackDockStation)dockable;
            int size = -1;
            for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
                size = Math.max( size, getMaxSize( station.getDockable( i ), horizontal ));
            }
            return size;
        }
        return -1;
    }
View Full Code Here

        if( dockable instanceof CommonDockable ){
            CDockable cdock = ((CommonDockable)dockable).getDockable();
            return cdock.isResizeLockedVertically();
        }
        if( dockable != null && dockable.asDockStation() instanceof StackDockStation ){
            StackDockStation station = (StackDockStation)dockable.asDockStation();
            for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
                if( isLockedVertically( station.getDockable( i ) ))
                    return true;
            }
        }
        return false;
    }
View Full Code Here

        if( dockable instanceof CommonDockable ){
            CDockable cdock = ((CommonDockable)dockable).getDockable();
            return cdock.isResizeLockedHorizontally();
        }
        if( dockable != null && dockable.asDockStation() instanceof StackDockStation ){
            StackDockStation station = (StackDockStation)dockable.asDockStation();
            for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
                if( isLockedHorizontally( station.getDockable( i ) ))
                    return true;
            }
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.StackDockStation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.