Package org.geotools.styling

Examples of org.geotools.styling.ContrastEnhancement.accept()


        ContrastEnhancement ce = sf.createContrastEnhancement();
        ce.setGammaValue(sb.literalExpression(0.5));
        ce.setMethod(ContrastMethod.HISTOGRAM);
        ce.setHistogram();
        ce.accept(visitor);
        ContrastEnhancement ce2 = (ContrastEnhancement) visitor.getCopy();

        assertEquals("Gamma value incorrest after duplication", ((Literal)ce.getGammaValue()).getValue(), ((Literal)ce2.getGammaValue()).getValue());
        assertEquals("ContrastMethod must be equal after duplication ", ce.getMethod(), ce2.getMethod());
        assertEquals("Contrast Type must be equal after duplication ", ((Literal)ce.getType()).getValue()((Literal)ce2.getType()).getValue());
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.