import java.awt.font.LineMetrics;
import java.awt.geom.AffineTransform;
import java.awt.image.ImageObserver;
+import java.util.BitSet;
import java.util.Hashtable;
import com.stevesoft.pat.Regex;
boolean centreColLabels, centreColLabelsDef = av
.getCentreColumnLabels();
boolean scaleColLabel = false;
- boolean[] graphGroupDrawn = new boolean[aa.length];
+
+ BitSet graphGroupDrawn = new BitSet();
int charOffset = 0; // offset for a label
float fmWidth, fmScaling = 1f; // scaling for a label to fit it into a
// column.
lastSSX = 0;
if (row.graph > 0)
{
- if (row.graphGroup > -1 && graphGroupDrawn[row.graphGroup])
- {
+ if (row.graphGroup > -1 && graphGroupDrawn.get(row.graphGroup)) {
continue;
}
{
if (row.graph == AlignmentAnnotation.LINE_GRAPH)
{
- if (row.graphGroup > -1 && !graphGroupDrawn[row.graphGroup])
+ if (row.graphGroup > -1 && !graphGroupDrawn.get(row.graphGroup))
{
float groupmax = -999999, groupmin = 9999999;
for (int gg = 0; gg < aa.length; gg++)
}
}
- graphGroupDrawn[row.graphGroup] = true;
+ graphGroupDrawn.set(row.graphGroup);
}
else
{