Package bibliothek.gui.dock.FlapDockStation

Examples of bibliothek.gui.dock.FlapDockStation.Direction


        for( int i = 0, n = station.getDockableCount(); i<n; i++ )
            stationListener.dockableRemoved( station, station.getDockable( i ) );
    }

    public int getSize( FlapDockStation station, Dockable dockable ) {
        Direction direction = station.getDirection();
        int size = getMaxSize( dockable, direction == Direction.NORTH || direction == Direction.SOUTH );
        if( size < 0 ){
            Integer value = sizes.get( dockable );
            if( value != null )
                return value.intValue();
View Full Code Here


        return -1;
    }
   
    public void setSize( FlapDockStation station, Dockable dockable, int size ) {
        if( dockable instanceof CommonDockable ){
            Direction direction = station.getDirection();
            boolean horizontal = direction == Direction.NORTH || direction == Direction.SOUTH;
            CDockable cdock = ((CommonDockable)dockable).getDockable();
            Dimension dimension = cdock.getMinimizedSize();
            if( horizontal ){
              cdock.setMinimizedSize( new Dimension( dimension.width, size ) );
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.FlapDockStation.Direction

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.