// box around diagonal label
mbandDiagRect = new BasicFigure(new Rectangle2D.Double(), Color.yellow);
mband.add(mbandDiagRect);
// The width label
mbandWidthText = new LabelFigure(" "); // note: diva-0.3 bug with empty string
mbandWidthText.setFillPaint(Color.blue);
// Font font = new Font("Dialog", Font.BOLD, 12);
Font font = new Font(Font.SANS_SERIF, Font.BOLD, 13);
mbandWidthText.setFont(font);
mband.add(mbandWidthText);
// The height label
mbandHeightText = new LabelFigure(" ");
mbandHeightText.setFillPaint(Color.blue);
mbandHeightText.setFont(font);
mband.add(mbandHeightText);
// The diagonal label
mbandDiagText = new LabelFigure(" ");
mbandDiagText.setFillPaint(Color.blue);
mbandDiagText.setFont(font);
mband.add(mbandDiagText);
GraphicsPane gpane = (GraphicsPane) imageDisplay.getCanvasPane();