edu.sdsc.sirius.viewers.SequenceViewerImpl
Class StyleManager
java.lang.Object
edu.sdsc.sirius.viewers.SequenceViewerImpl.StyleManager
- public class StyleManager
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
StyleManager
public StyleManager(SequenceViewer viewer)
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)