Class ColorUtil
java.lang.Object
com.vividsolutions.jump.util.ColorUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorSchemecreateColorSchema(int intervals, Color startColor, Color endColor) Giving an interval, and two colors, this method creates a random colorschema that fills the entire interval, eg. a feature collection, with a set of color between the two ones This method extends color range to more that maximum defined in the ColorScheme.txt (12 intervals) [Giuseppe Aruta 2019-1-12]static ColorSchemecreateRandomColorSchema(int intervals) Giving an interval, this method creates a randomColorSchemethat fills the entire interval, eg. a feature collection, with a random color set (ColorBrewer).
-
Field Details
-
GOLD
-
PALE_BLUE
-
PALE_RED
-
-
Constructor Details
-
ColorUtil
public ColorUtil()
-
-
Method Details
-
createRandomColorSchema
Giving an interval, this method creates a randomColorSchemethat fills the entire interval, eg. a feature collection, with a random color set (ColorBrewer). This method extends color range to more that maximum defined in the ColorScheme.txt (12 intervals) [Giuseppe Aruta 2019-1-12]- Parameters:
intervals- number of intervals to create- Returns:
- com.vividsolutions.jump.workbench.ui.renderer.style.ColorScheme class
- Throws:
Exception- if an Exception occurs
-
createColorSchema
public static ColorScheme createColorSchema(int intervals, Color startColor, Color endColor) throws Exception Giving an interval, and two colors, this method creates a random colorschema that fills the entire interval, eg. a feature collection, with a set of color between the two ones This method extends color range to more that maximum defined in the ColorScheme.txt (12 intervals) [Giuseppe Aruta 2019-1-12]- Parameters:
intervals- intervalsstartColor- start ColorendColor- end Color- Returns:
- com.vividsolutions.jump.workbench.ui.renderer.style.ColorScheme class
- Throws:
Exception- if an Exception occurs
-