final String COLOUR = "Colour";
final Color HELIX_COLOUR = Color.red.darker();
final Color SHEET_COLOUR = Color.green.darker().darker();
-
/** DOCUMENT ME!! */
AlignViewport av;
AlignmentPanel ap;
drawComponent(gg, av.startRes, av.endRes + 1);
g.drawImage(image, 0, 0, this);
}
- boolean fpainting=false;
/**
- * Thread safe repaint
+ * non-Thread safe repaint
*
* @param horizontal repaint with horizontal shift in alignment
*/
public void fastPaint(int horizontal)
{
-
- if (fpainting)
- return;
- fpainting=true;
if ( (horizontal == 0)
|| gg == null
|| av.alignment.getAlignmentAnnotation() == null
|| av.alignment.getAlignmentAnnotation().length < 1
|| av.updatingConsensus
- || av.updatingConservation
- ) // || fpainting)
+ || av.updatingConservation)
{
repaint();
return;
fastPaint = true;
repaint();
- fpainting=false;
+
}
/**
&& (row.annotations[column].displayCharacter.length() > 0))
{
- int charOffset = (av.charWidth -
- fm.charWidth(row.annotations[column].
- displayCharacter.charAt(
- 0))) / 2;
+ int charOffset = (av.getCentreColumnLabels()) ? ((av.charWidth -
+ fm.charsWidth(row.annotations[column].
+ displayCharacter.toCharArray(),0,
+ row.annotations[column].
+ displayCharacter.length())) / 2)
+ : (av.charWidth - fm.charWidth(row.annotations[column].
+ displayCharacter.charAt(0))) / 2;
if (row.annotations[column].colour == null)
g.setColor(Color.black);