drawLine(StringUtil.localize("gui.tolerated"), COLUMN_0);
EnumPlantType[] tolerated0 = tree.getGenome().getPlantTypes().toArray(new EnumPlantType[0]);
EnumPlantType[] tolerated1 = new EnumPlantType[0];
IAllele allele1 = tree.getGenome().getInactiveAllele(EnumTreeChromosome.PLANT.ordinal());
if (allele1 instanceof AllelePlantType)
tolerated1 = ((AllelePlantType) allele1).getPlantTypes().toArray(new EnumPlantType[0]);
int max = tolerated0.length > tolerated1.length ? tolerated0.length : tolerated1.length;
for (int i = 0; i < max; i++) {
if (i > 0)
newLine();
if(tolerated0.length > i)
drawLine(StringUtil.localize("gui." + tolerated0[i].toString().toLowerCase(Locale.ENGLISH)), COLUMN_1, tree, EnumTreeChromosome.PLANT, false);
if(tolerated1.length > i)
drawLine(StringUtil.localize("gui." + tolerated1[i].toString().toLowerCase(Locale.ENGLISH)), COLUMN_2, tree, EnumTreeChromosome.PLANT, true);
}
newLine();
// FRUITS
drawLine(StringUtil.localize("gui.supports"), COLUMN_0);
IFruitFamily[] families0 = tree.getGenome().getPrimary().getSuitableFruit().toArray(new IFruitFamily[0]);
IFruitFamily[] families1 = tree.getGenome().getPrimary().getSuitableFruit().toArray(new IFruitFamily[0]);
max = families0.length > families1.length ? families0.length : families1.length;
for (int i = 0; i < max; i++) {
if (i > 0)
newLine();
if (families0.length > i)
drawLine(families0[i].getName(), COLUMN_1, speciesDominance0);
if (families1.length > i)
drawLine(families1[i].getName(), COLUMN_2, speciesDominance1);
}
newLine();
newLine();
int fruitDominance0 = getColorCoding(tree.getGenome().getActiveAllele(EnumTreeChromosome.FRUITS.ordinal()).isDominant());
int fruitDominance1 = getColorCoding(tree.getGenome().getInactiveAllele(EnumTreeChromosome.FRUITS.ordinal()).isDominant());
drawLine(StringUtil.localize("gui.fruits"), COLUMN_0);
String strike = "";
IAllele fruit0 = tree.getGenome().getActiveAllele(EnumTreeChromosome.FRUITS.ordinal());
if (!tree.canBearFruit() && fruit0 != Allele.fruitNone)
strike = "\u00A7m";
drawLine(strike + StringUtil.localize(tree.getGenome().getFruitProvider().getDescription()), COLUMN_1, fruitDominance0);
strike = "";
IAllele fruit1 = tree.getGenome().getInactiveAllele(EnumTreeChromosome.FRUITS.ordinal());
if (!tree.getGenome().getSecondary().getSuitableFruit().contains(((IAlleleFruit) fruit1).getProvider().getFamily()) && fruit1 != Allele.fruitNone)
strike = "\u00A7m";
drawLine(strike + StringUtil.localize(((IAlleleFruit) fruit1).getProvider().getDescription()), COLUMN_2, fruitDominance1);
newLine();