Examples of Colormap


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

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

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

Examples of bibliothek.gui.dock.common.ColorMap

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

Examples of colormap.Colormap

    private ArrayList<Segment> iso2;
    private ArrayList<Segment> iso3;
    private ArrayList<ArrayList<Segment>> isos2;
    private ArrayList<ArrayList<Segment>> isos3;
    public DonneesAgreg(){
        this.colormap = new Colormap();
        this.donneesGeo = new ArrayList<DonneesGeo>();
        this.donneesGeoInterp = new ArrayList<DonneesGeo>();
        iso1 = new ArrayList<>();
        iso2 = new ArrayList<>();
        iso3 = new ArrayList<>();
View Full Code Here

Examples of com.barrybecker4.ui.util.ColorMap

        final Color[] colors = {renderer.getPlayer2Color().darker(),
                                renderer.getPlayer2Color(),
                                new Color( 160, 160, 160),
                                renderer.getPlayer1Color(),
                                renderer.getPlayer1Color().darker()};
        return new ColorMap( values, colors);
    }
View Full Code Here

Examples of edu.harvard.hul.ois.ots.schemas.MIX.Colormap

            dcm = new DigitalCameraModel ();
            dcc.setDigitalCameraModel(dcm);
            ccs = new CameraCaptureSettings ();
            dcc.setCameraCaptureSettings(ccs);
           
            cm = new Colormap();
        }
        catch (XmlContentException e) {
            // Should never happen, unless the code is buggy
        }
    }
View Full Code Here

Examples of net.bytten.metazelda.constraints.ColorMap

        IDungeonConstraints constraints = null;
       
        if (getArg("color") != null) {
           
            try {
                ColorMap colorMap = new ColorMap();
                BufferedImage img = ImageIO.read(new File(getArg("color")));
                for (int x = 0; x < img.getWidth(); ++x)
                for (int y = 0; y < img.getHeight(); ++y) {
                    colorMap.set(x,y,img.getRGB(x,y));
                }
               
                constraints = new FreeformConstraints(colorMap);
                dungeonView = new FreeformDungeonView(colorMap);
           
View Full Code Here

Examples of org.geotools.styling.ColorMap

            style.setName(layer.getName());
            ArrayList<CoverageRule> listOfRules = new ArrayList<CoverageRule>();
            // Rule ruleToUpdate = SLDs.getRasterSymbolizerRule(style);
            RasterSymbolizer rasterSymbolizer = SLDs.rasterSymbolizer(style);

            ColorMap colorMap = rasterSymbolizer.getColorMap();
            ColorMapEntry[] colorMapEntries = colorMap.getColorMapEntries();
            for( int i = 0; i < colorMapEntries.length - 1; i = i + 2 ) {
                double fromQuantity = getQuantity(colorMapEntries[i]);
                java.awt.Color f = getColor(colorMapEntries[i]);
                double fromOpacity = getOpacity(colorMapEntries[i]);
View Full Code Here

Examples of org.geotools.styling.ColorMap

                // }

                StyleBuilder sB = new StyleBuilder(sf);
                RasterSymbolizer rasterSym = sf.createRasterSymbolizer();

                ColorMap colorMap = sf.createColorMap();
                ArrayList<CoverageRule> rulesList = colorRulesEditor.getRulesList();
                for( int i = 0; i < rulesList.size(); i++ ) {
                    CoverageRule coverageRule = rulesList.get(i);
                    if (!coverageRule.isActive()) {
                        continue;
                    }
                    Color fromColor = coverageRule.getFromColor();
                    Color toColor = coverageRule.getToColor();
                    double[] values = coverageRule.getFromToValues();
                    double opacity = coverageRule.getOpacity();

                    Expression fromColorExpr = sB.colorExpression(new java.awt.Color(fromColor.getRed(), fromColor.getGreen(),
                            fromColor.getBlue(), 255));
                    Expression toColorExpr = sB.colorExpression(new java.awt.Color(toColor.getRed(), toColor.getGreen(), toColor
                            .getBlue(), 255));
                    Expression fromExpr = sB.literalExpression(values[0]);
                    Expression toExpr = sB.literalExpression(values[1]);
                    Expression opacityExpr = sB.literalExpression(opacity);

                    ColorMapEntry entry = sf.createColorMapEntry();
                    entry.setQuantity(fromExpr);
                    entry.setColor(fromColorExpr);
                    entry.setOpacity(opacityExpr);
                    colorMap.addColorMapEntry(entry);

                    entry = sf.createColorMapEntry();
                    entry.setQuantity(toExpr);
                    entry.setOpacity(opacityExpr);
                    entry.setColor(toColorExpr);
                    colorMap.addColorMapEntry(entry);
                }

                rasterSym.setColorMap(colorMap);

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