Package samer.tools

Class ColorRamp

  • java.lang.Object
    • samer.tools.ColorRamp
  • All Implemented Interfaces:
    java.io.Serializable


    public class ColorRamp
    extends java.lang.Object
    implements java.io.Serializable
    Objects of these class could be used directly, but main purpose is to help construct an IndexColorModel for an image
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ColorRamp(int sz) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Color getColor(int i) 
      java.awt.Color[] getColorArray() 
      java.awt.image.IndexColorModel getColorModel() 
      int getSize() 
      void gradient(int i1, java.awt.Color c1, double a1, int i2, java.awt.Color c2, double a2) 
      void gradient(int i1, java.awt.Color c1, int i2, java.awt.Color c2) 
      void gradient(java.awt.Color c1, double a1, java.awt.Color c2, double a2) 
      void gradient(java.awt.Color c1, java.awt.Color c2) 
      void gradientTo(int i, java.awt.Color c) 
      void set(int i, java.awt.Color c) 
      void set(int i, java.awt.Color c, double alpha) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColorRamp

        public ColorRamp(int sz)
    • Method Detail

      • getColor

        public java.awt.Color getColor(int i)
      • getColorArray

        public java.awt.Color[] getColorArray()
      • getSize

        public int getSize()
      • getColorModel

        public java.awt.image.IndexColorModel getColorModel()
      • set

        public void set(int i,
                        java.awt.Color c)
      • set

        public void set(int i,
                        java.awt.Color c,
                        double alpha)
      • gradientTo

        public void gradientTo(int i,
                               java.awt.Color c)
      • gradient

        public void gradient(java.awt.Color c1,
                             java.awt.Color c2)
      • gradient

        public void gradient(java.awt.Color c1,
                             double a1,
                             java.awt.Color c2,
                             double a2)
      • gradient

        public void gradient(int i1,
                             java.awt.Color c1,
                             int i2,
                             java.awt.Color c2)
      • gradient

        public void gradient(int i1,
                             java.awt.Color c1,
                             double a1,
                             int i2,
                             java.awt.Color c2,
                             double a2)