edu.sdsc.sirius.viewers.SequenceViewerImpl
Class StyleManager

java.lang.Object
  extended byedu.sdsc.sirius.viewers.SequenceViewerImpl.StyleManager

public class StyleManager
extends java.lang.Object


Field Summary
static int CHAIN_COLOR
           
static int CONSERVATION_COLOR
           
static int HYDROPHOBIC_COLOR
           
static int SOLID_COLOR
           
static int TYPE_COLOR
           
 
Constructor Summary
StyleManager(SequenceViewer viewer)
           
 
Method Summary
 java.awt.Color getColor(java.awt.Color reference)
          This method takes a color required by the application, e.g.
 java.awt.Color getColor(float[] reference)
           
static java.awt.Color getConservationColor(double value)
           
 java.awt.Color getDefaultColor()
           
static java.awt.Color getHydrophobicityColor(java.lang.String symbol)
           
static java.awt.Color getTypeColor(java.lang.String symbol)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOLID_COLOR

public static int SOLID_COLOR

TYPE_COLOR

public static int TYPE_COLOR

HYDROPHOBIC_COLOR

public static int HYDROPHOBIC_COLOR

CONSERVATION_COLOR

public static int CONSERVATION_COLOR

CHAIN_COLOR

public static int CHAIN_COLOR
Constructor Detail

StyleManager

public StyleManager(SequenceViewer viewer)
Method Detail

getColor

public java.awt.Color getColor(java.awt.Color reference)
This method takes a color required by the application, e.g. color of an object passed from the structure viewer, and creates a local instance if a new one is necessary. Otherwise, it assigns a reference to an existing object.

Parameters:
reference -
Returns:

getColor

public java.awt.Color getColor(float[] reference)

getDefaultColor

public java.awt.Color getDefaultColor()

getTypeColor

public static java.awt.Color getTypeColor(java.lang.String symbol)

getConservationColor

public static java.awt.Color getConservationColor(double value)

getHydrophobicityColor

public static java.awt.Color getHydrophobicityColor(java.lang.String symbol)