org.gcube.spatial.data.gis.symbology
Class StyleUtils

java.lang.Object
  extended by org.gcube.spatial.data.gis.symbology.StyleUtils

public class StyleUtils
extends Object


Nested Class Summary
 class StyleUtils.ClassStyleDef
          Create a rendering style to display features from the given feature source by matching unique values of the specified feature attribute to colours
 
Field Summary
protected static org.opengis.filter.FilterFactory FF
           
protected static org.geotoolkit.style.MutableStyleFactory SF
           
protected static org.geotoolkit.sld.MutableSLDFactory SLDF
           
protected static org.geotoolkit.sld.xml.XMLUtilities utils
           
 
Constructor Summary
StyleUtils()
           
 
Method Summary
static String createStyle(String nameStyle, String attributeName, ArrayList<StyleUtils.ClassStyleDef> classes, Color c1, Color c2)
           
static String createStyle(String nameStyle, String attributeName, int maxClasses, Color c1, Color c2, Class typeValue, Object maxValue, Object minValue)
           
static String createStyleLog(String nameStyle, String attributeName, int maxClasses, Color c1, Color c2, Class typeValue, Object maxValue, Object minValue)
           
static String createStyleLogScatterColors(String nameStyle, String attributeName, int nClasses, Class typeValue, Object maxValue, Object minValue)
           
static String createStyleScatterColors(String nameStyle, String attributeName, int nClasses, Class typeValue, Object maxValue, Object minValue)
           
static ArrayList<Color> scatterColor(int nColors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FF

protected static final org.opengis.filter.FilterFactory FF

SLDF

protected static final org.geotoolkit.sld.MutableSLDFactory SLDF

SF

protected static final org.geotoolkit.style.MutableStyleFactory SF

utils

protected static org.geotoolkit.sld.xml.XMLUtilities utils
Constructor Detail

StyleUtils

public StyleUtils()
Method Detail

createStyle

public static String createStyle(String nameStyle,
                                 String attributeName,
                                 int maxClasses,
                                 Color c1,
                                 Color c2,
                                 Class typeValue,
                                 Object maxValue,
                                 Object minValue)
                          throws Exception
Throws:
Exception

createStyleLog

public static String createStyleLog(String nameStyle,
                                    String attributeName,
                                    int maxClasses,
                                    Color c1,
                                    Color c2,
                                    Class typeValue,
                                    Object maxValue,
                                    Object minValue)
                             throws Exception
Throws:
Exception

createStyleScatterColors

public static String createStyleScatterColors(String nameStyle,
                                              String attributeName,
                                              int nClasses,
                                              Class typeValue,
                                              Object maxValue,
                                              Object minValue)
                                       throws Exception
Throws:
Exception

createStyleLogScatterColors

public static String createStyleLogScatterColors(String nameStyle,
                                                 String attributeName,
                                                 int nClasses,
                                                 Class typeValue,
                                                 Object maxValue,
                                                 Object minValue)
                                          throws Exception
Throws:
Exception

createStyle

public static String createStyle(String nameStyle,
                                 String attributeName,
                                 ArrayList<StyleUtils.ClassStyleDef> classes,
                                 Color c1,
                                 Color c2)
                          throws Exception
Throws:
Exception

scatterColor

public static ArrayList<Color> scatterColor(int nColors)


Copyright © 2013. All Rights Reserved.