Package org.flexdock.util

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


        // 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

Related Classes of org.flexdock.util.RootWindow

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.