+ if (labels != null && alignViewport.isShowAnnotation())
+ {
+ int getWidth = getWidth();
+ int thisIdWidth = getWidth;
+ g.translate(0, ypos + (alheight * charHeight));
+ if (!isManuallyAdjusted())
+ {
+ int getAnnotationsIdWidth = labels.drawLabels(g, false, -1, false,
+ forGUI, null, false);
+ thisIdWidth = idWidth < 0 ? getAnnotationsIdWidth : idWidth;
+ if (thisIdWidth > getWidth)
+ {
+ this.setPreferredSize(
+ new Dimension(thisIdWidth, this.getHeight()));
+ this.repaint();
+ alignViewport.setIdWidth(thisIdWidth);
+ }
+ }
+ labels.drawComponent(g, false, thisIdWidth, forGUI);
+ g.translate(0, -ypos - (alheight * charHeight));