Graphics dummy = g2d.create();
int newAnnotationIdWidth = drawLabels(dummy, clip, width, false,
null);
+ dummy.dispose();
Dimension d = ap.calculateDefaultAlignmentIdWidth();
int alignmentIdWidth = d.width;
if (iwa != null && !iwa.manuallyAdjusted())
}
}
}
+ else
+ {
+ Graphics2D g2d = (Graphics2D) g;
+ Graphics dummy = g2d.create();
+ int newAnnotationIdWidth = drawLabels(dummy, clip, width, false,
+ null);
+ width = Math.max(newAnnotationIdWidth, givenWidth);
+ }
drawLabels(g, clip, width, true, null);
}
boolean actuallyDraw, FontMetrics fmetrics)
{
int actualWidth = 0;
- if (actuallyDraw && g != null)
+ if (g != null)
{
if (av.getFont().getSize() < 10)
{