* @return
*/
public ContinuousColorScale getDefaultColorScale(TrackType type) {
switch (type) {
case LOH:
return new ContinuousColorScale(0, -1, 0, 1, Color.red, UIConstants.LIGHT_YELLOW, Color.blue);
case RNAI:
case POOLED_RNAI:
ContinuousColorScale cs = new ContinuousColorScale(0, -3, 0, 3, Color.red, Color.white, Color.blue);
cs.setNoDataColor(new Color(225, 225, 225));
return cs;
case DNA_METHYLATION:
cs = new ContinuousColorScale(0, 1, Color.BLUE, Color.RED);
cs.setNoDataColor(Color.WHITE);
return cs;
case GENE_EXPRESSION:
cs = new ContinuousColorScale(-0.1, -1.5, 0.1, 1.5, Color.BLUE, Color.WHITE, Color.RED);
cs.setNoDataColor(new Color(225, 225, 225));
return cs;
case COPY_NUMBER:
case ALLELE_SPECIFIC_COPY_NUMBER:
case CNV:
return new ContinuousColorScale(-0.1, -1.5, 0.1, 1.5, Color.BLUE, Color.WHITE, Color.RED);
default:
return null;
}
}