drawScaleDenom(context);
}
private void drawScaleDenom( MapGraphicContext context ) {
double scaleDenom = context.getViewportModel().getScaleDenominator();
IMapDisplay display = context.getMapDisplay();
int dpi = display.getDPI(); // pixels per inch
int displayHeight = display.getHeight();
double i = 1 / (double) dpi; // invert to get in per pixel
double pixelInMeters = i * .0254; // to meters per pixel
double inMeters = scaleDenom * pixelInMeters;