Beispiel #1
0
 /**
  * Method is responsible for generating a color scale from hard coded values. It should be called
  * when there is no input default color scale.
  */
 public void setDefaultGrayScaleValues() {
   clear();
   setScaling(ColorScale.Scaling.MinMax);
   put(0.0, new Color(0, 0, 0));
   put(0.1, new Color(26, 26, 26));
   put(0.2, new Color(52, 52, 52));
   put(0.3, new Color(77, 77, 77));
   put(0.4, new Color(102, 102, 102));
   put(0.5, new Color(128, 128, 128));
   put(0.6, new Color(154, 154, 154));
   put(0.7, new Color(179, 179, 179));
   put(0.8, new Color(205, 205, 205));
   put(0.9, new Color(230, 230, 230));
   put(1.0, new Color(255, 255, 255));
   setInterpolate(true);
   setForceValuesIntoRange(false);
 }
Beispiel #2
0
 /**
  * Method is responsible for generating a color scale from hard coded values. It should be called
  * when there is no input default color scale.
  */
 public void setDefaultValues() {
   clear();
   setScaling(ColorScale.Scaling.MinMax);
   put(0.0, new Color(0, 0, 0, 0));
   put(1e-12, new Color(255, 255, 255, 128));
   put(0.1, new Color(247, 252, 253));
   put(0.2, new Color(229, 245, 249));
   put(0.3, new Color(204, 236, 230));
   put(0.4, new Color(153, 216, 201));
   put(0.5, new Color(102, 194, 164));
   put(0.6, new Color(65, 174, 118));
   put(0.7, new Color(35, 139, 69));
   put(0.8, new Color(0, 109, 44));
   put(0.9, new Color(0, 68, 27));
   put(1.0, new Color(0, 0, 0));
   setInterpolate(true);
   setForceValuesIntoRange(false);
 }