VARNA is a tool for the automated drawing, visualization and annotation of the secondary structure of RNA, designed as a companion software for web servers and databases.
Copyright (C) 2012 Kevin Darty, Alain Denise and Yann Ponty.
electronic mail : Yann.Ponty@lri.fr
- paper mail : LRI, bat 490 Université Paris-Sud 91405 Orsay Cedex France
+ paper mail : LRI, bat 490 Universit� Paris-Sud 91405 Orsay Cedex France
This file is part of VARNA version 3.9.
VARNA version 3.9 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
private boolean _highlightAnnotation = false;
private int _titleHeight;
- private Dimension _border = new Dimension(0, 0);
+ private Dimension _myBorder = new Dimension(0, 0);
private boolean _drawBBox = false;
private boolean _drawBorder = false;
public void paintComponent(Graphics g, boolean transparentBackground) {
if (_premierAffichage) {
- // _border = new Dimension(0, 0);
+ // _myBorder = new Dimension(0, 0);
_translation.x = 0;
_translation.y = (int) (-getTitleHeight() / 2.0);
_popup.buildPopupMenu();
* The new border size
*/
public void setBorderSize(Dimension b) {
- _border = b;
+ _myBorder = b;
}
/**
* @return The border size
*/
public Dimension getBorderSize() {
- return _border;
+ return _myBorder;
}
/**
* @return X-coordinate of the translation
*/
public int getLeftOffset() {
- return _border.width
- + ((this.getWidth() - 2 * _border.width) - this.getInnerWidth())
+ return _myBorder.width
+ + ((this.getWidth() - 2 * _myBorder.width) - this.getInnerWidth())
/ 2 + _translation.x;
}
*/
public int getInnerWidth() {
// Largeur du dessin
- return (int) Math.round((this.getWidth() - 2 * _border.width)
+ return (int) Math.round((this.getWidth() - 2 * _myBorder.width)
* _conf._zoom);
}
* @return Y-coordinate of the translation
*/
public int getTopOffset() {
- return _border.height
- + ((this.getHeight() - 2 * _border.height) - this
+ return _myBorder.height
+ + ((this.getHeight() - 2 * _myBorder.height) - this
.getInnerHeight()) / 2 + _translation.y;
}
public int getInnerHeight() {
// Hauteur du dessin
return (int) Math.round((this.getHeight()) * _conf._zoom - 2
- * _border.height - getTitleHeight());
+ * _myBorder.height - getTitleHeight());
}
/**