edu.mssm.crover.domain2d
Class MonotonousColorScheme

java.lang.Object
  |
  +--edu.mssm.crover.domain2d.MonotonousColorScheme
All Implemented Interfaces:
ResidueColorScheme, java.io.Serializable

public class MonotonousColorScheme
extends java.lang.Object
implements ResidueColorScheme, java.io.Serializable

Colors all the residues the same.

See Also:
Serialized Form

Field Summary
static java.awt.Color background
           
static java.awt.Color ellipsis
           
static java.awt.Color foreground
           
 
Constructor Summary
MonotonousColorScheme()
           
 
Method Summary
 java.awt.Color getBackgroundColor(char label, int position)
          Returns the background color.
 java.awt.Color getForegroundColor(char label, int position)
          Returns the foreground color.
 java.lang.String getInformation()
          Returns a descriptive text about this ColorScheme.
 java.lang.String getShortName()
          Returns a shortname for this ColorScheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

background

public static java.awt.Color background

foreground

public static java.awt.Color foreground

ellipsis

public static java.awt.Color ellipsis
Constructor Detail

MonotonousColorScheme

public MonotonousColorScheme()
Method Detail

getForegroundColor

public java.awt.Color getForegroundColor(char label,
                                         int position)
Returns the foreground color. The residue position is ignored for that purpose.

Specified by:
getForegroundColor in interface ResidueColorScheme

getBackgroundColor

public java.awt.Color getBackgroundColor(char label,
                                         int position)
Returns the background color. The residue position is ignored for that purpose.

Specified by:
getBackgroundColor in interface ResidueColorScheme

getShortName

public java.lang.String getShortName()
Description copied from interface: ResidueColorScheme
Returns a shortname for this ColorScheme. This string is typically less than 10 characters and can be presented to the user to let him choose between several colorscheme.

Specified by:
getShortName in interface ResidueColorScheme

getInformation

public java.lang.String getInformation()
Description copied from interface: ResidueColorScheme
Returns a descriptive text about this ColorScheme. This text should explain the choice and attribution of the colors to the residues of the sequences.

Specified by:
getInformation in interface ResidueColorScheme


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.