fr.orsay.lri.varna.models.rna
Class ModeleStyleBase
java.lang.Object
fr.orsay.lri.varna.models.rna.ModeleStyleBase
- All Implemented Interfaces:
- Serializable, Cloneable
public class ModeleStyleBase
- extends Object
- implements Cloneable, Serializable
The display Style of a rna base with the base name font, the ouline,
innerline, number and name color
- Author:
- darty
- See Also:
- Serialized Form
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
_base_outline_color
private Color _base_outline_color
_base_inner_color
private Color _base_inner_color
_base_number_color
private Color _base_number_color
_base_name_color
private Color _base_name_color
_selected
private boolean _selected
PARAM_INNER_COLOR
public static final String PARAM_INNER_COLOR
- See Also:
- Constant Field Values
PARAM_OUTLINE_COLOR
public static final String PARAM_OUTLINE_COLOR
- See Also:
- Constant Field Values
PARAM_TEXT_COLOR
public static final String PARAM_TEXT_COLOR
- See Also:
- Constant Field Values
PARAM_NUMBER_COLOR
public static final String PARAM_NUMBER_COLOR
- See Also:
- Constant Field Values
ModeleStyleBase
public ModeleStyleBase()
- Creates a new base style with default colors and font
- See Also:
VARNAConfig.BASE_OUTLINE_COLOR_DEFAULT
,
VARNAConfig.BASE_INNER_COLOR_DEFAULT
,
VARNAConfig.BASE_NUMBER_COLOR_DEFAULT
,
VARNAConfig.BASE_NAME_COLOR_DEFAULT
ModeleStyleBase
public ModeleStyleBase(Color outline,
Color inner,
Color number,
Color name,
Font font)
- Creates a new base style with custom colors and custom font
- Parameters:
outline
- The out line color of the baseinner
- The inner line color of the basenumber
- The number color of the basename
- The name color of the basefont
- The name font of the base
ModeleStyleBase
public ModeleStyleBase(String parameterValue)
throws fr.orsay.lri.varna.exceptions.ExceptionModeleStyleBaseSyntaxError,
fr.orsay.lri.varna.exceptions.ExceptionParameterError
- Throws:
fr.orsay.lri.varna.exceptions.ExceptionModeleStyleBaseSyntaxError
fr.orsay.lri.varna.exceptions.ExceptionParameterError
ModeleStyleBase
public ModeleStyleBase(ModeleStyleBase msb)
clone
public ModeleStyleBase clone()
- Overrides:
clone
in class Object
get_base_outline_color
public Color get_base_outline_color()
set_base_outline_color
public void set_base_outline_color(Color _base_outline_color)
get_base_inner_color
public Color get_base_inner_color()
set_base_inner_color
public void set_base_inner_color(Color _base_inner_color)
get_base_number_color
public Color get_base_number_color()
set_base_number_color
public void set_base_number_color(Color _base_numbers_color)
get_base_name_color
public Color get_base_name_color()
set_base_name_color
public void set_base_name_color(Color _base_name_color)
getSafeColor
public static Color getSafeColor(String col)
assignParameters
public void assignParameters(String parametersValue)
throws fr.orsay.lri.varna.exceptions.ExceptionModeleStyleBaseSyntaxError,
fr.orsay.lri.varna.exceptions.ExceptionParameterError
- Throws:
fr.orsay.lri.varna.exceptions.ExceptionModeleStyleBaseSyntaxError
fr.orsay.lri.varna.exceptions.ExceptionParameterError
StyleToInteger
public static Integer StyleToInteger(String s)
- Find the font style integer from a string. Return
null
if
the font style is unknown.
- Parameters:
s
- The string
to decode
- Returns:
- The font style integer as
Font.PLAIN.