edu.washington.biostr.sig.volume.colors
Class BasicColorScheme

java.lang.Object
  extended by edu.washington.biostr.sig.volume.colors.ColorScheme
      extended by edu.washington.biostr.sig.volume.colors.BasicColorScheme

public class BasicColorScheme
extends ColorScheme

Generate a color scheme from black to the given color.

Version:
1.0
Author:
Eider Moore

Field Summary
 
Fields inherited from class edu.washington.biostr.sig.volume.colors.ColorScheme
alpha
 
Constructor Summary
BasicColorScheme()
          Make a grayscale scheme.
BasicColorScheme(Color baseColor)
          Make a scheme with the final color of baseColor
BasicColorScheme(Color baseColor, double alpha)
          Make a scheme with the final color of baseColor
BasicColorScheme(Color baseColor, String name)
          Make a scheme with the final color of baseColor
BasicColorScheme(Color baseColor, String name, double alpha)
          Make a scheme with the final color of baseColor
BasicColorScheme(double alpha)
          Make a grayscale scheme with the given level of opacity.
 
Method Summary
 boolean equals(Object parm1)
           
 int[] getRGB(double value)
          Get an RGBA value as 4 ints {R, G, B, A}
 int hashCode()
           
 String toString()
           
 
Methods inherited from class edu.washington.biostr.sig.volume.colors.ColorScheme
getAlpha, getAlphaComposite, getARGB, setAlpha, supportsAlpha
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicColorScheme

public BasicColorScheme()
Make a grayscale scheme.


BasicColorScheme

public BasicColorScheme(Color baseColor)
Make a scheme with the final color of baseColor

Parameters:
baseColor - the final color.

BasicColorScheme

public BasicColorScheme(Color baseColor,
                        String name)
Make a scheme with the final color of baseColor

Parameters:
baseColor - the final color.
name - The name for this color scheme (returned by toString)

BasicColorScheme

public BasicColorScheme(double alpha)
Make a grayscale scheme with the given level of opacity.

Parameters:
alpha - the level of opacity (between 0 and 1)

BasicColorScheme

public BasicColorScheme(Color baseColor,
                        String name,
                        double alpha)
Make a scheme with the final color of baseColor

Parameters:
baseColor - the final color.
name - The name for toString
alpha - The level of opacity.

BasicColorScheme

public BasicColorScheme(Color baseColor,
                        double alpha)
Make a scheme with the final color of baseColor

Parameters:
baseColor - the final color.
alpha - The level of opacity.
Method Detail

getRGB

public int[] getRGB(double value)
Description copied from class: ColorScheme
Get an RGBA value as 4 ints {R, G, B, A}

Overrides:
getRGB in class ColorScheme
Returns:
A 4 int RGBA value.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object parm1)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2006 University of Washington. All Rights Reserved.