- // Disabled for 2.5 release: see bug #0060064
- /**
- * if (aa.annotations[column].value!=0 && renderProfile) { int profl[] =
- * getProfileFor(aa,column); int ht = y1; //,htn=y2-y1;//aa.graphHeight;
- * float wdth; double ht2=0; char[] dc = new char[1]; // LineMetrics lm;
- * for (int c=1;profl!=null && c<profl[0];) { dc[0] = (char) profl[c++];
- * wdth = av.charWidth; wdth/=(float) fm .charsWidth(dc,0,1);
- *
- * if (c>2) { ht+=(int)ht2; } { // not java 1.1 compatible: Bug # 0060064
- * g.setFont(ofont.deriveFont(AffineTransform.getScaleInstance(wdth,
- * (ht2=(htn*((double)profl[c++])/100.0))/av.charHeight))); lm =
- * g.getFontMetrics().getLineMetrics(dc,0,1, g);
- * g.setColor(profcolour.findColour(dc[0]));
- * g.drawChars(dc,0,1,x*av.charWidth, (int) (ht+lm.getHeight())); } }
- * g.setFont(ofont); }
- **/
+ if (aa.annotations[column].value != 0 && renderProfile)
+ {
+ int profl[] = getProfileFor(aa, column);
+ int ht = y1, htn = y2 - y1;// aa.graphHeight;
+ float wdth;
+ double ht2 = 0;
+ char[] dc = new char[1];
+ LineMetrics lm;
+ for (int c = 1; profl != null && c < profl[0];)
+ {
+ dc[0] = (char) profl[c++];
+ wdth = av.charWidth;
+ wdth /= (float) fm.charsWidth(dc, 0, 1);
+
+ if (c > 2)
+ {
+ ht += (int) ht2;
+ }
+ { // not java 1.1 compatible: Bug # 0060064
+ g.setFont(ofont.deriveFont(AffineTransform.getScaleInstance(
+ wdth, (ht2 = (htn * ((double) profl[c++]) / 100.0))
+ / av.charHeight)));
+ lm = g.getFontMetrics().getLineMetrics(dc, 0, 1, g);
+ g.setColor(profcolour.findColour(dc[0]));
+ g.drawChars(dc, 0, 1, x * av.charWidth,
+ (int) (ht + lm.getHeight()));
+ }
+ }
+ g.setFont(ofont);
+ }
+