Examples of RootWindow


Examples of org.flexdock.util.RootWindow

    public void minimize(Dockable dockable) {
        if(dockable==null)
            return;

        int edge = DEFAULT_EDGE;
        RootWindow window = getWindow();
        if(window!=null && DockingManager.isDocked(dockable)) {
            edge = findDockbarEdge(dockable);
        }

        minimize(dockable, edge);
View Full Code Here

Examples of org.flexdock.util.RootWindow

        Component owner = RestorationManager.getRestoreContainer(dockable);
        return restoreDockable(dockable, owner, dockingState);
    }

    private boolean restoreDockable(Dockable dockable, Component win, DockingState dockingState) {
        RootWindow window = RootWindow.getRootContainer(win);
        Container contentPane = window.getContentPane();

        Point dropPoint = getDropPoint(dockable, contentPane, dockingState);
        if(dropPoint==null)
            return false;
View Full Code Here

Examples of org.flexdock.util.RootWindow

        DockingState info = getDockingState(dockable);
        // if docking has just completed, then we cannot be in a minimized state
        info.setMinimizedConstraint(MinimizationManager.UNSPECIFIED_LAYOUT_CONSTRAINT);

        // update the floating state
        RootWindow window = RootWindow.getRootContainer(dockable.getComponent());
        FloatManager floatManager = DockingManager.getLayoutManager().getFloatManager();
        Component frame = window==null? null: window.getRootContainer();
        if(frame instanceof DockingFrame) {
            String groupId = ((DockingFrame)window.getRootContainer()).getGroupName();
            floatManager.addToGroup(dockable, groupId);
        } else {
            floatManager.removeFromGroup(dockable);
        }
View Full Code Here

Examples of org.flexdock.util.RootWindow

        // get the center point of the dockable
        Component comp = dockable.getComponent();
        Point p = new Point(comp.getWidth()/2, comp.getHeight()/2);

        // convert it to a location on the rootPane
        RootWindow window = RootWindow.getRootContainer(comp);
        Container contentPane = window.getContentPane();
        p = SwingUtilities.convertPoint(comp, p, contentPane);

        // now, convert to a proportional location on the rootPane
        float x = (float)p.x/(float)contentPane.getWidth() * 100f;
        float y = (float)p.y/(float)contentPane.getHeight() * 100f;
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.