/** * Tries to create a location that resembles <code>property</code>. * @param controller the controller in whose realm this method is called, may be used to load * extensions * @param property some location * @return a location whose {@link #findProperty()} would create * <code>property</code> again, or <code>null</code> in case that <code>property</code> * can't be used */ public final CLocation expandProperty( DockController controller, DockableProperty property ){ return expandProperty( property, new DefaultExpandStrategy( controller ) ); }
/** * Tries to create a location that resembles <code>property</code>. * @param controller the controller in whose realm this method is called, may be used to load * extensions * @param property some location * @return a location whose {@link #findProperty()} would create * <code>property</code> again, or <code>null</code> in case that <code>property</code> * can't be used */ public final CLocation expandProperty( DockController controller, DockableProperty property ){ return expandProperty( property, new DefaultExpandStrategy( controller ) ); }
/** * Tries to create a location that resembles <code>property</code>. * @param property some location * @param strategy a strategy helping to convert the properties * @return a location whose {@link #findProperty()} would create * <code>property</code> again, or <code>null</code> in case that <code>property</code> * can't be used */ public CLocation expandProperty( DockableProperty property, CLocationExpandStrategy strategy ){ CLocation location = strategy.expand( this, property ); if( location == null ){ return null; } property = property.getSuccessor(); if( property == null ){ return location; } return location.expandProperty( property, strategy ); }
/** * Tries to create a location that resembles <code>property</code>. * @param property some location * @param strategy a strategy helping to convert the properties * @return a location whose {@link #findProperty()} would create * <code>property</code> again, or <code>null</code> in case that <code>property</code> * can't be used */ public CLocation expandProperty( DockableProperty property, CLocationExpandStrategy strategy ){ CLocation location = strategy.expand( this, property ); if( location == null ){ return null; } property = property.getSuccessor(); if( property == null ){ return location; } return location.expandProperty( property, strategy ); }
public CLocation getCLocation( Dockable dockable, Location location ){ DockableProperty property = location.getLocation(); if( property == null ) return this.location; return this.location.expandProperty( getStation().getController(), property ); } }
public CLocation getCLocation( Dockable dockable, Location location ){ DockableProperty property = location.getLocation(); if( property == null ) return this.location; return this.location.expandProperty( getStation().getController(), property ); } }
public CLocation getCLocation( Dockable dockable ){ CStation<?> base = getBaseStation(); DockStation baseStation = base.getStation(); DockableProperty property = DockUtilities.getPropertyChain( baseStation, dockable ); return base.getStationLocation().expandProperty( baseStation.getController(), property ); }
public CLocation getCLocation( Dockable dockable ){ CStation<?> base = getBaseStation(); DockStation baseStation = base.getStation(); DockableProperty property = DockUtilities.getPropertyChain( baseStation, dockable ); return base.getStationLocation().expandProperty( baseStation.getController(), property ); }
public CLocation getCLocation( Dockable dockable ){ DockableProperty property = DockUtilities.getPropertyChain( getStation(), dockable ); return location.expandProperty( getStation().getController(), property ); }
public CLocation getCLocation( Dockable dockable ){ DockableProperty property = DockUtilities.getPropertyChain( getStation(), dockable ); return location.expandProperty( getStation().getController(), property ); }
public CLocation getCLocation( Dockable dockable, Location location ){ CStation<?> base = getBaseStation(); DockableProperty property = location.getLocation(); if( property == null ){ return base.getStationLocation(); } return base.getStationLocation().expandProperty( base.getStation().getController(), property ); }
public CLocation getCLocation( Dockable dockable ){ DockableProperty property = DockUtilities.getPropertyChain( getStation(), dockable ); return station.getStationLocation().expandProperty( station.getStation().getController(), property ); }
public CLocation getCLocation( Dockable dockable, Location location ){ DockableProperty property = location.getLocation(); if( property == null ) return station.getStationLocation(); return station.getStationLocation().expandProperty( station.getStation().getController(), property ); }
public CLocation getCLocation( Dockable dockable, Location location ){ DockableProperty property = location.getLocation(); if( property == null ) return station.getStationLocation(); return station.getStationLocation().expandProperty( station.getStation().getController(), property ); }
public CLocation getCLocation( Dockable dockable, Location location ){ CStation<?> base = getBaseStation(); DockableProperty property = location.getLocation(); if( property == null ){ return base.getStationLocation(); } return base.getStationLocation().expandProperty( base.getStation().getController(), property ); }
public CLocation getCLocation( Dockable dockable ){ DockableProperty property = DockUtilities.getPropertyChain( getStation(), dockable ); return station.getStationLocation().expandProperty( station.getStation().getController(), 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() ); } else{ return result; } } return null; }
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; } } return null; }
location = station.getStationLocation().expandProperty( getController(), property );
location = station.getStationLocation().expandProperty( getController(), property );