Class ColorUtil

java.lang.Object
com.vividsolutions.jump.util.ColorUtil

public class ColorUtil extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Color
     
    static final Color
     
    static final Color
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createColorSchema(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]
    createRandomColorSchema(int intervals)
    Giving an interval, this method creates a random ColorScheme that fills the entire interval, eg. a feature collection, with a random color set (ColorBrewer).

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • GOLD

      public static final Color GOLD
    • PALE_BLUE

      public static final Color PALE_BLUE
    • PALE_RED

      public static final Color PALE_RED
  • Constructor Details

    • ColorUtil

      public ColorUtil()
  • Method Details

    • createRandomColorSchema

      public static ColorScheme createRandomColorSchema(int intervals) throws Exception
      Giving an interval, this method creates a random ColorScheme that 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 - intervals
      startColor - start Color
      endColor - end Color
      Returns:
      com.vividsolutions.jump.workbench.ui.renderer.style.ColorScheme class
      Throws:
      Exception - if an Exception occurs