import jalview.api.AlignViewportI;
import jalview.bin.Console;
import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.Annotation;
import jalview.datamodel.BinaryNode;
import jalview.datamodel.ColumnSelection;
import jalview.datamodel.ContactMatrixI;
}
else
{
- drawNode(g, (BinaryNode) node.left(), chunk, wscale, width, offx,
- offy);
- drawNode(g, (BinaryNode) node.right(), chunk, wscale, width, offx,
- offy);
+ drawNode(g, node.left(), chunk, wscale, width, offx, offy);
+ drawNode(g, node.right(), chunk, wscale, width, offx, offy);
double height = node.height;
double dist = node.dist;
if (top.count == 0)
{
- top.count = ((BinaryNode) top.left()).count
- + ((BinaryNode) top.right()).count;
+ top.count = top.left().count + top.right().count;
}
float chunk = (float) (height - (offy)) / top.count;
}
else
{
- pickNode(pickBox, (BinaryNode) node.left(), chunk, wscale, width,
- offx, offy);
- pickNode(pickBox, (BinaryNode) node.right(), chunk, wscale, width,
- offx, offy);
+ pickNode(pickBox, node.left(), chunk, wscale, width, offx, offy);
+ pickNode(pickBox, node.right(), chunk, wscale, width, offx, offy);
}
}
}
}
}
- setColor((BinaryNode) node.left(), c);
- setColor((BinaryNode) node.right(), c);
+ setColor(node.left(), c);
+ setColor(node.right(), c);
}
/**
Map<BitSet, Color> colors = new HashMap();
for (int i = 0; i < groups.size(); i++)
{
- Color col = ColorUtils.getARandomColor();
+ String colId = groups.get(i).getNodeName();
+ Color col = ColorUtils.getColourFromNameAndScheme(colId,
+ "AVOID_GREEN");
setColor(groups.get(i), col.brighter());