Package bibliothek.gui.dock.common

Examples of bibliothek.gui.dock.common.CLocation


            }
            else{
              valid = cnext.getWorkingArea() == null;
            }
            if( valid ){
              CLocation location = cnext.getBaseLocation();
              if( location != null ){
                return location.aside();
              }
              }
          }
          if( cnext.getWorkingArea() == station ){
            CLocation location = cnext.getBaseLocation();
            if( location != null ){
              return location.aside();
            }
          }
        }
      }
      return station.getStationLocation();
View Full Code Here


            CStation<?> currentArea = findFirstParentWorkingArea( dockable.intern() );
           
            if( preferredArea != currentArea ){
                if( preferredArea == null ){
                  // the dockable is on a working-area, but should not be there
                  CLocation defaultLocation = getNormalMode().getDefaultLocation();
                    dockable.setLocation( defaultLocation );
                }
                else{
                  // reset the location
                    dockable.setLocation( preferredArea.getStationLocation() );
View Full Code Here

                    return uniqueId;
                }
               
                public CLocation internalLocation( boolean reset ){
                  if( reset ){
                      CLocation loc = location;
                      location = null;
                      return loc;
                  }
                  else{
                    return location;
View Full Code Here

    }
  }

  private void checkNow(){
    boolean newShowing = dockable.isShowing();
    CLocation newLocation = dockable.getBaseLocation();
   
    boolean oldShowing = showing;
    CLocation oldLocation = location;
   
    this.showing = newShowing;
    this.location = newLocation;
   
    boolean locationEvent = false;
View Full Code Here

    extensions = controller.getExtensions().load( new ExtensionName<CLocationExpandStrategy>( STRATEGY_EXTENSION, CLocationExpandStrategy.class, EXTENSION_PARAM, this ) );
  }
 
  public CLocation expand( CLocation location, DockableProperty property ){
    for( CLocationExpandStrategy extension : extensions ){
      CLocation result = extension.expand( location, property );
      if( result != null ){
        return result;
      }
    }
   
View Full Code Here

  @Override
  public DockableProperty findProperty( DockableProperty successor ){
    SplitDockFullScreenProperty property = new SplitDockFullScreenProperty();
    property.setSuccessor( successor );
   
    CLocation parent = getParent();
    if( parent != null ){
      return parent.findProperty( property );
    }
   
    return property;
  }
View Full Code Here

    super( parent, x, y, width, height );
  }

  @Override
  public ExtendedMode findMode(){
    CLocation parent = getParent();
    if( parent != null ){
      return parent.findMode();
    }
   
    return ExtendedMode.MAXIMIZED;
  }
View Full Code Here

  @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 );
    }
   
    return screen;
  }
View Full Code Here

      DockableProperty property = location.getLocation();
      return getCLocation( property );
    }
   
    private CLocation getCLocation( DockableProperty property ){
      CLocation stationLocation = station.getStationLocation();
      CMaximizedLocation result = new CMaximizedLocation( stationLocation.findRoot() );
     
      if( property != null ){
        property = property.getSuccessor();
      }
      if( property != null ){
View Full Code Here

 
  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() );
      }
      else{
        return result;
      }
    }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.common.CLocation

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.