fr.orsay.lri.varna.models.rna
Class ModeleBPStyle

java.lang.Object
  extended by fr.orsay.lri.varna.models.rna.ModeleBPStyle
All Implemented Interfaces:
Serializable

public class ModeleBPStyle
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
private  double _bent
           
private  Color _color
           
private  boolean _isCustomColored
           
private  double _thickness
           
private static long serialVersionUID
           
 
Constructor Summary
ModeleBPStyle()
           
 
Method Summary
 double getBent()
           
 Color getColor(Color def)
          Returns the current custom color if such a color is defined to be used (through setCustomColor), or returns the default color.
 Color getCustomColor()
           
 double getThickness(double def)
           
 boolean isBent()
           
 boolean isCustomColored()
           
 void setBent(double b)
           
 void setCustomColor(Color c)
           
 void setThickness(double thickness)
           
 void useDefaultColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

_isCustomColored

private boolean _isCustomColored

_color

private Color _color

_thickness

private double _thickness

_bent

private double _bent
Constructor Detail

ModeleBPStyle

public ModeleBPStyle()
Method Detail

getBent

public double getBent()

isBent

public boolean isBent()

setBent

public void setBent(double b)

setCustomColor

public void setCustomColor(Color c)

useDefaultColor

public void useDefaultColor()

isCustomColored

public boolean isCustomColored()

getCustomColor

public Color getCustomColor()

getColor

public Color getColor(Color def)
Returns the current custom color if such a color is defined to be used (through setCustomColor), or returns the default color.

Parameters:
def - - The default color is no custom color is defined
Returns:
The color to be used to draw this base-pair

getThickness

public double getThickness(double def)

setThickness

public void setThickness(double thickness)