Package bibliothek.gui.dock.station.screen

Examples of bibliothek.gui.dock.station.screen.ScreenDockProperty


    return ExtendedMode.EXTERNALIZED;
  }
 
  @Override
  public DockableProperty findProperty( DockableProperty successor ){
    ScreenDockProperty screen = new ScreenDockProperty( x, y, width, height );
    screen.setSuccessor( successor );
    if( parent != null ){
      return parent.findProperty( screen );
    }
    return screen;
  }
View Full Code Here


    return ExtendedMode.MAXIMIZED;
  }
 
  @Override
  public DockableProperty findProperty( DockableProperty successor ){
    ScreenDockProperty screen = new ScreenDockProperty( getX(), getY(), getWidth(), getHeight(), null, true );
    screen.setSuccessor( successor );
   
    CLocation parent = getParent();
    if( parent != null ){
      return parent.findProperty( screen );
    }
View Full Code Here

    return expand( property );
  }
 
  private CLocation expand( DockableProperty property ){
    if( property instanceof ScreenDockProperty ){
      ScreenDockProperty screen = (ScreenDockProperty)property;
     
      CLocation result;
      if( screen.isFullscreen() ){
        result = new CMaximalExternalizedLocation( screen.getX(), screen.getY(), screen.getWidth(), screen.getHeight() );
      }
      else{
        result = new CExternalizedLocation( screen.getX(), screen.getY(), screen.getWidth(), screen.getHeight() );
      }
     
      if( property.getSuccessor() != null ){
        return result.expandProperty( station.getStation().getController(), property.getSuccessor() );
      }
View Full Code Here

        if( parent == station ){
          station.setFullscreen( dockable, false );
        }
        else{
          Dockable child = DockUtilities.getDirectChild( station, dockable );
          ScreenDockProperty location = station.getLocation( child, dockable );
         
          if( !parent.canDrag( dockable )){
            throw new IllegalArgumentException( "cannot drag dockable from its current parent" );
          }
          location.setFullscreen( false );
          if( !station.drop( dockable, location, true )){
            throw new IllegalStateException( "could not drop dockable on this station" );
          }
        }
      }
View Full Code Here

            corner = new Point( 0, 0 );
          }
        }
       

        return new ScreenDockProperty( corner.x, corner.y, size.width, size.height, null, false );
  }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.station.screen.ScreenDockProperty

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.