Package bibliothek.gui.dock.common

Examples of bibliothek.gui.dock.common.ColorMap


     * @param dockable the element for which the color will be used
     * @return some color
     */
    protected Color get( Color color, String id, CDockable dockable ){
        Color check = null;
        ColorMap colors = dockable.getColors();
       
        boolean foreground = isForeground( id );
        boolean selected = isSelected( id );
        boolean focused = isFocused( id );
       
        if( foreground ){
            if( focused ){
                check = colors.getColor( ColorMap.COLOR_KEY_TAB_FOREGROUND_FOCUSED );
            }
            if( check == null && (focused || selected) ){
                check = colors.getColor( ColorMap.COLOR_KEY_TAB_FOREGROUND_SELECTED );
            }
           
            if( check == null ){
                check = colors.getColor( ColorMap.COLOR_KEY_TAB_FOREGROUND );
            }
        }
       
        if( check == null ){
            if( focused ){
                check = colors.getColor( ColorMap.COLOR_KEY_TAB_BACKGROUND_FOCUSED );
                if( check != null )
                    check = convertFocused( check, id );
            }
           
            if( check == null && (focused || selected) ){
                check = colors.getColor( ColorMap.COLOR_KEY_TAB_BACKGROUND_SELECTED );
                if( check != null )
                    check = convertSelected( check, id );
            }
           
            if( check == null ){
                check = colors.getColor( ColorMap.COLOR_KEY_TAB_BACKGROUND );
                if( check != null )
                    check = convert( check, id );
            }
        }
       
View Full Code Here


     * @param dockable the element for which the color will be used
     * @return some color
     */
    protected Color get( Color color, String id, CDockable dockable ){
        Color check = null;
        ColorMap colors = dockable.getColors();
       
        boolean foreground = isForeground( id );
        boolean focused = isFocused( id );
        boolean selected = focused || isSelected( id );
       
        if( foreground ){
            if( focused ){
                check = colors.getColor( ColorMap.COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND_FOCUSED );
            }
            if( check == null && selected ){
              check = colors.getColor( ColorMap.COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND_SELECTED );
            }
            if( check == null ){
                check = colors.getColor( ColorMap.COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND );
            }
        }
       
        if( check == null ){
            if( focused ){
                check = colors.getColor( ColorMap.COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND_FOCUSED );
                if( check != null )
                    check = convertFocused( check, id );
            }
            if( check == null && selected ){
              check = colors.getColor( ColorMap.COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND_SELECTED );
              if( check != null )
                check = convertSelected( check, id );
            }
           
            if( check == null ){
                check = colors.getColor( ColorMap.COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND );
                if( check != null )
                    check = convert( check, id );
            }
        }
       
View Full Code Here

     * @param dockable the element for which the color will be used
     * @return some color
     */
    protected Color get( Color color, String id, CDockable dockable ){
        Color check = null;
        ColorMap colors = dockable.getColors();
       
        boolean foreground = isForeground( id );
        boolean focused = isFocused( id );
       
        if( foreground ){
            if( focused ){
                check = colors.getColor( ColorMap.COLOR_KEY_TITLE_FOREGROUND_FOCUSED );
            }
           
            if( check == null ){
                check = colors.getColor( ColorMap.COLOR_KEY_TITLE_FOREGROUND );
            }
        }
       
        if( check == null ){
            if( focused ){
                check = colors.getColor( ColorMap.COLOR_KEY_TITLE_BACKGROUND_FOCUSED );
                if( check != null )
                    check = convertFocused( check, id );
            }
           
            if( check == null ){
                check = colors.getColor( ColorMap.COLOR_KEY_TITLE_BACKGROUND );
                if( check != null )
                    check = convert( check, id );
            }
        }
       
View Full Code Here

     */
    protected Color get( Color color, String id, CDockable dockable ){
        if( dockable == null )
            return color;
       
        ColorMap map = dockable.getColors();
        Color check = null;
       
        if( id.contains( "active" ) && !id.contains( "inactive" )){
            check = map.getColor( ColorMap.COLOR_KEY_TITLE_BACKGROUND_FOCUSED );
            if( check != null )
                check = convertFocused( check, id );
        }
       
        if( check == null ){
            check = map.getColor( ColorMap.COLOR_KEY_TITLE_BACKGROUND );
            if( check != null )
                check = convert( check, id );
        }
       
        if( check != null )
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.common.ColorMap

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.