import jalview.renderer.api.AnnotationRowRendererI;
import java.awt.Color;
-import java.awt.Font;
import java.awt.Graphics;
/**
*/
public class ContactMapRenderer implements AnnotationRowRendererI
{
- /*
- *
- * // TODO Auto-generated method stub
- void drawProfileDensity(Graphics g, AlignmentAnnotation _aa,
- Annotation[] aa_annotations, int sRes, int eRes, float min,
- float max, int y)
- {
- *
- *
- */
@Override
public void renderRow(Graphics g, int charWidth, int charHeight,
boolean hasHiddenColumns, AlignViewportI viewport,
{
return;
}
- Font ofont = g.getFont();
eRes = Math.min(eRes, aa_annotations.length);
int x = 0, y2 = y;
return;
}
-
// cell height to render
double scale = (_aa.graphHeight < contacts.getContactHeight()) ? 1
: (((double) _aa.graphHeight) / (double) contacts
if (scale > 1)
{
g.fillRect(x * charWidth, ht, charWidth, 1 + (int) scale);
- } else {
+ }
+ else
+ {
g.drawLine(x * charWidth, ht, (x + 1) * charWidth, ht);
}
}