Package org.locationtech.udig.style.advanced.raster

Examples of org.locationtech.udig.style.advanced.raster.CoverageRule


                java.awt.Color t = getColor(colorMapEntries[i + 1]);
                // double toOpacity = getOpacity(colorMapEntries[i + 1]);

                Color fromColor = new Color(Display.getDefault(), f.getRed(), f.getGreen(), f.getBlue());
                Color toColor = new Color(Display.getDefault(), t.getRed(), t.getGreen(), t.getBlue());
                CoverageRule rule = new CoverageRule(new double[]{fromQuantity, toQuantity}, fromColor, toColor, fromOpacity,
                        true);
                listOfRules.add(rule);
            }

            colorRulesEditor.setLayer(layer);
View Full Code Here


                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));
View Full Code Here

TOP

Related Classes of org.locationtech.udig.style.advanced.raster.CoverageRule

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.