Package org.locationtech.udig.style.sld.editor

Examples of org.locationtech.udig.style.sld.editor.CustomDynamicPalette


            Color[] colors;
            try{
                colors = palette.getColors(maxColors);
            }catch (Exception e) {
                colors = palette.getColors();
                palette = new CustomDynamicPalette(palette.getName(), palette.getDescription(), colors);
                colors = palette.getColors(maxColors);
            }
            return Glyph.palette(colors).createImage();
    }
    return null;
View Full Code Here


      List<BrewerPalette> palettesList = CustomPalettesLoader.PALETTESLIST;
      for (BrewerPalette brewerPalette : palettesList) {
        brewer.registerPalette(brewerPalette);
      }
      // add a dynamic one that support everything
      CustomDynamicPalette customDynamicPalette = new CustomDynamicPalette(
          CustomDynamicPalette.TABLE.RAINBOW);
      brewer.registerPalette(customDynamicPalette);
      customDynamicPalette = new CustomDynamicPalette(
          CustomDynamicPalette.TABLE.GREY);
      brewer.registerPalette(customDynamicPalette);

    }
    return brewer;
View Full Code Here

TOP

Related Classes of org.locationtech.udig.style.sld.editor.CustomDynamicPalette

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.