edu.mssm.crover.domain2d
Class GPCRDB_ColorScheme

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

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

The ColorScheme used by GPCRDB. The color definitions where obtained from the colorscheme used by Viseur when rendering the GPCRDB snakes. see http://www.gpcr.org/7tm

See Also:
Serialized Form

Field Summary
static java.awt.Color aliphatics
           
static java.awt.Color aromatics
           
static java.awt.Color cysteines
           
static java.awt.Color ellipsis
           
 
Constructor Summary
GPCRDB_ColorScheme()
           
 
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

aliphatics

public static java.awt.Color aliphatics

cysteines

public static java.awt.Color cysteines

aromatics

public static java.awt.Color aromatics

ellipsis

public static java.awt.Color ellipsis
Constructor Detail

GPCRDB_ColorScheme

public GPCRDB_ColorScheme()
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.