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

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

public class MaskScheme
extends ColorScheme

Return 0,0,0,1 for anything below the threshold (non transparent black, this will black out anything it is applied over) and 0,0,0,0 for anything at or above the threshold (basically a completely transparent nothing, this should not change anything that it is applied over). Use ColorLookupTable for thresholding.

Version:
1
Author:
Eider Moore

Field Summary
 
Fields inherited from class edu.washington.biostr.sig.volume.colors.ColorScheme
alpha
 
Method Summary
 boolean equals(Object parm1)
           
 AlphaComposite getAlphaComposite()
          Get the alpha composite for this scheme.
 int getARGB(double value)
          Get the RGBA value as 1 int.
By default this calls getRGB and converts the 4 ints into 1.
static MaskScheme getMaskScheme()
          Get the MaskScheme (all of them are the same).
 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, setAlpha, supportsAlpha
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getMaskScheme

public static MaskScheme getMaskScheme()
Get the MaskScheme (all of them are the same).

Returns:
the MaskScheme

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.

getARGB

public int getARGB(double value)
Description copied from class: ColorScheme
Get the RGBA value as 1 int.
By default this calls getRGB and converts the 4 ints into 1.

Overrides:
getARGB in class ColorScheme
Returns:
An integer that holds an ARGB value.

equals

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

getAlphaComposite

public AlphaComposite getAlphaComposite()
Description copied from class: ColorScheme
Get the alpha composite for this scheme.

Overrides:
getAlphaComposite in class ColorScheme
Returns:
SrcIn

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006 University of Washington. All Rights Reserved.