Package org.opengis.style

Examples of org.opengis.style.ContrastMethod


      if (ce == null || ce.getMethod() == null)
        return;
     
      start("ContrastEnhancement");
      // histogram
      ContrastMethod method = ce.getMethod();
      if (method != null && !ContrastMethod.NONE.equals(method)) {
        String val = method.name();
        val = val.substring(0, 1).toUpperCase() + val.substring(1).toLowerCase();
        start(val);
        end(val);
      }
     
View Full Code Here


    /**
     * Test of setMethod method, of class ContrastEnhancementImpl.
     */
    public void testGetSetMethod() {
        System.out.println("setMethod");
        ContrastMethod expected = ContrastMethod.HISTOGRAM;
        ContrastEnhancementImpl contrastEnhancementImpl = new ContrastEnhancementImpl();
        contrastEnhancementImpl.setMethod(expected);
        ContrastMethod actual = contrastEnhancementImpl.getMethod();
        assertEquals(expected, actual);
    }
View Full Code Here

TOP

Related Classes of org.opengis.style.ContrastMethod

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.