Package org.flexdock.docking.props

Examples of org.flexdock.docking.props.DockablePropertySet


        // cache the dockable by ID
        DOCKABLES_BY_ID.put(dockable.getPersistentId(), dockable);

        // make sure we have docking-properties initialized (must come after
        // ID-caching)
        DockablePropertySet props = PropertyManager
                                    .getDockablePropertySet(dockable);

        // dispatch a registration event
        EventManager.dispatch(new RegistrationEvent(dockable,
                              DockingManager.SINGLETON, true));
View Full Code Here


        float percent = (float)loc/(float)dim;
        float minPercent = (float)DockbarLayout.MINIMUM_VIEW_SIZE/(float)dim;
        percent = Math.max(percent, minPercent);

        DockablePropertySet props = dockable.getDockingProperties();
        props.setPreviewSize(percent);
        manager.revalidate();
    }
View Full Code Here

        Object obj = getIcon();
        if(!(obj instanceof TextIcon))
            return;

        Dockable d = getDockable();
        DockablePropertySet p = d==null? null: d.getDockingProperties();
        if(p==null)
            return;

        int orientation = getOrientation();
        int rotation = ROTATIONS[orientation];
        Icon dockIcon = p.getDockbarIcon();
        if(dockIcon==null)
            dockIcon = p.getTabIcon();
        String text = p.getDockableDesc();

        TextIcon icon = (TextIcon)obj;
        icon.setIcon(dockIcon);
        icon.setText(text);
        icon.setRotation(rotation);
View Full Code Here

     *         tabbed layout.
     * @see Dockable#getDockingProperties()
     * @see DockablePropertySet#getDockableDesc()
     */
    public static String getTabText(Dockable dockable) {
        DockablePropertySet props = dockable == null ? null : dockable
                                    .getDockingProperties();
        return props == null ? null : props.getDockableDesc();
    }
View Full Code Here

        Dockable dockable = manager.getActiveDockable();
        if(dockable==null)
            return 0;

        Rectangle rect = DockbarLayoutManager.getManager().getViewArea(manager, dockable);
        DockablePropertySet props = dockable.getDockingProperties();

        // determine what percentage of the viewable area we want the viewpane to take up
        float viewSize = props.getPreviewSize().floatValue();
        int edge = manager.getActiveEdge();
        if(edge==MinimizationManager.LEFT || edge==MinimizationManager.RIGHT) {
            return (int)(((float)rect.width)*viewSize);
        }
        return (int)(((float)rect.height)*viewSize);
 
View Full Code Here

TOP

Related Classes of org.flexdock.docking.props.DockablePropertySet

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.