public ScreenDockPerspective layoutPerspective( ScreenDockStationLayout layout, Map<Integer, PerspectiveDockable> children ){ ScreenDockPerspective result = new ScreenDockPerspective(); layoutPerspective( result, layout, children ); return result; }
@Override protected Rectangle checkSize( ScreenDockWindow window ){ return checkSize( window, window.getWindowBounds() ); }
public Rectangle check( ScreenDockWindow window, Rectangle target ){ return validate( target, window.getTitleCenter() ); }
public Rectangle check( ScreenDockWindow window ){ return validate( window.getWindowBounds(), window.getTitleCenter() ); }
@Override public DockableProperty findProperty( DockableProperty successor ) { if( successor == null ){ return new ScreenDockProperty( 20, 20, 400, 400 ); } return successor; }
public Dockable getFrontDockable() { if( frontWindow == null ) return null; else return frontWindow.getDockable(); }
public boolean isChildLocation( DockableProperty location ){ if( location instanceof ScreenDockProperty ){ return !((ScreenDockProperty)location).isFullscreen(); } return false; }
/** * Adds <code>dockable</code> with boundaries <code>bounds</code> to this perspective. * @param dockable the element to add * @param bounds the boundaries of <code>dockable</code> */ public void add( PerspectiveDockable dockable, Rectangle bounds ){ add( dockable, bounds, false ); }
public WindowConfiguration getConfiguration( ScreenDockStation station, Dockable dockable ){ for( ScreenDockWindowConfiguration extension : extensions ){ WindowConfiguration result = extension.getConfiguration( station, dockable ); if( result != null ){ return result; } } return null; } }
/** * Adds a placeholder for <code>dockable</code> and all its children to this * station. * @param dockable the element whose placeholder should be inserted * @param bounds the location and size of <code>dockable</code> */ public void addPlaceholder( PerspectiveDockable dockable, Rectangle bounds ){ addPlaceholder( dockable, bounds.x, bounds.y, bounds.width, bounds.height ); }
public ScreenDockStationLayout getPerspectiveLayout( ScreenDockPerspective element, Map<PerspectiveDockable, Integer> children ){ return new ScreenDockStationLayout( element.toMap( children ) ); }
public void layoutPerspective( ScreenDockPerspective perspective, ScreenDockStationLayout layout, Map<Integer, PerspectiveDockable> children ){ perspective.read( layout.getPlaceholders(), children ); }
public void canceled(){ window.setPaintRemoval( false ); dragInfo = null; } };
/** * Sets the window which is represented by this handle. * @param window the new window, not <code>null</code> * @param configuration the configuration that was used to set up <code>window</code> */ public void setWindow( ScreenDockWindow window, WindowConfiguration configuration ){ this.window.setDockable( null ); this.window = window; this.configuration = configuration; window.setDockable( dockable ); }
@Override protected void valueChanged( KeyStroke oldValue, KeyStroke newValue ){ setAccelerator( Boolean.TRUE, newValue ); setAccelerator( Boolean.FALSE, newValue ); } };
public void destroy( StationDropOperation next ){ if( combine != null ){ combine.setPaintCombining( null ); } if( dropInfo == this ){ dropInfo = null; } }
public Rectangle check( ScreenDockWindow window ){ return validate( window.getWindowBounds(), window.getTitleCenter() ); }
@Override protected Rectangle checkSize( ScreenDockWindow window ){ return checkSize( window, window.getWindowBounds() ); }
public Rectangle check( ScreenDockWindow window, Rectangle target ){ return validate( target, window.getTitleCenter() ); }
/** * Adds <code>dockable</code> with boundaries <code>bounds</code> to this perspective. * @param dockable the element to add * @param bounds the boundaries of <code>dockable</code> */ public void add( PerspectiveDockable dockable, Rectangle bounds ){ add( dockable, bounds, false ); }