Package bibliothek.gui.dock.util.font

Examples of bibliothek.gui.dock.util.font.FontManager


     * @param factory the factory for new bridges, can be <code>null</code>
     */
    public void putFontBridgeFactory( Path kind, FontBridgeFactory factory ){
        fontBridgeFactories.put( kind, factory );
        for( Controller setting : controllers ){
            FontManager fonts = setting.controller.getFonts();
           
            FontBridge oldBridge = setting.fonts.remove( kind );
            FontBridge newBridge = factory == null ? null : factory.create( fonts );
           
            if( newBridge == null ){
                setting.fonts.remove( kind );
               
                if( oldBridge != null ){
                    fonts.unpublish( Priority.DEFAULT, kind );
                }
            }
            else{
                setting.fonts.put( kind, newBridge );
                fonts.publish( Priority.DEFAULT, kind, newBridge );
            }
        }
    }
View Full Code Here


        }
        finally{
            colors.unlockUpdate();
        }
       
        FontManager fonts = controller.getFonts();
        try{
            fonts.lockUpdate();
            for( Map.Entry<Path, FontBridgeFactory> entry : fontBridgeFactories.entrySet() ){
                FontBridge bridge = entry.getValue().create( fonts );
                fonts.publish( Priority.DEFAULT, entry.getKey(), bridge );
                settings.fonts.put( entry.getKey(), bridge );
            }
        }
        finally{
            fonts.unlockUpdate();
        }
       
        controllers.add( settings );
    }
View Full Code Here

                ColorManager colors = controller.getColors();
                for( ColorBridge bridge : settings.colors.values() ){
                    colors.unpublish( Priority.DEFAULT, bridge );
                }
               
                FontManager fonts = controller.getFonts();
                for( FontBridge bridge : settings.fonts.values() ){
                    fonts.unpublish( Priority.DEFAULT, bridge );
                }
            }
        }
       
        for( DockThemeExtension extension : extensions ){
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.util.font.FontManager

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.