addScale(height, scaleHeight, scaleWidth);
}
private void addScale( int height, int scaleHeight, int scaleWidth ) {
Box scaleBox = ModelFactory.eINSTANCE.createBox();
MapGraphicBoxPrinter scale = new MapGraphicBoxPrinter(null);
scale.setMapGraphic(MapGraphicChooserDialog.findResource(ScalebarMapGraphic.class));
scaleBox.setBoxPrinter(scale);
scaleBox.setID("Scalebar Box"); //$NON-NLS-1$
scaleBox.setLocation(new Point(MARGIN, height - MARGIN - scaleHeight));
scaleBox.setSize(new Dimension(scaleWidth, scaleHeight));
boxes.add(scaleBox);