int colorIndex = 0;
if (!trendList.isEmpty()) {
trendList.clear();
}
for (int i = 0; i < spectrumSize; i++) {
final Trend t = new Trend(attributeName.toLowerCase() + "_" + i);
t.setDescription("field n� " + i + "of " + attributeName.toLowerCase());
t.setColor(colorTable.get(Integer.valueOf(colorIndex)));
t.setUnit("No Unit");
t.setVisibleYScale(true);
t.setMinYScaleValue(minValue);
t.setMaxYScaleValue(maxValue);
try {
t.setDrawStyle(Trend.class.getField(drawStyle).getInt(this));
}
catch (final Exception e) {
t.setDrawStyle(Trend.DRAW_LINE);
}
try {
t.setDotStyle(Trend.class.getField(dotStyle).getInt(this));
}
catch (final Exception e) {
t.setDotStyle(Trend.FILL_OVAL_DOT);
}
trendList.add(t);
trendTable.put(attributeName.toLowerCase() + "_" + i, t);
if (colorIndex == 10) {
colorIndex = 0;